Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2018 11:38:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        apache@FreeBSD.org
Subject:   [Bug 227108] www/apache24: apache benchmark build error due to mis-linked openssl
Message-ID:  <bug-227108-16115@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227108

            Bug ID: 227108
           Summary: www/apache24: apache benchmark build error due to
                    mis-linked openssl
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: apache@FreeBSD.org
          Reporter: eugen@freebsd.org
                CC: brnrd@freebsd.org
             Flags: maintainer-feedback?(apache@FreeBSD.org)

--- ab ---
ab.o: In function `main':
ab.c:(.text+0x88a): undefined reference to `SSLv2_client_method'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [ab] Error code 1


Here is the scenario:

1. FreeBSD 11.1 user has security/openssl installed like openssl-1.0.x comp=
iled
with default OPTIONS that include SSLv2 knob enabled.
2. User has DEFAULT_VERSIONS+=3Dssl=3Dopenssl in the /etc/make.conf
3. User tries to build www/apache24 port verion 2.4.33 and build fails with
messages quoted above.

ktrace(1) shows that linker does not even try to use libssl.so installed by
port but links "ab" with base /usr/lib/libssl.so that has no
SSLv2_client_method symbol.

Apache Benckmark "ab" conditionally compiles call to SSLv2_client_method()
depending on OPENSSL_NO_SSL2 define that is not present in the openssl port=
's
headers if built with default OPTIONS.

So, there is nasty bug when build uses openssl port's headers with base
system's openssl library.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227108-16115>