Overview
Features
Download
Documentation
Community
Add-Ons & Services

Solaris with GCC build issue

A general discussion forum.

Solaris with GCC build issue

Postby initzero » 20 Nov 2012, 09:16

Hi Poco peeps,

Anyone got successful in building poco library in solaris?

Poco Version: poco-1.4.4-all

Platform :
$ uname -a
SunOS initzero 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-V440

$ cat /etc/release
Solaris 9 9/05 s9s_u8wos_05 SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 04 August 2005

Below is how I configure and build poco.
Code: Select all
$ ./configure --prefix=/home/initzero/BUILD_tools/solaris/poco
   --include-path=/home/initzero/openssl_SOLARIS/openssl-install/include
   --library-path=/home/initzero/openssl_SOLARIS/openssl-install/lib
   --config=SunOS-GCC
   --omit=Data/ODBC,Data/MySQL
$ make


Below is the issue I encountered.
Code: Select all
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libPocoFoundationd.so.14: open failed: No such file or directory
ld: fatal: File processing errors. No output written to /home/initzero/POCO_library/poco-1.4.4-all-solaris/lib/SunOS/sun4u/libPocoFoundationd.so.14


I already tried to change the ld to use the gnu ld instead of the solaris ld but another issue pops out and its much complicated.

Hope someone can help shed light to this issue :( I already wasted 3 days on this issue. Please help.
initzero
 
Posts: 1
Joined: 20 Nov 2012, 06:03

Re: Solaris with GCC build issue

Postby rakesh » 20 Nov 2012, 17:49

I have no idea if the same applies to SPARC builds, but I have been compiling Poco on Solaris 11 with GCC for quite a while now. The page documents what I normally have to do to get the libraries to build.

http://sptci.com/docs/openindiana/poco.html
rakesh
 
Posts: 78
Joined: 13 Apr 2011, 17:43
Location: Chicago

Re: Solaris with GCC build issue

Postby littlemartian » 12 Mar 2014, 15:53

Hi,

Default 'configure' detection on Solaris SPARC is SunOS and should be ok if you use Sun CC compiler. If you use gcc, you should force os to SunOS-GCC (as you did) but there are some options in the make file that do not work on Solaris 10. Some of them are:
- In the Makefile, on 'distclean', default 'find' binary does not understant option '-print0'. Change it to '-print' and remov option '-0' from the subsequent xargs
- If you do not use full GCC (with ld, make and so on) and rely on default Solaris linker 'ld', that one does not support flag '-soname', you have to change it in build/config/SunOS-GCC from '-soname' to '-h'
littlemartian
 
Posts: 1
Joined: 12 Mar 2014, 15:38


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron