This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libiberty reports: "undefined reference to dlopen"


I tried compiling a program that depends on libiberty, and I got these
messages when compiling:

g++    -I../include  -w  -I/usr/local/dyninst/core/dyninstAPI/h
tau_run.cpp -o tau_run -L/usr/local/dyninst/lib/  -ldyninstAPI -liberty
-lelf   
/usr/lib/libiberty.a(cplus-dem.o): In function `init_demangler':
cplus-dem.o(.text+0xae7): undefined reference to `dlopen'
cplus-dem.o(.text+0xaf6): undefined reference to `dlerror'
cplus-dem.o(.text+0xb1b): undefined reference to `dlsym'
cplus-dem.o(.text+0xb2c): undefined reference to `dlerror'
collect2: ld returned 1 exit status

I'm on a Debian system.  I had installed the latest stable release of
binutils-dev, still got the above messages, so grabbed the newest tarball
of it (2.11.something, newer than the debs), and am still getting the same
error.  I'm assuming I've just done something retarded as opposed to it
being a bug in libiberty.  Does anyone know what might be the
problem?  Thanks.

-- 
/---------------------------------\
Jeff W., jeff@dark-techno.org
ICQ# 17989474

"It's substance, not process"

http://dark-techno.org
http://logic-slave.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]