According to this document:
http://cpp-applied.info/IBM.Redbooks-Developing.and.Porting.C.and.CPP.Applications.on.AIX/7338final/LiB0047.html
Section 6.3.2 Duplicate symbols

You can use option -bhalt:5 to suppress these warnings.  After making the
following changes, I no longer received the duplicate symbol warnings when
building on AIX.

Index: makefile.xlC
===================================================================
RCS file: /cvsroot/staf/src/staf/build/makefile.xlC,v
retrieving revision 1.8
diff -r1.8 makefile.xlC
28c28,29
<                    $(CC_SHAREDLIBNAMEFLAGS) -DSTAF_NATIVE_COMPILER -q64
---
>                    $(CC_SHAREDLIBNAMEFLAGS) -DSTAF_NATIVE_COMPILER -q64 \
>                    -bhalt:5
31c32,33
<                    $(CC_SHAREDLIBNAMEFLAGS) -DSTAF_NATIVE_COMPILER
---
>                    $(CC_SHAREDLIBNAMEFLAGS) -DSTAF_NATIVE_COMPILER \
>                    -bhalt:5

Note that the preferred method of using -qtemplateregistry described in the
document did not work for me.  I would get "xlC_r: 1501-230 Internal
compiler error; please contact your Service Representative" when compiling.

Thanks,
David


                                                                       
 David Bender          11501 Burnet Rd.   Phone (T/L): 1-512-286-5315  
 STAF/STAX Development Bldg. 903-5B002    (363-5315)                   
                       Austin, TX         ITN: 23635315                
 IBM Software Group,   78758-3400         Email: bda...@us.ibm.com     
 WPLC                                                                  
                                                                       
                                                                       






                                                                       
  From:       "jander...@talentex.co.uk" <jander...@talentex.co.uk>    
                                                                       
  To:         staf <staf-users@lists.sourceforge.net>                  
                                                                       
  Date:       04/15/2010 11:47 PM                                      
                                                                       
  Subject:    Re: [staf-users] Duplicate symbols on AIX 5.2?           
                                                                       





Hi David,

Isn't there a way to get rid of them? I like, as a matter of principle, to
ensure that all my code builds without messages - otherwise I worry about
missing an error message somewhere.

/jan

David Bender wrote:
> We also get those warnings when building on AIX.  They can be ignored.
>
> Thanks,
> David
>
>
>

>  David Bender          11501 Burnet Rd.   Phone (T/L): 1-512-286-5315

>  STAF/STAX Development Bldg. 903-5B002    (363-5315)

>                        Austin, TX         ITN: 23635315

>  IBM Software Group,   78758-3400         Email: bda...@us.ibm.com

>  WPLC

>

>

>
>
>
>
>
>
>

>   From:       "jander...@talentex.co.uk" <jander...@talentex.co.uk>

>

>   To:         staf <staf-users@lists.sourceforge.net>

>

>   Date:       04/15/2010 12:03 PM

>

>   Subject:    [staf-users] Duplicate symbols on AIX 5.2?

>

>
>
>
>
>
> Why is it, when I try to build on AIX 5.2 I get a long list of
> duplicatie symbols - and do they matter:
>
> /usr/vacpp/bin/xlC_r -c -o infauth.o -q64 -DSTAF_OS_NAME_AIX
> -DSTAF_GETHOSTBYNAME_R_3PARM -DSTAF_GETHOSTBYADDR_R_5PARM -O
> -DSTAF_SHARED_LIB_PREFIX=lib -DSTAF_SHARED_LIB_SUFFIX=.so
> -DSTAF_NATIVE_COMPILER -I../../stafif/unix -I../../stafif
> -I../../include ../infauth.cpp
> /usr/vacpp/bin/xlC_r -qmkshrobj  -o libinfauth.so -q64 -brtl
> -DSTAF_OS_NAME_AIX -DSTAF_GETHOSTBYNAME_R_3PARM
> -DSTAF_GETHOSTBYADDR_R_5PARM -O -DSTAF_SHARED_LIB_PREFIX=lib
> -DSTAF_SHARED_LIB_SUFFIX=.so -DSTAF_NATIVE_COMPILER
> -L/usr/local/staf/lib -lpthread -lSTAF  infauth.o
> ld: 0711-224 WARNING: Duplicate symbol: __priority0x80000000
> ld: 0711-224 WARNING: Duplicate symbol: .__priority0x80000000
> ld: 0711-224 WARNING: Duplicate symbol: __cdtors
> ld: 0711-224 WARNING: Duplicate symbol:
> .std::basic_ostream<char,std::char_traits<char> >&
> std::operator<<<std::char_traits<char>
>  >(std::basic_ostream<char,std::char_traits<char> >&,const char*)
> ld: 0711-224 WARNING: Duplicate symbol:
> .std::basic_streambuf<char,std::char_traits<char> >::sputc(char)
> ld: 0711-224 WARNING: Duplicate symbol:
> .std::basic_ostream<char,std::char_traits<char> >::sentry::~sentry()
>
>
>
> /jan
>
>
------------------------------------------------------------------------------

>
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/staf-users
>
>


------------------------------------------------------------------------------

Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to