Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[tao-users] STL errors in ACE using STLPort

39 views
Skip to first unread message

cbrown

unread,
Jan 7, 2008, 1:04:01 PM1/7/08
to tao-...@cse.wustl.edu
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:

cbrown

unread,
Jan 10, 2008, 11:18:08 AM1/10/08
to tao-...@cse.wustl.edu
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

> _______________________________________________
> tao-users mailing list
> tao-...@mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/tao-users

Johnny Willemsen

unread,
Jan 13, 2008, 5:26:28 AM1/13/08
to charle...@sensis.com, tao-...@cse.wustl.edu
Hi,

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 ***

harsh...@gmail.com

unread,
Jul 2, 2014, 9:47:07 AM7/2/14
to
After chnaing everything in platfrom_macros.GNU, I dont see my changes getting applied in compilation when I run make. Can anyone give me exact steps to build ACE with stlport on solaris. I know the link for building GNU but it doen't work.
0 new messages