Date: Tue, 8 Apr 2014 23:55:27 +0200 From: Philip Jocks <pjlists@netzkommune.de> To: olli hauer <ohauer@gmx.de> Cc: apache@FreeBSD.org Subject: Re: www/apache22 not honoring WITH_OPENSSL_PORT=yes under FreeBSD 10? Message-ID: <AC24A576-FD0B-4FEA-AF00-4FD884F80C9E@netzkommune.de> In-Reply-To: <53446581.7070802@gmx.de> References: <F6D91E2D-A001-4B15-B37C-3DA223AB111C@netzkommune.de> <53446581.7070802@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 08.04.2014 um 23:09 schrieb olli hauer <ohauer@gmx.de>: > On 2014-04-08 17:58, Philip Jocks wrote: >> Hej, >>=20 >> I just came across this: When building in a fresh jail, mod_ssl.so is = linked against the base libraries instead of those from ports: >>=20 >> # ldd = /var/ports/basejail/usr/ports/www/apache22/work/httpd-2.2.27/modules/ssl/.= libs/mod_ssl.so >> = /var/ports/basejail/usr/ports/www/apache22/work/httpd-2.2.27/modules/ssl/.= libs/mod_ssl.so: >> libssl.so.7 =3D> /usr/lib/libssl.so.7 (0x801630000) >> libcrypto.so.7 =3D> /lib/libcrypto.so.7 (0x801899000) >> libcrypt.so.5 =3D> /lib/libcrypt.so.5 (0x801c84000) >> libthr.so.3 =3D> /lib/libthr.so.3 (0x801ea4000) >> libc.so.7 =3D> /lib/libc.so.7 (0x80081d000) >>=20 >> In an older FreeBSD 8.x jail it works as expected. A friend of mine = confirmed with a fresh FreeBSD 10 VM. >> Am I missing something? >>=20 >=20 > Hi Philip, Hi Olli, thanks for getting back to me. > have you also build devel/apr1 with 'WITH_OPENSSL_PORT=3Dyes' in = /etc/make.conf? Yes, it's a fresh FreeBSD 10.0 jail and my friend tested with a fresh VM = with same results. > Here are some outputs from apu-1-config, build with OpenSSL from base = / ports > so you can compare it with the output from apr-1-config on your = system. >=20 >=20 > OpenSSL base: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $> usr/local/bin/apu-1-config --includes > -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include = -I/usr/local/include/db5 >=20 > /usr/local/bin/apu-1-config --ldflags > -L/usr/lib -L/usr/local/lib -L/usr/local/lib/db5 >=20 >=20 > OpenSSL ports: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $> /usr/local/bin/apu-1-config --includes > -I/usr/local/include/apr-1 -I/usr/local/include = -I/usr/local/include/db5 >=20 > $> /usr/local/bin/apu-1-config --ldflags > -L/usr/local/lib -L/usr/local/lib/db5 mine also has /usr/include and /usr/lib appended: # /usr/local/bin/apu-1-config --includes -I/usr/local/include/apr-1 -I/usr/local/include = -I/usr/local/include/db48 -I/usr/include # /usr/local/bin/apu-1-config --ldflags -L/usr/local/lib -L/usr/local/lib/db48 -L/usr/lib >=20 >=20 > And also important '/usr/local/share/apr/build-1/apr_rules.mk' >=20 > diff -nru base_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk = ports_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk > --- base_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk = 2014-04-08 23:00:48.000000000 +0200 > +++ ports_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk = 2014-04-08 23:00:46.000000000 +0200 > @@ -42,8 +42,8 @@ > # configure adds to them for tests, but we restore them at the end. > # > CFLAGS=3D-O2 -pipe -fno-strict-aliasing > -CPPFLAGS=3D-I/usr/include > -LDFLAGS=3D -L/usr/lib -Wl,-rpath,/usr/lib:/usr/local/lib > +CPPFLAGS=3D-I/usr/local/include -I/usr/local/include > +LDFLAGS=3D -L/usr/local/lib -Wl,-rpath,/usr/local/lib = -L/usr/local/lib > LIBS=3D > DEFS=3D-DHAVE_CONFIG_H >=20 here I got: CPPFLAGS=3D-I/usr/local/include LDFLAGS=3D -L/usr/local/lib -Wl,-rpath,/usr/local/lib Can you make anything out of this? If you build www/apache22 on a fresh FreeBSD 10 box with = "WITH_OPENSSL_PORT=3Dyes", does it link to the port instead of base? Cheers, Philip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AC24A576-FD0B-4FEA-AF00-4FD884F80C9E>