Multiply defined

Multiply defined

Post by Frank Kolare » Fri, 13 Nov 1998 04:00:00



I did a man on ld and it said:
-z muldefs   Allows multiple symbol definitions. By default,
                 multiple  symbol  definitions  occurring between
                 relocatable objects will result in a fatal error
                 condition. This option suppresses the error con-
                 dition, and allows the first  symbol  definition
                 to be taken.

So I answered my own question. And then figured I should share it with
the masses......


> When adding a second encryption library to my makefile, I then got the
> following:
> ld: fatal: symbol `MD5Transform' is multiply defined:
>         (file /beta/webcom/libs/libcrypt.a(md5.o) and file
> /beta/webcom/libs/libscrypto.a(md5.o));

> Yet I need both libraries, but somehow, someway the writter of the first

> library got ahold of some source code which has the same name as
> some routine in the second library. Does anyone know how to resolve this

> issue. Ahhhhhhhhh!!!!!!!!!!!!!

> Frank Kolarek


 
 
 

Multiply defined

Post by Frank Kolare » Fri, 13 Nov 1998 04:00:00


When adding a second encryption library to my makefile, I then got the
following:
ld: fatal: symbol `MD5Transform' is multiply defined:
        (file /beta/webcom/libs/libcrypt.a(md5.o) and file
/beta/webcom/libs/libscrypto.a(md5.o));

Yet I need both libraries, but somehow, someway the writter of the first

library got ahold of some source code which has the same name as
some routine in the second library. Does anyone know how to resolve this

issue. Ahhhhhhhhh!!!!!!!!!!!!!

Frank Kolarek


 
 
 

1. Multiply defined, when to write programm's on PRO*C

Hi!
We have Oracle Server v.7.2.2.3 under SCO UNIX V5.
Programs written on PRO*C  with C-function (example ioctl())  is not
collect with paket who use Oracle library(example oratcl-2.3) . Oracle
libraries havent olc.o, ols.o,olm.o and
etc. And Oracle havent definition for tcgetattr() and tcsetattr().
Else I tryed to add C-library, but it was not happy , I suggest that many
functions across  selfsame, but its not sample to change (example olc.o on
libc.a.
Attantion!!!  If you had that problems then help me please.

??? a??.

2. Changing NIC

3. How do I check a .a file for multiply defined symbols?

4. ftp : attempt to access beyond end of device

5. SUN C Compiler Problem (multiply defined label)

6. digitizing with GRASS

7. ld: fatal error : symbols multiply-defined

8. ps vs top?

9. Upgrading kernel: "multiply defined"?

10. solaris,apache,mod_perl,php: Make bombs symbol `Error' is multiply defined

11. can not load driver in Solaris 9: xxx multiply defined

12. ld multiply defined error

13. Multiply defined symbols while linking with Workshop 6 ...