Overview
Features
Download
Documentation
Community
Add-Ons & Services

Compiling Poco on Solaris 10

Please post support and help requests here.

Compiling Poco on Solaris 10

Postby dsd@ugs.com » 27 Feb 2008, 19:13

I was trying to compile Poco on Solaris 10 using Sun Studio 10 compiler but receive the following error. I see there is a newer patch available at level -14 which we have not applied at our site yet. I've seen a blog posting on this site that mentioned a compiler bug, but haven't seen any resolution yet. Do you think this patch will help?

Thanks for any help,
Dave

CC: Sun C++ 5.7 Patch 117830-04 2005/09/14
Code: Select all

** Compiling src/LinearHashTableTest.cpp (debug, shared)
CC -Iinclude -I/plm/svnas/tc_work/dsd/iso/poco-1.3.2/Foundation/include
-I/plm/svnas/tc_work/dsd/iso/poco-1.3.2/XML/include
-I/plm/svnas/tc_work/dsd/iso/poco-1.3.2/Util/include
-I/plm/svnas/tc_work/dsd/iso/poco-1.3.2/Net/include
-I/plm/svnas/tc_work/dsd/iso/poco-1.3.2/CppUnit/include -mt 
-DPOCO_BUILD_HOST=omfsun3  -D_REENTRANT -D_THREAD_SAFE
-D_POSIX_PTHREAD_SEMANTICS  -g -xs -D_DEBUG= -KPIC -c src/LinearHashTableTest.cpp
-o plm/svnas/tc_work/dsd/iso/poco-1.3.2/Foundation/testsuite/obj/SunOS/sun4u/debug_shared/LinearHashTableTest.o
"/plm/svnas/tc_work/dsd/iso/poco-1.3.2/Foundation/include/Poco/LinearHashTable.h", line 248: Error: int is not a structure type.
"src/LinearHashTableTest.cpp", line 64:     Where: While instantiating "Poco::LinearHashTable::LinearHashTable(unsigned)".
"src/LinearHashTableTest.cpp", line 64:     Where: Instantiated from non-template code.
"/plm/svnas/tc_work/dsd/iso/poco-1.3.2/Foundation/include/Poco/LinearHashTable.h", line 249: Error: int is not a structure type.
"src/LinearHashTableTest.cpp", line 64:     Where: While instantiating "Poco::LinearHashTable::LinearHashTable(unsigned)".
"src/LinearHashTableTest.cpp", line 64:     Where: Instantiated from non-template code.
"src/LinearHashTableTest.cpp", line 70: Warning (Anachronism): Type names qualified by template parameters require "typename".
dsd@ugs.com
 
Posts: 5
Joined: 14 Feb 2008, 22:14

Re: Compiling Poco on Solaris 10

Postby guenter » 27 Feb 2008, 19:49

This seems to be a nasty bug in Sun's compiler. I hoped that this will be solved by the latest Sun Studio compiler release, but the bug seems to be still there (however, I haven't checked for some time).

Maybe Alex, who is now also working with the Sun compiler, can say more about this.

Fortunately, this only happens when compiling the Foundation testsuite; the rest of POCO compiles fine. So unless your code uses LinearHashTable (or HashMap and HashSet), you can use POCO fine on Solaris.

guenter
 
Posts: 1135
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Re: Compiling Poco on Solaris 10

Postby alex » 28 Feb 2008, 16:30

> This seems to be a nasty bug in Sun's compiler. I hoped that this will be solved by the latest Sun Studio

> compiler release, but the bug seems to be still there (however, I haven't checked for some time).

> Maybe Alex, who is now also working with the Sun compiler, can say more about this.

My compiler version is:

Sun C++ 5.9 SunOS_i386 Build47_dlight 2007/05/22

and the bug is still there. Since I don't need that portion, I did not bother to dig into it. Is this a known bug? I couldn't find it in the bug database.

Alex
alex
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Re: Compiling Poco on Solaris 10

Postby alex » 12 May 2008, 20:46

> Maybe Alex, who is now also working with the Sun compiler, can say more about this.

FYI:

I have just compiled Foundation tests:

Code: Select all

CC: Sun C++ 5.9 SunOS_i386 Patch 124864-03 2008/03/12


Alex
alex
 
Posts: 1130
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests