Vapor: Cannot build latest Vapor RC2 'openssl/conf.h' file not found

Created on 22 Mar 2018  路  3Comments  路  Source: vapor/vapor

I've updated to the latest version, RC2, and now i cannot build the project.


Steps to reproduce

vapor new MyProject  --branch=beta
cd MyProject/
vapor update
vapor build

Expected behavior

Successful build.

Actual behavior

Building Project [Failed]

Command:
build

Error (1):
error: terminated(1): /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/debug.yaml main output:




Output:
Compile CNIOLinux shim.c
Compile CNIODarwin shim.c
Compile CNIOSHA1 c_nio_sha1.c
Compile CNIOZlib empty.c
Compile CNIOHTTPParser c_nio_http_parser.c
Compile CNIOOpenSSL empty.c
Compile CNIOAtomics src/c-atomics.c
Compile CSQLite sqlite3.c
Compile Swift Module 'NIOPriorityQueue' (2 sources)
Compile Swift Module 'Debugging' (4 sources)
Compile Swift Module 'Logging' (3 sources)
Compile Swift Module 'COperatingSystem' (1 sources)
Compile Swift Module 'SQL' (27 sources)
Compile Swift Module 'NIOConcurrencyHelpers' (2 sources)
Compile Swift Module 'NIO' (47 sources)
Compile Swift Module 'NIOHTTP1' (7 sources)
Compile Swift Module 'NIOTLS' (3 sources)
Compile Swift Module 'Bits' (11 sources)
Compile Swift Module 'Async' (13 sources)
Compile Swift Module 'NIOOpenSSL' (11 sources)
Compile Swift Module 'Random' (6 sources)
Compile Swift Module 'CodableKit' (25 sources)
Compile Swift Module 'Service' (18 sources)
Compile Swift Module 'Core' (3 sources)
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h"
        ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/CNIOOpenSSL/include/c_nio_openssl.h:17:10: error: 'openssl/conf.h' file not found
#include <openssl/conf.h>
         ^
/Users/oleh.korchytskyi/Projects/Tests/MyProject/.build/checkouts/swift-nio-ssl.git-1370587408992578247/Sources/NIOOpenSSL/OpenSSLHandler.swift:16:8: error: could not build Objective-C module 'CNIOOpenSSL'
import CNIOOpenSSL
       ^


Toolchain:
/usr/bin/swift

Help:
Join our Slack where hundreds of contributors
are waiting to help: http://vapor.team

Error: Build failed.

Environment


  • Vapor Framework version: 3.0.0-rc.2
  • Vapor Toolbox version: 3.1.4
  • OS version: 10.13.3

Most helpful comment

You need to run brew install libressl, followed by vapor update. It's a new dependency.

All 3 comments

You need to run brew install libressl, followed by vapor update. It's a new dependency.

Alternatively, you can just run brew upgrade if vapor cli is already installed.
This will also install libressl.

Now it's swift package update instead of vapor update

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nhatlee picture nhatlee  路  3Comments

olivier38070 picture olivier38070  路  3Comments

mandrusiaks picture mandrusiaks  路  4Comments

nsleader picture nsleader  路  4Comments

loganwright picture loganwright  路  3Comments