[Bug 233243] www/nginx builds against OpenSSL111 in poudriere but sets the library path to /usr/lib

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 15 20:13:00 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233243

            Bug ID: 233243
           Summary: www/nginx builds against OpenSSL111 in poudriere but
                    sets the library path to /usr/lib
           Product: Ports & Packages
           Version: Latest
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum at FreeBSD.org
          Reporter: reko.turja at liukuma.net
             Flags: maintainer-feedback?(joneum at FreeBSD.org)
          Assignee: joneum at FreeBSD.org

It seems that www/nginx builds nicely against OpenSSL 1.1.1 in Poudriere
environment, but then linker uses /usr/lib for libcrypto.so and libssl.so:

/usr/local/sbin/nginx:
        libthr.so.3 => /lib/libthr.so.3 (0x28122000)
        libcrypt.so.5 => /lib/libcrypt.so.5 (0x28145000)
        libpcre.so.1 => /usr/local/lib/libpcre.so.1 (0x28164000)
        libssl.so => /usr/lib/libssl.so (0x281f2000)
        libcrypto.so => /usr/lib/libcrypto.so (0x2824b000)
        libz.so.6 => /lib/libz.so.6 (0x283dc000)
        libc.so.7 => /lib/libc.so.7 (0x283f2000)

service nginx restart
Performing sanity check on nginx configuration:
/usr/local/sbin/nginx: Undefined symbol "OPENSSL_init_ssl"

When I do:

root at xxx:/usr/lib # rm libssl.so
root at xxx:/usr/lib # rm libcrypto.so
root at xxx:/usr/lib # ln -s /usr/local/lib
lib/     libdata/ libexec/ 
root at xxx:/usr/lib # ln -s /usr/local/lib/libcrypto.so.11 libcrypto.so
root at xxx:/usr/lib # ln -s /usr/local/lib/libssl.so.11 libssl.so
root at xxx:/usr/lib # service nginx restart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root at xxx:/usr/lib # 

Nginx starts as expected.
My make.conf for poudriere jail is:
DEFAULT_VERSIONS        += ssl=openssl111 python=3.6 python2=2.7 python3=3.6
perl5=5.26
OPTIONS_UNSET           += GSSAPI_BASE
OPTIONS_SET             += GSSAPI_NONE
OPTIONS_UNSET           += X11 MYSQL GNOME NIS DEBUG HELP GNUTLS NLS DBUS SOUND
\
        ALSA PULSEAUDIO DOCBOOK CUPS TESTS HTMLDOCS BONJOUR GSSAPI APIDOCS
WITH_PKG=yes

and src.conf:

WITHOUT_UNBOUND=yes
WITHOUT_APM=yes
WITHOUT_ATM=yes
WITHOUT_BLUETOOTH=yes
WITHOUT_CDDL=yes
WITHOUT_FLOPPY=yes
WITHOUT_FORTRAN=yes
WITHOUT_GSSAPI=yes
WITHOUT_I4B=yes
WITH_IDEA=yes
WITHOUT_INFO=yes
WITHOUT_IPFILTER=yes
WITHOUT_IPFW=yes
WITHOUT_IPX=yes
WITHOUT_KERBEROS=yes
WITHOUT_LDNS=yes
WITHOUT_NIS=yes
WITHOUT_PROFILE=yes
WITHOUT_RCMDS=yes
WITHOUT_SENDMAIL=yes
WITHOUT_WPA_SUPPLICANT_EAPOL=yes
WITHOUT_WIRELESS=yes
WITHOUT_ZFS=yes
WITHOUT_NTP=YES
WITHOUT_NIS=YES

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list