AIX 4.3.3 - C for AIX compiler problem

AIX 4.3.3 - C for AIX compiler problem

Post by Tarun Kuma » Fri, 31 May 2002 18:20:47



We have a an IBM machine with AIX 4.3.3 having C compiler for AIX
version 3.6.6. When compiling the code, we get following error:

ld: 0711-224 WARNING: Duplicate symbol: .fsav
ld: 0711-224 WARNING: Duplicate symbol: fsav
ld: 0711-224 WARNING: Duplicate symbol: .fres
ld: 0711-224 WARNING: Duplicate symbol: fres
ld: 0711-224 WARNING: Duplicate symbol: .strcpy
ld: 0711-224 WARNING: Duplicate symbol: strcpy
ld: 0711-224 WARNING: Duplicate symbol: .strcat

Please suggest a solution.

Thanks,

Tarun

  tkumar.vcf
< 1K Download
 
 
 

AIX 4.3.3 - C for AIX compiler problem

Post by Gary R. Hoo » Sat, 01 Jun 2002 00:42:45



> We have a an IBM machine with AIX 4.3.3 having C compiler for AIX
> version 3.6.6. When compiling the code, we get following error:

> ld: 0711-224 WARNING: Duplicate symbol: .fsav
> ld: 0711-224 WARNING: Duplicate symbol: fsav
> ld: 0711-224 WARNING: Duplicate symbol: .fres
> ld: 0711-224 WARNING: Duplicate symbol: fres
> ld: 0711-224 WARNING: Duplicate symbol: .strcpy
> ld: 0711-224 WARNING: Duplicate symbol: strcpy
> ld: 0711-224 WARNING: Duplicate symbol: .strcat

You have more than one copy of those routines in your object code.
Since you don't show your command line, nor provide detail on
what you're building, try adding -bloadmap:foo.lmap and find
out where the duplicates are coming from.  Normally, these routines
are pulled from static object files in libc.a; figure out why
you have them somewhere else.

And if you can live with the duplicates, you can use -bh:5 to
silence duplicate symbol warnings.

--
Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
________________________________________________________________________

 
 
 

1. AIX C 3.1.4 compiler generated executables not portable to older AIX Versions

Hi,

Did anyone allready run into the following problem :

We recently upgraded our development machine to an AIX 4.2.1 Unix (Bull)
and found our executables break on pre - 4.2.1 machines. (4.1.X).

We use the 3.4.1 C-compiler for AIX 4.1 and 4.2 delivered by Bull on the
Estrella 300 series.

A simple "hello world" program gives following error messages on execution

        0509-037 System error - error data is: prob
        0509-023 Symbol __mod_init in ksh is not defined.
        0509-023 Symbol __crt0v in ksh is not defined.
        0509-026 System error: Cannot run a file that does not have a valid
form

I suppose this is because of the default linking of shared libraries.
Is the only remedy the linking of the generated object files on the target
platform ?
Or can the linking (statically) be done on the source platform ?

Any comments are welcome.

You can reach us at

Cerm benelux nv

Thank you.
Regards,

Ralph

2. Promise SATAII 150 TX4

3. hp-ux C compiler flags vs hp-aix C compiler flags

4. Request help sharity-light samba

5. AIX 3.2.5 -> AIX 4.3.2 problems/advice?

6. Buffer cache and read-ahead.

7. NFS mounting problem from AIX 4.1.4 to AIX 3.2.5

8. Multithreading with CSet++ on AIX 4.1.x

9. Security Problem with AIX 3.2 and AIX 3.1.5 w/ PTF 2007

10. AIX 3 -> Aix 4 problems

11. Aix 4.3.1 - tty problems after upgrade from Aix 4.1.5

12. License problems with the IBM C compiler under AIX 4.3.3

13. IBM C & C++ compilers for AIX V3.6: Licence server problem