Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pro*C /AIX /11.1.0.X :demo programs return "duplicate symbol" warnings

mschreib_il - oracleDec 14 2008 — edited Oct 12 2012
this problem has been raised in SR 7229372.994.

Working in 11.1.0.6 or 11.1.0.7 on AIX , compilation of the proc*C "sample1" demo program returns various duplicate symbol warnings:

ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: p_xrcfg
ld: 0711-224 WARNING: Duplicate symbol: p_xrc
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.

-this is true using all versions of the AIX xlc compiler 7,8,9 and is true for both 32bit and 64bit compilations. As far as I am aware this problem only occurs on AIX.

-using the -bloadmap linker option, customer reports the following duplicate symbol mappings:

ld: 0711-228 WARNING: Duplicate symbols were found while resolving symbols.
The following duplicates were found:
Symbol Source-File(Object) OR Import-File{Shared-object}
------------------------- -------------------------------------------------
p_xargc crt0main.s(/lib/crt0.o) ** Duplicate ** {oravl01/oracle/11.1.0.7/lib32//libclntsh.so}
p_xargv crt0main.s(/lib/crt0.o) ** Duplicate ** {oravl01/oracle/11.1.0.7/lib32//libclntsh.so}
p_xrcfg crt0main.s(/lib/crt0.o) ** Duplicate ** {oravl01/oracle/11.1.0.7/lib32//libclntsh.so}
p_xrc crt0main.s(/lib/crt0.o) ** Duplicate ** {oravl01/oracle/11.1.0.7/lib32//libclntsh.so}


-which indicates that these various OS symbols have been included in linclntsh.so, which is puzzling and confusing.

-customer raising the issue is a VAR who's application is heavilly dependent on Pro*C code: they need more information as to why this behavior has changed from earlier releases and why these OS symbols
have apparently been included in Oracle libraries. It is not acceptable to this VAR to be told not to be concerned with duplicate symbol warnings or that they are "meaningless" : there is no such thing as meaningless at this VAR's level of engineering and QA. VAR needs a much more detailed explanation as to what is happening here.

-can someone provide more information about what has changed in 11g to result in these warnings, and why? I am unable to find any documentation on this matter.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2012
Added on Dec 14 2008
3 comments
1,923 views