[ale] problem with libraries

Joe Bayes jbayes at spoo.randomc.com
Sun Jun 1 12:10:19 EDT 1997


I'm trying to get the pilot-sync package to compile under
linux. Currently, when I try to make it, the following happens:

spoo:~/incoming/pilot/pilot-sync.0.1.4$ make
gcc -o pilot-sync pilot-sync.o tasks.o pilot_connect.o comm.o util.o default.o -L/usr/local/lib -L/lib  -lpisock 
tasks.o: In function `get_registrations':
tasks.o(.text+0x195): undefined reference to `dlopen'
tasks.o(.text+0x1a8): undefined reference to `dlerror'
tasks.o(.text+0x201): undefined reference to `dlsym'
tasks.o(.text+0x230): undefined reference to `dlerror'
tasks.o(.text+0x255): undefined reference to `dlclose'
tasks.o(.text+0x263): undefined reference to `dlerror'
make: *** [pilot-sync] Error 1
spoo:~/incoming/pilot/pilot-sync.0.1.4$ 


I believe that the missing functions are defined in /lib/libdl.so, but
when I add -ldl to the command line, I get:

spoo:~/incoming/pilot/pilot-sync.0.1.4$ make
gcc -o pilot-sync pilot-sync.o tasks.o pilot_connect.o comm.o util.o default.o -L/usr/local/lib -L/lib  -ldl -lpisock 
gcc   default.o pilot-sync   -o default
pilot-sync(.data+0x0): multiple definition of `__environ'
/usr/lib/crt1.o(.data+0x0): first defined here
pilot-sync: In function `_init':
pilot-sync(.init+0x0): multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here
pilot-sync: In function `send_message':
pilot-sync(.text+0x1b40): multiple definition of `send_message'
default.o(.text+0x0): first defined here
pilot-sync: In function `_start':
pilot-sync(.text+0x0): multiple definition of `_start'
/usr/lib/crt1.o(.text+0x0): first defined here
pilot-sync: In function `_start':
pilot-sync(.text+0x0): multiple definition of `___crt_dummy__'
/usr/lib/crt1.o(.text+0x0): first defined here
pilot-sync: In function `get_user_name':
pilot-sync(.text+0x1c00): multiple definition of `get_user_name'
default.o(.text+0xc0): first defined here
pilot-sync: In function `_fini':
pilot-sync(.fini+0x0): multiple definition of `_fini'
/usr/lib/crti.o(.fini+0x0): first defined here
pilot-sync: In function `log_message':
pilot-sync(.text+0x1b70): multiple definition of `log_message'
default.o(.text+0x30): first defined here
make: *** [default] Error 1
spoo:~/incoming/pilot/pilot-sync.0.1.4$ 


Is there a simple mistake that I'm making, or would fixing this
problem be a major ordeal?

Thanks,

--joe

p.s. I'm running RedHat 4.0, if it matters. 






More information about the Ale mailing list