Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124587 - missing libdl (in either apr or apache)
Summary: missing libdl (in either apr or apache)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-01 17:52 UTC by Anthony
Modified: 2006-03-18 04:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony 2006-03-01 17:52:29 UTC
I've been trying to build apache2 for hours, but it kept complaining about dlopen and dlclose and dlsym and dlerror functions being unresolved.

apr refers to the dl lib which provides these functions, but it isn't linked to them, apache fails at the point where it tries to build htpasswd, which must rely upon dl.

The way I got around this was to add -ldl to my cflags in /etc/make.conf and rebuild apr, then when apache linked to apr it had ld linked into it.

I believe the apr ebuild needs modifying so that it adds the parameter -ldl to the linker command.
Comment 1 Anthony 2006-03-01 17:56:14 UTC
sorry it should say "The way I got around this was to add -ldl to my cflags in /etc/make.conf and rebuild apr, then when apache linked to apr it had dl linked into it."
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-01 22:53:56 UTC
Apache version missing, emerge --info missing and error messages missing as well. Reopen with the requested information.
Comment 3 Anthony 2006-03-01 23:57:26 UTC
Apologies, this is my first bug report :)

The only versions of apache i tried were 2.0.55-r1 and apache-2.2.0-r1 and the respective versions of apr (0.9.7 and 1.2.2)

I'm getting the impression it something to do with the way 2006.0 was built as normally (2005.1 and before I used stage1's and apparently only stage threes are "supported" but stage ones are available) I'm currently doing a remerge of my world. I assume dl was built into a different lib (not apr) used in apache when used on my 2005.1 system.

Emerge info follows below.

Regards,

Anthony


Portage 2.1_pre5-r1 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-ck3-r1 i686)
=================================================================
System uname: 2.6.15-ck3-r1 i686 VIA Nehemiah
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-fomit-frame-pointer -O2 -march=i686 -msse -mmmx -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-fomit-frame-pointer -O2 -march=i686 -msse -mmmx -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks parallel-fetch sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X11 a52 aac acl acpi aim alsa apache2 apm arts audiofile avi bash-completion bcmath berkdb bitmap-fonts bluetooth bzlib calendar cdr cpdflib crypt cups curl curlwrappers dba divx4linux dv dvb dvd dvdr dvdread eds emboss encode esd foomaticdb fortran ftp gd gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib ipv6 jpeg kde kdm kerberos libg++ libwww lirc mad maildir mbox mhash mikmod mime mmap mmx mng motif mp3 mpeg mysql ncurses nls nptl offensive ogg oggvorbis openal opengl oss palm pam pcre pda pdflib perl php png python qt quicktime readline sasl sdl session spell sse ssl subversion svn tcpd threads tiff truetype truetype-fonts type1-fonts udev usb vorbis x xml xmlrpc xmms xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 01:16:07 UTC
You still didn't post any errors. Reopen with real error messages you get during compilation. Thanks.
Comment 5 Richard Lärkäng 2006-03-17 10:28:14 UTC
I guess I've got the same error, but with subversion instead. The error I get is:

cd subversion/svnadmin && /bin/sh /var/tmp/portage/subversion-1.3.0/work/subversion-1.3.0/libtool --tag=CC --silent --mode=link i686-pc-linux-gnu-gcc -L/var/tmp/portage/subversion-1.3.0/image//usr/lib -march=athlon-xp -O2 -pipe -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE   -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS  -L/usr/lib  -rpath /usr/lib -o svnadmin  main.o ../../subversion/libsvn_repos/libsvn_repos-1.la ../../subversion/libsvn_fs/libsvn_fs-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /usr/lib/libaprutil-0.la -lgdbm -ldb-4.2 -lexpat /usr/lib/libapr-0.la -lrt -lm -lcrypt -lnsl  -lpthread -lz
/usr/lib/libapr-0.so: undefined reference to `dlerror'
/usr/lib/libapr-0.so: undefined reference to `dlclose'
/usr/lib/libapr-0.so: undefined reference to `dlopen'
/usr/lib/libapr-0.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Fel 1

This is with dev-libs/apr-0.9.7, and dev-util/subversion-1.3.0.

Portage 2.1_pre6-r3 (default-linux/x86/2005.0, gcc-4.0.3, glibc-2.4-r0, 2.6.15 i686)
=================================================================
System uname: 2.6.15 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/svn/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig confcache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://mirror.uni-c.dk/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://gentoo.zie.pg.gda.pl"
LANG="sv_SE.UTF-8"
LC_ALL="sv_SE.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local /home/richard/kde-svn/portage-overlay /home/kde4devel/kde-svn/portage-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X aac adns akode alsa apm arts artswrappersuid asf avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia crypt cups dbus dlloader dri eds encode ffmpeg foomaticdb fortran gdbm gif graphviz gstreamer gtk2 hal idn imagemagick imlib jpeg jpeg2k kde libg++ libwww live mad mmx mmxext mng mp3 mpeg mplayer musicbrainz ncurses network nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pdflib png povray qt quicktime readline real sasl sdl spell sqlite3 sse ssl subversion tcpd theora threads truetype truetype-fonts type1-fonts unicode vorbis win32codecs wxwindows xine xml2 xv xvid xvmc zlib elibc_glibc kernel_linux userland_GNU video_cards_none video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, LINGUAS, MAKEOPTS
Comment 6 Richard Lärkäng 2006-03-18 04:35:44 UTC
Maybe I should add too that I get the same error by just running:
gcc -o ./test test.c `apr-config --link-ld --libs`

on:

int main(int argc, char **argv)
{
    return 0;
}