Build on Oracle Solaris 11.3

Please post support and help requests here.
pfbc6
Posts: 2
Joined: 31 Jul 2017, 14:39

Build on Oracle Solaris 11.3

Postby pfbc6 » 31 Jul 2017, 14:49

Hi!

I've read here (https://github.com/pocoproject/poco/wik ... dPlatforms) that building on Solaris is supported.
I'm trying on Solaris 11.3, with Oracle Developper Studio installed.

I've run:
./configure
export PATH=/opt/developerstudio12.6/bin:$PATH
gmake

However, it unexpectedly ends with error: "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications".

Full gmake output:
----
gmake -C /export/home/bcsys/poco-1.7.8p3/Foundation
gmake[1] : on entre dans le répertoire « /export/home/bcsys/poco-1.7.8p3/Foundation »
** Compiling src/adler32.c (debug, shared)
cc -Iinclude -I/export/home/bcsys/poco-1.7.8p3/CppUnit/include -I/export/home/bcsys/poco-1.7.8p3/CppUnit/WinTestRunner/include -I/export/home/bcsys/poco-1.7.8p3/Foundation/include -I/export/home/bcsys/poco-1.7.8p3/XML/include -I/export/home/bcsys/poco-1.7.8p3/JSON/include -I/export/home/bcsys/poco-1.7.8p3/Util/include -I/export/home/bcsys/poco-1.7.8p3/Net/include -mt -Isrc -DPOCO_BUILD_HOST='"'hyvmback01'"' -DPOCO_TARGET_OSNAME='"'SunOS'"' -DPOCO_TARGET_OSARCH='"'i86pc'"' -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__ -g -xs -D_DEBUG= -KPIC -c src/adler32.c -o /export/home/bcsys/poco-1.7.8p3/Foundation/obj/SunOS/i86pc/debug_shared/adler32.o
"/usr/include/sys/feature_tests.h", line 354: #error: "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
cc: acomp failed for src/adler32.c
gmake[1]: *** [/export/home/bcsys/poco-1.7.8p3/Foundation/obj/SunOS/i86pc/debug_shared/adler32.o] Erreur 2
gmake[1] : on quitte le répertoire « /export/home/bcsys/poco-1.7.8p3/Foundation »
gmake: *** [Foundation-libexec] Erreur 2
----

And with make:
----
make
make: Fatal error in reader: Makefile, line 8: Unexpected end of line seen
----


What is the best way to compile (and use) the poco libraries on Solaris?

Thank you!

pfbc6
Posts: 2
Joined: 31 Jul 2017, 14:39

Re: Build on Oracle Solaris 11.3

Postby pfbc6 » 08 Aug 2017, 15:16

Hello,

I managed to build Poco on Solaris.

Just had to remove "-D_POSIX_C_SOURCE=199506L" from file "build/config/SunOS-SunStudio"
(and then patch some source files as required).

Regards


Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest

cron