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:
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
> _______________________________________________
> tao-users mailing list
> tao-...@mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/tao-users
Thanks for the diff. I don't see a reason why we should check for the
compiler version. I have removed the compiler check so that it also works
with any sun studio version. I will commit this soon to the repo so that it
is in x.6.3 which is scheduled for next week.
Regards,
Johnny Willemsen
Remedy IT
Postbus 101
2650 AC Berkel en Rodenrijs
The Netherlands
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see
http://scoreboard.theaceorb.nl ***
*** Commercial service and support for ACE/TAO/CIAO ***
*** See http://www.theaceorb.nl/en/support.html ***