Code Monkey home page Code Monkey logo

Comments (3)

tunniclm avatar tunniclm commented on May 17, 2024

We are also seeing this problem hitting in our Travis tests on Linux. There are two errors, one to do with the literal and one to do with an unresolved identifier.

/usr/include/openssl/bn.h:187:19: error: integer literal is too large to be represented in any integer type

#define BN_MASK         (0xffffffffffffffffffffffffffffffffLL)
                         ^
/tmp/87c06c14666f7ad8d15dbe70e37233d0b50cc764/notes/Packages/SSLService-0.12.25/Sources/SSLService.swift:817:31: error: use of unresolved identifier 'SSL_CTRL_SET_ECDH_AUTO'
                                SSL_CTX_ctrl(context, SSL_CTRL_SET_ECDH_AUTO, 1, nil)
                                                      ^~~~~~~~~~~~~~~~~~~~~~
OpenSSL.SSL_CTRL_SET_READ_AHEAD:1:12: note: did you mean 'SSL_CTRL_SET_READ_AHEAD'?
public var SSL_CTRL_SET_READ_AHEAD: Int32 { get }
           ^
OpenSSL.SSL_CTRL_SET_SRP_ARG:1:12: note: did you mean 'SSL_CTRL_SET_SRP_ARG'?
public var SSL_CTRL_SET_SRP_ARG: Int32 { get }
           ^
<unknown>:0: error: build had 1 command failures
error: exit(1): /home/travis/build/IBM-Swift/generator-swiftserver/swift-3.0-RELEASE-ubuntu14.04/usr/bin/swift-build-tool -f /tmp/87c06c14666f7ad8d15dbe70e37233d0b50cc764/notes/.build/debug.yaml
      1) "before all" hook

I see that this file has been added .swift-build-linux:

swift build -Xswiftc -DOPENSSL_TOO_OLD

If adding that option to swift build resolves the problem, then it looks like we have added a requirement to pass an option to any project that uses Kitura. :(

from bluesslservice.

shmuelk avatar shmuelk commented on May 17, 2024

I agree with @tunniclm that adding a compile flag is not the way to fix this.

from bluesslservice.

billabt avatar billabt commented on May 17, 2024

Removed the compile flag for the default. The compile flag still exists in a different form. It needs to be explicitly set to enable the functionality and this is documented in the README.md. The functionality is provided by OpenSSL 1.0.2 or higher, this rules out use of it on Ubuntu 14.04.

from bluesslservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.