[Development] qnetworkinterface_unix.o compilation error
Gordon Marler
gmarler at gmarler.com
Sun Nov 25 17:58:31 CET 2012
I think the issue here is what standard you're (not) telling the Solaris
Studio 12.3 compiler to conform to.
Try re-configuring using these arguments:
qt-everywhere-opensource-src-4.8.3/configure -prefix
/your/path/of/choice -platform solaris-cc \
-no-iconv -opensource -D_XOPEN_SOURCE=500 \
-D__EXTENSIONS__ -confirm-license
The salient items are:
-no-iconv
Doesn't seem to compile without this - a separate issue
-D_XOPEN_SOURCE=500
Conform to SUSv2 standard (includes POSIX) - see standards(5) man
page for details
-D__EXTENSIONS__
Allow extensions that normally only fall under C99 (like the math
functions ceil, floor, etc - see their man pages) to still be used, if
they don't conflict with SUSv2, without being forced to use Studio
12.3's c99 compiler. You'll note the man pages for those functions
all state that you have to use c99 to compile them. This flag let's you
escape from that requirement.
QT 4.8.3 compiles fine in it's entirety for me on S11 and S11.1 with
Solaris Studio 12.3 after using those. May also work on Solaris 10, but
haven't bothered testing it.
Gordon Marler
gmarler at gmarler.com
More information about the Development
mailing list