Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213753 - Apache linked with ldap library even when LDAP use flag turned off.
Summary: Apache linked with ldap library even when LDAP use flag turned off.
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-17 23:14 UTC by Dmitriy Bogun
Modified: 2008-03-18 08:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build logs (apache-build-logs.tar.gz,43.76 KB, application/octet-stream)
2008-03-17 23:15 UTC, Dmitriy Bogun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Bogun 2008-03-17 23:14:20 UTC
I have compiled apache planned to live in chroot. I have export variables ROOT and  PORTAGE_CONFIGROOT to my chroot jail. I have switched off ldap support in apache and run emerge. 
When I have go to my chroot, apache rejected to start, because of not existing shared library libldap.so... 

/ # ldd /usr/sbin/apache2
        linux-gate.so.1 =>  (0xffffe000)
        libm.so.6 => /lib/libm.so.6 (0x9e098000)
        libpcre.so.0 => /usr/lib/libpcre.so.0 (0x9e06d000)
        libz.so.1 => /lib/libz.so.1 (0x9e059000)
        libbz2.so.1 => /lib/libbz2.so.1 (0x9e046000)
        libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0x9e02a000)
        libldap-2.3.so.0 => not found
        libresolv.so.2 => /lib/libresolv.so.2 (0x9e016000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x9dfcc000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x9de47000)
        liblber-2.3.so.0 => not found
        libdb-4.5.so => /usr/lib/libdb-4.5.so (0x9dd02000)
        libpq.so.4 => /usr/lib/libpq.so.4 (0x9dcdf000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x9dcb9000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0x9dc8a000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x9dc84000)
        librt.so.1 => /lib/librt.so.1 (0x9dc7b000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x9dc4d000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x9dc34000)
        libdl.so.2 => /lib/libdl.so.2 (0x9dc30000)
        libc.so.6 => /lib/libc.so.6 (0x9dafd000)
        /lib/ld-linux.so.2 (0x9e0c2000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x9dae6000)


I have checked ebuild log, and saw that in configure ldap support was turned off (--disable-authnz_ldap --disable-ldap), but when apache2 binary was linked with options -lldap and -llber...

/usr/bin/libtool --silent --mode=link i686-pc-linux-gnu-gcc -pthread  -march=prescott -O2 -pipe -fomit-frame-pointer   -Wl,--no-as-needed -L/usr/lib  -Wl,--no-as-needed -o apache2  modules.lo buildmark.o -export-dynamic server/libmain.la modules/http/libmod_http.la modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la os/unix/libos.la -lm -L/usr/lib -lpcre /usr/lib/libaprutil-1.la -lldap -llber -ldb -lpq -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl

Reproducible: Always
Comment 1 Dmitriy Bogun 2008-03-17 23:15:34 UTC
Created attachment 146424 [details]
build logs
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-03-17 23:31:02 UTC
Erm, you need to turn off USE=apache for dev-libs/apr-util at least as well.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-17 23:31:21 UTC
Errr, USE=ldap obviously...
Comment 4 Dmitriy Bogun 2008-03-18 08:34:00 UTC
Hmmm...
I think I understand what happened.
Emerge while building apache use global packages from real root... not from PORTAGE_CONFIGROOT or ROOT.

Thanks for help. I will change way of building my chroot environments.