LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2005, 06:16 PM   #1
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Rep: Reputation: 15
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.
 
Old 08-07-2005, 06:25 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
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.
 
Old 08-07-2005, 06:50 PM   #3
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
libdl seemed to be in the glibc en glibc-solibs packages. Reinstalling the glibc package solved the problem indeed.

Thanks for the hint!
 
Old 02-09-2010, 09:57 PM   #4
jkaidor
Member
 
Registered: Jun 2008
Location: SF Peninsula
Distribution: slackware
Posts: 33

Rep: Reputation: 23
Quote:
Originally Posted by patrickdepingui View Post
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
 
Old 02-12-2010, 01:10 AM   #5
patrickdepingui
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: 15
This was a very long time ago, but I'm pretty sure that I just reinstalled the package that came with Slackware.
 
Old 02-14-2010, 08:55 AM   #6
jkaidor
Member
 
Registered: Jun 2008
Location: SF Peninsula
Distribution: slackware
Posts: 33

Rep: Reputation: 23
Quote:
Originally Posted by patrickdepingui View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference, why? george_mercury Programming 4 05-07-2009 12:15 AM
Dlopen function - UNDEFINED REFERENCE mamthababu Programming 1 07-19-2005 10:20 AM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 03:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 12:38 PM
undefined reference to 'errno' kbridger Programming 2 10-07-2003 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration