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.
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
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: ---

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

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 

/ # ldd /usr/sbin/apache2 =>  (0xffffe000) => /lib/ (0x9e098000) => /usr/lib/ (0x9e06d000) => /lib/ (0x9e059000) => /lib/ (0x9e046000) => /usr/lib/ (0x9e02a000) => not found => /lib/ (0x9e016000) => /usr/lib/ (0x9dfcc000) => /usr/lib/ (0x9de47000) => not found => /usr/lib/ (0x9dd02000) => /usr/lib/ (0x9dcdf000) => /usr/lib/ (0x9dcb9000) => /usr/lib/ (0x9dc8a000) => /lib/ (0x9dc84000) => /lib/ (0x9dc7b000) => /lib/ (0x9dc4d000) => /lib/ (0x9dc34000) => /lib/ (0x9dc30000) => /lib/ (0x9dafd000)
        /lib/ (0x9e0c2000) => /lib/ (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/ modules/http/ modules/mappers/ server/mpm/prefork/ os/unix/ -lm -L/usr/lib -lpcre /usr/lib/ -lldap -llber -ldb -lpq -lexpat /usr/lib/ -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
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.