Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't Build on Ubuntu 14.04 #9

Open
Sha0 opened this issue Jul 7, 2016 · 0 comments
Open

Doesn't Build on Ubuntu 14.04 #9

Sha0 opened this issue Jul 7, 2016 · 0 comments

Comments

@Sha0
Copy link

Sha0 commented Jul 7, 2016

libmysqlclient-dev is installed. I don't observe "MYSQL_SERVER_PUBLIC_KEY" in the MySQL headers. CloudFoundry uses Ubuntu 14.04.

Ubuntu 14.04 with 2016-06-20 Swift and 'swift build' yields:

note: you may be able to install mysqlclient using your system-packager:

apt-get install libmysqlclient-dev

note: you may be able to install mysqlclient using your system-packager:

apt-get install libmysqlclient-dev

note: you may be able to install mysqlclient using your system-packager:

apt-get install libmysqlclient-dev

Compile Swift Module 'MySQL' (1 sources)
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:443:11: error: use of unresolved identifier 'MYSQL_OPT_BIND'
return MYSQL_OPT_BIND
^~~~~~~~~~~~~~
mysqlclient.MYSQL_BIND:1:18: note: did you mean 'MYSQL_BIND'?
public typealias MYSQL_BIND = st_mysql_bind
^
mysqlclient.MYSQL_TYPE_BIT:1:12: note: did you mean 'MYSQL_TYPE_BIT'?
public var MYSQL_TYPE_BIT: enum_field_types { get }
^
mysqlclient.MYSQL_TYPE_TINY:1:12: note: did you mean 'MYSQL_TYPE_TINY'?
public var MYSQL_TYPE_TINY: enum_field_types { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:445:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_KEY'
return MYSQL_OPT_SSL_KEY
^~~~~~~~~~~~~~~~~
mysqlclient.MYSQL_OPT_USE_RESULT:1:12: note: did you mean 'MYSQL_OPT_USE_RESULT'?
public var MYSQL_OPT_USE_RESULT: mysql_option { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:447:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_CERT'
return MYSQL_OPT_SSL_CERT
^~~~~~~~~~~~~~~~~~
mysqlclient.MYSQL_OPT_USE_RESULT:1:12: note: did you mean 'MYSQL_OPT_USE_RESULT'?
public var MYSQL_OPT_USE_RESULT: mysql_option { get }
^
mysqlclient.MYSQL_OPT_RECONNECT:1:12: note: did you mean 'MYSQL_OPT_RECONNECT'?
public var MYSQL_OPT_RECONNECT: mysql_option { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:449:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_CA'
return MYSQL_OPT_SSL_CA
^~~~~~~~~~~~~~~~
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:451:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_CAPATH'
return MYSQL_OPT_SSL_CAPATH
^~~~~~~~~~~~~~~~~~~~
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:453:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_CIPHER'
return MYSQL_OPT_SSL_CIPHER
^~~~~~~~~~~~~~~~~~~~
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:455:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_CRL'
return MYSQL_OPT_SSL_CRL
^~~~~~~~~~~~~~~~~
mysqlclient.MYSQL_OPT_PROTOCOL:1:12: note: did you mean 'MYSQL_OPT_PROTOCOL'?
public var MYSQL_OPT_PROTOCOL: mysql_option { get }
^
mysqlclient.MYSQL_OPT_USE_RESULT:1:12: note: did you mean 'MYSQL_OPT_USE_RESULT'?
public var MYSQL_OPT_USE_RESULT: mysql_option { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:457:11: error: use of unresolved identifier 'MYSQL_OPT_SSL_CRLPATH'
return MYSQL_OPT_SSL_CRLPATH
^~~~~~~~~~~~~~~~~~~~~
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:459:11: error: use of unresolved identifier 'MYSQL_OPT_CONNECT_ATTR_RESET'
return MYSQL_OPT_CONNECT_ATTR_RESET
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
mysqlclient.MYSQL_OPT_CONNECT_TIMEOUT:1:12: note: did you mean 'MYSQL_OPT_CONNECT_TIMEOUT'?
public var MYSQL_OPT_CONNECT_TIMEOUT: mysql_option { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:461:11: error: use of unresolved identifier 'MYSQL_OPT_CONNECT_ATTR_ADD'
return MYSQL_OPT_CONNECT_ATTR_ADD
^~~~~~~~~~~~~~~~~~~~~~~~~~
mysqlclient.MYSQL_OPT_CONNECT_TIMEOUT:1:12: note: did you mean 'MYSQL_OPT_CONNECT_TIMEOUT'?
public var MYSQL_OPT_CONNECT_TIMEOUT: mysql_option { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:463:11: error: use of unresolved identifier 'MYSQL_OPT_CONNECT_ATTR_DELETE'
return MYSQL_OPT_CONNECT_ATTR_DELETE
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:465:11: error: use of unresolved identifier 'MYSQL_SERVER_PUBLIC_KEY'
return MYSQL_SERVER_PUBLIC_KEY
^~~~~~~~~~~~~~~~~~~~~~~
mysqlclient.MYSQL_SERVER_SUFFIX_DEF:1:12: note: did you mean 'MYSQL_SERVER_SUFFIX_DEF'?
public var MYSQL_SERVER_SUFFIX_DEF: String { get }
^
/usr/src/Perfect-MySQL/Sources/MySQL/MySQL.swift:469:11: error: use of unresolved identifier 'MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS'
return MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:0: error: build had 1 command failures
swift-build: error: exit(1): /usr/bin/swift-build-tool -f /usr/src/Perfect-MySQL/.build/debug.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant