[Ace-users] [tao-users] STL errors in ACE using STLPort

cbrown charles.brown at sensis.com
Thu Jan 10 10:18:08 CST 2008


All,

    I have a fix for this issue, but I'm not sure how to submit it.
Here is a diff showing what I changed;

# diff platform_sunos5_sunc++.GNU CB_platform_sunos5_sunc++.GNU
86a87,90
>   else
>     ifeq (C++ 5.9,$(findstring C++ 5.9,$(CC_VERSION)))
>       PLATFORM_STLPORT_CPPFLAGS = -library=stlport4
>     endif
89a94,95
> CFLAGS += $(PLATFORM_STLPORT_CPPFLAGS)
> 

--CB


On Mon, 2008-01-07 at 18:04 +0000, cbrown wrote:
> ACE VERSION: 5.6
>     TAO VERSION: 1.6
> 
>     HOST MACHINE and OPERATING SYSTEM: sparc solaris 10 sun studio 12
> 
>     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
>     COMPILER NAME AND VERSION (AND PATCHLEVEL):
> 
>     THE $ACE_ROOT/ace/config.h FILE : config-sunos5.10.h
> 
>     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE :
> platform_sunos5_sunc++.GNU
> 
>     CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>     (used by MPC when you generate your own makefiles): used makefiles
> from tar.gz
> 
>     AREA/CLASS/EXAMPLE AFFECTED: libACE.so
> 
>     DOES THE PROBLEM AFFECT:
>         COMPILATION? no
>         LINKING? yes - when linking user application
>             On Unix systems, did you run make realclean first? yes
>         EXECUTION? N/A
>         OTHER (please specify)? N/A
> 
>     SYNOPSIS: STL errors moving application to STLPort
> 
>     DESCRIPTION:
>     
>       We're moving some of our code from using default STL libraries
>       to using the STLPort libraries using the SS -library=stlport4
>       flag in application makefiles.
>       
>       When we get to the link step we get an undefined first
>       reference for an STL construct for libACE.so, as follows; 
>       
>       std::istream &std::istream::read(char*,long) /usr/local/ACE
> +TAO/ACE_wrappers/lib/libTAO.so
> int
> std::char_traits<char>::eof()   ../../libraries/lib/libgcnss.a(GcnssTrans.o)
> std::ostream &std::operator<<(std::ostream &,const char*) /usr/local/ACE
> +TAO/ACE_wrappers/lib/libACE.so
> 
>       I thought ACE didn't rely on STL at all?
>       
>       What would be the most expedient way of rebuild ACE+TAO with 
>       STLPort support?
> 
>     REPEAT BY: 
> 
>     SAMPLE FIX/WORKAROUND:
> 
> _______________________________________________
> tao-users mailing list
> tao-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/tao-users



More information about the Ace-users mailing list