Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-07-2005, 06:16 PM
|
#1
|
Member
Registered: Mar 2003
Distribution: Slackware
Posts: 53
Rep:
|
undefined reference to dlopen, dlclose, dlsym and dlerror
After a harddisk crash I had to reinstall my system. Now I'm having problems compiling programs, like modlogan 0.8.13.
./configure runs okay, but during make I get the error:
mplugins.o(.text+0xed): In function `mplugins_load_plugins':
/usr/src/modlogan-0.8.13/src/mplugins.c:127: undefined reference to `dlopen'
mplugins.o(.text+0x11c):/usr/src/modlogan-0.8.13/src/mplugins.c:142: undefined reference to `dlsym'
mplugins.o(.text+0x2f5):/usr/src/modlogan-0.8.13/src/mplugins.c:134: undefined reference to `dlerror'
mplugins.o(.text+0x43c): In function `mplugins_free':
/usr/src/modlogan-0.8.13/src/mplugins.c:212: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [modlogan] Error 1
make[3]: Leaving directory `/usr/src/modlogan-0.8.13/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/modlogan-0.8.13/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/modlogan-0.8.13'
make: *** [all] Error 2
In the configure output I see:
checking for dlopen... no
checking for dlopen in -ldl... no
checking for dlopen in -lsvld... no
checking for dld_link in -ldld... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
I have these packages installed:
glib-1.2.10, glib2-2.6.5, glibc-2.3.5, glibc-solibs-2.3.5, glibc-zoneinfo-2.3.5, libtool-1.5.14
I don't know where to start, the system is fresh...
I got the same errors with checkinstall.
Thanks for any directions.
|
|
|
08-07-2005, 06:25 PM
|
#2
|
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994
Rep:
|
This looks like a problem with the libdl package, or possibly the libdb-devel package if you have one of those. libdb handles dynamic linking, and implements these functions in the files /usr/lib/libdl.a and /usr/lib/libdl.so
(Re)install libdbl and I think that should fix it.
|
|
|
08-07-2005, 06:50 PM
|
#3
|
Member
Registered: Mar 2003
Distribution: Slackware
Posts: 53
Original Poster
Rep:
|
libdl seemed to be in the glibc en glibc-solibs packages. Reinstalling the glibc package solved the problem indeed.
Thanks for the hint!
|
|
|
02-09-2010, 09:57 PM
|
#4
|
Member
Registered: Jun 2008
Location: SF Peninsula
Distribution: slackware
Posts: 33
Rep:
|
Quote:
Originally Posted by patrickdepingui
libdl seemed to be in the glibc en glibc-solibs packages. Reinstalling the glibc package solved the problem indeed.
Thanks for the hint!
|
*** Did you just reinstall it from the distribution, or did you have to get the source and compile it?
- Jerry Kaidor
|
|
|
02-12-2010, 01:10 AM
|
#5
|
Member
Registered: Mar 2003
Distribution: Slackware
Posts: 53
Original Poster
Rep:
|
This was a very long time ago, but I'm pretty sure that I just reinstalled the package that came with Slackware.
|
|
|
02-14-2010, 08:55 AM
|
#6
|
Member
Registered: Jun 2008
Location: SF Peninsula
Distribution: slackware
Posts: 33
Rep:
|
Quote:
Originally Posted by patrickdepingui
This was a very long time ago, but I'm pretty sure that I just reinstalled the package that came with Slackware.
|
*** Thanks, Patrick. I did resolve the problem, and here's what I did:
* Inside the "src/osdep/unix" directory,
I modified Makefile - the "slx" ( Shadow Linux ) target to include "-ldl" in the BASELDFLAGS list.
BTW, the package I was trying to build was UW IMAP.
- Jerry Kaidor
|
|
|
All times are GMT -5. The time now is 07:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|