Bug 236741 - security/luasec-51 broken with openssl from port
Summary: security/luasec-51 broken with openssl from port
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: David Thiel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-23 21:31 UTC by Dirk Meyer
Modified: 2019-03-23 21:31 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (lx)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer freebsd_committer 2019-03-23 21:31:54 UTC
FreeBSD 11.2 amd64

make.conf:
DEFAULT_VERSIONS+=      ssl=openssl111

openssl111-1.1.1b_1
lua51-luasec-0.7
prosody-0.11.2

:tls        error   Error creating context for c2s: LuaSec (required for encryption) was not found
:tls        error   Error creating contexts for s2sout: LuaSec (required for encryption) was not found
:tls        error   Error creating contexts for s2sin: LuaSec (required for encryption) was not found

ldd /usr/local/lib/lua/5.1/ssl.so
/usr/local/lib/lua/5.1/ssl.so:
        libssl.so.8 => /usr/lib/libssl.so.8 (0x801211000)
        libcrypto.so.8 => /lib/libcrypto.so.8 (0x801600000)
        libc.so.7 => /lib/libc.so.7 (0x800823000)

LDFLAGS are not passed to build:

[...]
cc -O2 -pipe  -I/usr/local/include -DOPENSSL_NO_SSL3 -fstack-protector -fno-strict-aliasing  -O2 -fPIC -Wall -pedantic -I/usr/local/include/lua51 -I/usr/obj/ports/usr/ports/security/luasec-51/work/luasec-luasec-0.7/src -DWITH_LUASOCKET -c ssl.c -o ssl.o
[...]
cc -O -fPIC -shared -L./luasocket -L/usr/lib -o ssl.so x509.o     context.o  ssl.o      config.o   ec.o -lssl -lcrypto -lluasocket
[...]

it runs with:
DEFAULT_VERSIONS+=      ssl=openssl

but ldd confirms it still uses base ssl.