Minor issue SGI IRIX mips compilation fails for 
qt-x11-opensource-src-4.5.0-beta1
MIPSpro Compilers: Version 7.4.4m does not support getresuid or 
getresgid which
are used in gtksymbols.cpp
http://www.gnu.org/software/gnulib/manual/html_node/getresgid.html
http://www.gnu.org/software/gnulib/manual/html_node/getresuid.html#getresuid

configure detects Gtk theme support with

if [ -n "$PKG_CONFIG" ]; then
            QT_CFLAGS_QGTKSTYLE=`$PKG_CONFIG --cflags gtk+-2.0 ">=" 2.10 
atk 2>/dev/null`
            QT_LIBS_QGTKSTYLE=`$PKG_CONFIG --libs gobject-2.0 2>/dev/null`
        fi

work around use -no-gtkstyle in config string.

possible fixs
 In configure use a canBuildGtkStyle flag similar to canBuildWebKit.

Check for getresuid using the method gtk+ configure uses.

In gtksymbols.cpp do not use getresuid or getresgid just use getuid etc.
which is effectively what gtkmain.c does if getresuid is not availible.

Test for sgi in gtksymbols.cpp

diff gtksymbols.cpp~ gtksymbols.cpp
618a619
 > #ifndef __sgi
620a622
 > #endif
627c629,632
<     if (getresuid (&ruid, &euid, &suid) != 0 || getresgid (&rgid, 
&egid, &sgid) != 0) {
---
 > #ifndef __sgi
 >     if (getresuid (&ruid, &euid, &suid) != 0 || getresgid (&rgid, 
&egid, &sgid) != 0)
 > #endif
 >     {

ld32: ERROR   33 : Unresolved text symbol "getresuid(long*,long*,long*)" 
-- 1st referenced by 
/usr/apps/qt-x11-opensource-src-4.5.0-beta1/lib/libQtGui.a(gtksymbols.o).
    Use linker option -v to see when and which objects, archives and 
dsos are loaded. 
ld32: ERROR   33 : Unresolved text symbol "getresgid(long*,long*,long*)" 
-- 1st referenced by 
/usr/apps/qt-x11-opensource-src-4.5.0-beta1/lib/libQtGui.a(gtksymbols.o).
    Use linker option -v to see when and which objects, archives and 
dsos are loaded. 
ld32: INFO    152: Output file removed because of error.
gmake[1]: *** [../../../bin/uic3] Error 2
gmake[1]: Leaving directory 
`/usr/apps/qt-x11-opensource-src-4.5.0-beta1/src/tools/uic3'
gmake: *** [sub-uic3-make_default-ordered] Error 2

-- 
Richard Fleck


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This email message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged 
information of Cameron and its Operating Divisions. 
Any unauthorized use or disclosure is prohibited. 
If you are not the intended recipient, please contact the
sender by reply email and delete and destroy all copies 
of the original message inclusive of any attachments.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to