1. ld: fatal error : symbols multiply-defined
Hello,
I am using ld's -r option to build combine several object files into a
single relocatable object file. This works fine but when I then
include this new relocatable object file into another ld command to
create an executable I get the following errors:
ra: /export/home/greg/code/prog >cc -dn -o invoker invoker.c testies.o
ld: fatal: symbol `_start' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_environ' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_init' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o and file testies.o);
ld: fatal: symbol `___Argv' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `__cg92_used' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_lib_version' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/values-xa.o and file testies.o);
ld: fatal: symbol `__environ_lock' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crt1.o and file testies.o);
ld: fatal: symbol `_fini' is multiply-defined:
(file /opt/SUNWspro/WS6U2/lib/crti.o and file testies.o);
ld: fatal: File processing errors. No output written to invoker
I am running Solaris8.
Any ideas on how to fix this?
It appears the objects crt1.o, crti.o and values-xa.o are being
linked-in twice...each time ld is invoked. Is there any way to stop
this?
Thanks,
Greg
2. Need help with SLIP setup, please!
3. : ld error: _tolower & _toupper multiply defined
4. Sorting files with comma delimited fields
5. Problem: ld (linker) giving multiply defined symbol fatal errors
6. Does anyone out there run Matlab on their RS/6000?
7. ld: fatal: symbol `_init' is multiply defined???
8. How do I stop CSLIP from running at boot up?
9. ld: multiply defined symbol
10. solaris,apache,mod_perl,php: Make bombs symbol `Error' is multiply defined
11. gcc giving error _main (multiply defined) /usr/lib/crt0.o
12. Multiply defined, when to write programm's on PRO*C
13. How do I check a .a file for multiply defined symbols?