Operating System - HP-UX
1827692 Members
3569 Online
109967 Solutions
New Discussion

/X11R6 HEADERS AND Compiler errors

 
Tom Frencel
Occasional Contributor

/X11R6 HEADERS AND Compiler errors

Hello,

I am attempting to build Qt 3.3.4 on Hp 11 (64-bit). I am using the 64-bit gcc 3.3.3 compiler.
It seems like the compiler does not like the X11R6 header files, as I am getting a lot of messages of the following type:

In file included from kernel/qt_x11_p.h:71,
from kernel/qtaddons_x11.cpp:25:
/usr/include/X11R6/X11/Xutil.h:363: error: ISO C++ forbids declaration of `
XClipBox' with no type
/usr/include/X11R6/X11/Xutil.h:389: error: ISO C++ forbids declaration of `
XDestroyRegion' with no type
/usr/include/X11R6/X11/Xutil.h:395: error: ISO C++ forbids declaration of `
XEmptyRegion' with no type
/usr/include/X11R6/X11/Xutil.h:402: error: ISO C++ forbids declaration of `
XEqualRegion' with no type
/usr/include/X11R6/X11/Xutil.h:548: error: ISO C++ forbids declaration of `
XIntersectRegion' with no type
/usr/include/X11R6/X11/Xutil.h:584: error: ISO C++ forbids declaration of `
XOffsetRegion' with no type
/usr/include/X11R6/X11/Xutil.h:627: error: ISO C++ forbids declaration of `
XSetClassHint' with no type
/usr/include/X11R6/X11/Xutil.h:636: error: ISO C++ forbids declaration of `
XSetIconSizes' with no type
/usr/include/X11R6/X11/Xutil.h:644: error: ISO C++ forbids declaration of `
XSetNormalHints' with no type
/usr/include/X11R6/X11/Xutil.h:663: error: ISO C++ forbids declaration of `
XSetSizeHints' with no type
/usr/include/X11R6/X11/Xutil.h:676: error: ISO C++ forbids declaration of `
XSetStandardProperties' with no type
/usr/include/X11R6/X11/Xutil.h:701: error: ISO C++ forbids declaration of `
XSetWMHints' with no type
/usr/include/X11R6/X11/Xutil.h:770: error: ISO C++ forbids declaration of `
XSetRegion' with no type
/usr/include/X11R6/X11/Xutil.h:787: error: ISO C++ forbids declaration of `
XSetZoomHints' with no type
/usr/include/X11R6/X11/Xutil.h:795: error: ISO C++ forbids declaration of `
XShrinkRegion' with no type
/usr/include/X11R6/X11/Xutil.h:811: error: ISO C++ forbids declaration of `
XSubtractRegion' with no type
/usr/include/X11R6/X11/Xutil.h:871: error: ISO C++ forbids declaration of `
XUnionRectWithRegion' with no type
/usr/include/X11R6/X11/Xutil.h:879: error: ISO C++ forbids declaration of `
XUnionRegion' with no type
/usr/include/X11R6/X11/Xutil.h:903: error: ISO C++ forbids declaration of `
XXorRegion' with no type
gmake[2]: *** [.obj/release-shared-mt/qtaddons_x11.o] Error 1
gmake[2]: Leaving directory `/net/lonestar/space2/tfrencel/qt/qt_release_hp11w/src'
gmake[1]: *** [sub-src] Error 2
gmake[1]: Leaving directory `/net/lonestar/space2/tfrencel/qt/qt_release_hp11w'
gmake: *** [init] Error 2
bash-2.04$

Does any one know how I may be able to fix these problems? Is this a known gcc incompatibility with HP's X11R6 headers? Are there "header-only" patches available. I am using a build server, used by others, so applying patches to it is not a simple matter.
Much thanks and appreciation for any help!

=Tom F.=
3 REPLIES 3
Stephen Keane
Honored Contributor

Re: /X11R6 HEADERS AND Compiler errors

cd $QTDIR/src
vi Makefile

change g++ to 'g++ -fpermissive'

Worth a try!
Peter Godron
Honored Contributor

Re: /X11R6 HEADERS AND Compiler errors

Tom,
have you had alook at :
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=37511 ?
Although this seems to have ended without anybody marking a resolution!
Regards
Tom Frencel
Occasional Contributor

Re: /X11R6 HEADERS AND Compiler errors

Thanks Peter - I'll give your suggested switch a try.

Thanks Stephen - I did check out the referred post before I decided to write my own. The prior post did not capture the same architecture/Qt version that I am building. Furthermore, the post that you referred to ends with a rant and does not seem to have a concrete resolution;-)

Thanks Guys,
=Tom F.=