Quoting malcolm <Malcolm.Kavalsky at Sun.COM>:
> Building FOSSqt fails, with:
>
> INFO: Log file: /tmp/FOSSqt.log
>
> INFO: Build command: "/opt/dtbld/bin/pkgbuild --define '_without_64
> --without-64' --define '_with_osol --with-osol' -ba /export/home/m
>
> alcolm/src/kde4-specs-dev/specs/FOSSqt.spec"
>
> ...
>
> pkgbuild: 3dnow auto-detection... ()
>
> pkgbuild: /opt/SUNWspro/bin/CC -library=no%Cstd -c -D_REENTRANT
> -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_P
>
> THREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNDEBUG -DNO_DEBUG
> -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOPEN_SOURCE=500 -D_XPG5
> -I/opt/
>
> foss/include/stdcxx/ansi -I/opt/foss/include/stdcxx
> -I/opt/foss/include -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4
> -xcache=8/6
>
> 4/4:256/128/8 -library=no%Cstd
>
-features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
> -instances=glob
>
> al -template=geninlinefuncs -s -xlang=c99 -xalias_level=compatible
> -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe
>
> ?-features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt
> -I/usr/include/libmng -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE
> -D_F
>
> ILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10
> -DNDEBUG -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOP
>
> EN_SOURCE=500 -D_XPG5 -I/opt/foss/include/stdcxx/ansi
> -I/opt/foss/include/stdcxx -I/opt/foss/include -xtarget=pentium4 -m32
> -xarch=sse
>
> 2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -library=no%Cstd
> -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,
>
> tmplrefstatic -instances=global -template=geninlinefuncs -s
> -xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption
> ccf
>
> e -features=gcc -Qoption ccfe -features=zla -Qoption ccfe
> ++boolflag:sunwcch=false -mt -I/usr/include/libmng?
> -I../../../mkspecs/solar
>
> is-cc -I. -I/opt/foss/include/stdcxx/ansi
> -I/opt/foss/include/stdcxx -I/opt/foss/include/freetype2
> -I/opt/foss/include/fontconfig -I/u
>
> sr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/postgres/8.3/include -I/usr/lib/dbus-1.0/include
> -I/usr/include/dbus-1.0 -I/usr
>
> /mysql/include/mysql -I/usr/include/libxml2 -I/usr/include/libxslt
> -I/usr/X11/include -I/usr/X11/include -I/usr/sfw/include -I. -I/opt
>
> /foss/qt4/include -o 3dnow.o 3dnow.cpp
>
> pkgbuild: "3dnow.cpp", line 1: Error: Could
> not open include file<mm3dnow.h>.
>
> pkgbuild: "3dnow.cpp", line 8: Error: The function "_m_femms" must
> have a prototype.

Hi

Qt's configure does not make much, if any, effort to detect features for
compilers other than GCC (or compilers that use exacly the same options as GCC).
So in this case, configure has a hard coded test using GCC's -m3dnow. The
equivalent Sun Studio option would be something like -xarch=pentium_proa or
-xarch-ssea.

This doesn't matter as the modified solaris-cc qmake.conf file has a load of
hard coded Sun Studio options in QMAKE_CXXFLAGS.

For ibase, it's not finding the ibase.h header. Ditto mysql not finding mysql.h.
It seems to me that the test for ibase assumes that it's in /usr/include (or
such a standard place). configure gets the include paths etc for MySQL from
mysql_config.

A+
Paul
-- 
Paul Floyd   http://paulf.free.fr

Reply via email to