Hello,
I'm trying to build wxPython on a Solaris box and got some compile errors.
I installed GTK 1.2.8, and wxGTK 2.2.7 with no problems.
When I do a compile on wxPython, I get this:
sh-2.03$ python setup.py build
[snip]
running build_ext
building 'wxc' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -I/usr/local/ActivePython-2.1/include/python2.1 -c src/helpers.cpp -o build/temp.solaris-2.8-sun4u-2.1/src/helpers.o -I/usr/local/include -I/usr/local/lib/wx/include -D__USE_WXCONFIG__ -DGTK_NO_CHECK_CASTS -D__WXGTK__ -I/opt/gnome/lib/glib/include -I/opt/gnome/include -I/usr/openwin/include
In file included from /opt/gnome/include/gdk/gdkprivate.h:31,
from src/helpers.cpp:30:
/usr/openwin/include/X11/Xlib.h:2099: ANSI C++ forbids declaration `XSetTransientForHint' with no type
/usr/openwin/include/X11/Xlib.h:2107: ANSI C++ forbids declaration `XActivateScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:2114: ANSI C++ forbids declaration `XAddHost' with no type
/usr/openwin/include/X11/Xlib.h:2122: ANSI C++ forbids declaration `XAddHosts' with no type
/usr/openwin/include/X11/Xlib.h:2129: ANSI C++ forbids declaration `XAddToExtensionList' with no type
/usr/openwin/include/X11/Xlib.h:2136: ANSI C++ forbids declaration `XAddToSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:2190: ANSI C++ forbids declaration `XAllowEvents' with no type
/usr/openwin/include/X11/Xlib.h:2196: ANSI C++ forbids declaration `XAutoRepeatOff' with no type
/usr/openwin/include/X11/Xlib.h:2202: ANSI C++ forbids declaration `XAutoRepeatOn' with no type
/usr/openwin/include/X11/Xlib.h:2209: ANSI C++ forbids declaration `XBell' with no type
/usr/openwin/include/X11/Xlib.h:2242: ANSI C++ forbids declaration `XChangeActivePointerGrab' with no type
/usr/openwin/include/X11/Xlib.h:2251: ANSI C++ forbids declaration `XChangeGC' with no type
/usr/openwin/include/X11/Xlib.h:2259: ANSI C++ forbids declaration `XChangeKeyboardControl' with no type
/usr/openwin/include/X11/Xlib.h:2269: ANSI C++ forbids declaration `XChangeKeyboardMapping' with no type
/usr/openwin/include/X11/Xlib.h:2280: ANSI C++ forbids declaration `XChangePointerControl' with no type
/usr/openwin/include/X11/Xlib.h:2293: ANSI C++ forbids declaration `XChangeProperty' with no type
/usr/openwin/include/X11/Xlib.h:2301: ANSI C++ forbids declaration `XChangeSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:2310: ANSI C++ forbids declaration `XChangeWindowAttributes' with no type
/usr/openwin/include/X11/Xlib.h:2367: ANSI C++ forbids declaration `XCirculateSubwindows' with no type
/usr/openwin/include/X11/Xlib.h:2374: ANSI C++ forbids declaration `XCirculateSubwindowsDown' with no type
/usr/openwin/include/X11/Xlib.h:2381: ANSI C++ forbids declaration `XCirculateSubwindowsUp' with no type
/usr/openwin/include/X11/Xlib.h:2393: ANSI C++ forbids declaration `XClearArea' with no type
/usr/openwin/include/X11/Xlib.h:2400: ANSI C++ forbids declaration `XClearWindow' with no type
/usr/openwin/include/X11/Xlib.h:2406: ANSI C++ forbids declaration `XCloseDisplay' with no type
/usr/openwin/include/X11/Xlib.h:2415: ANSI C++ forbids declaration `XConfigureWindow' with no type
/usr/openwin/include/X11/Xlib.h:2432: ANSI C++ forbids declaration `XConvertSelection' with no type
/usr/openwin/include/X11/Xlib.h:2447: ANSI C++ forbids declaration `XCopyArea' with no type
/usr/openwin/include/X11/Xlib.h:2456: ANSI C++ forbids declaration `XCopyGC' with no type
/usr/openwin/include/X11/Xlib.h:2472: ANSI C++ forbids declaration `XCopyPlane' with no type
/usr/openwin/include/X11/Xlib.h:2499: ANSI C++ forbids declaration `XDefineCursor' with no type
/usr/openwin/include/X11/Xlib.h:2507: ANSI C++ forbids declaration `XDeleteProperty' with no type
/usr/openwin/include/X11/Xlib.h:2514: ANSI C++ forbids declaration `XDestroyWindow' with no type
/usr/openwin/include/X11/Xlib.h:2521: ANSI C++ forbids declaration `XDestroySubwindows' with no type
/usr/openwin/include/X11/Xlib.h:2539: ANSI C++ forbids declaration `XDisableAccessControl' with no type
/usr/openwin/include/X11/Xlib.h:2569: ANSI C++ forbids declaration `XDisplayKeycodes' with no type
/usr/openwin/include/X11/Xlib.h:2604: ANSI C++ forbids declaration `XDrawArc' with no type
/usr/openwin/include/X11/Xlib.h:2614: ANSI C++ forbids declaration `XDrawArcs' with no type
/usr/openwin/include/X11/Xlib.h:2626: ANSI C++ forbids declaration `XDrawImageString' with no type
/usr/openwin/include/X11/Xlib.h:2638: ANSI C++ forbids declaration `XDrawImageString16' with no type
/usr/openwin/include/X11/Xlib.h:2650: ANSI C++ forbids declaration `XDrawLine' with no type
/usr/openwin/include/X11/Xlib.h:2661: ANSI C++ forbids declaration `XDrawLines' with no type
/usr/openwin/include/X11/Xlib.h:2671: ANSI C++ forbids declaration `XDrawPoint' with no type
/usr/openwin/include/X11/Xlib.h:2682: ANSI C++ forbids declaration `XDrawPoints' with no type
/usr/openwin/include/X11/Xlib.h:2694: ANSI C++ forbids declaration `XDrawRectangle' with no type
/usr/openwin/include/X11/Xlib.h:2704: ANSI C++ forbids declaration `XDrawRectangles' with no type
/usr/openwin/include/X11/Xlib.h:2714: ANSI C++ forbids declaration `XDrawSegments' with no type
/usr/openwin/include/X11/Xlib.h:2726: ANSI C++ forbids declaration `XDrawString' with no type
/usr/openwin/include/X11/Xlib.h:2738: ANSI C++ forbids declaration `XDrawString16' with no type
/usr/openwin/include/X11/Xlib.h:2750: ANSI C++ forbids declaration `XDrawText' with no type
/usr/openwin/include/X11/Xlib.h:2762: ANSI C++ forbids declaration `XDrawText16' with no type
/usr/openwin/include/X11/Xlib.h:2768: ANSI C++ forbids declaration `XEnableAccessControl' with no type
/usr/openwin/include/X11/Xlib.h:2797: ANSI C++ forbids declaration `XFillArc' with no type
/usr/openwin/include/X11/Xlib.h:2807: ANSI C++ forbids declaration `XFillArcs' with no type
/usr/openwin/include/X11/Xlib.h:2819: ANSI C++ forbids declaration `XFillPolygon' with no type
/usr/openwin/include/X11/Xlib.h:2831: ANSI C++ forbids declaration `XFillRectangle' with no type
/usr/openwin/include/X11/Xlib.h:2841: ANSI C++ forbids declaration `XFillRectangles' with no type
/usr/openwin/include/X11/Xlib.h:2847: ANSI C++ forbids declaration `XFlush' with no type
/usr/openwin/include/X11/Xlib.h:2854: ANSI C++ forbids declaration `XForceScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:2860: ANSI C++ forbids declaration `XFree' with no type
/usr/openwin/include/X11/Xlib.h:2867: ANSI C++ forbids declaration `XFreeColormap' with no type
/usr/openwin/include/X11/Xlib.h:2877: ANSI C++ forbids declaration `XFreeColors' with no type
/usr/openwin/include/X11/Xlib.h:2884: ANSI C++ forbids declaration `XFreeCursor' with no type
/usr/openwin/include/X11/Xlib.h:2890: ANSI C++ forbids declaration `XFreeExtensionList' with no type
/usr/openwin/include/X11/Xlib.h:2897: ANSI C++ forbids declaration `XFreeFont' with no type
/usr/openwin/include/X11/Xlib.h:2905: ANSI C++ forbids declaration `XFreeFontInfo' with no type
/usr/openwin/include/X11/Xlib.h:2911: ANSI C++ forbids declaration `XFreeFontNames' with no type
/usr/openwin/include/X11/Xlib.h:2917: ANSI C++ forbids declaration `XFreeFontPath' with no type
/usr/openwin/include/X11/Xlib.h:2924: ANSI C++ forbids declaration `XFreeGC' with no type
/usr/openwin/include/X11/Xlib.h:2930: ANSI C++ forbids declaration `XFreeModifiermap' with no type
/usr/openwin/include/X11/Xlib.h:2937: ANSI C++ forbids declaration `XFreePixmap' with no type
/usr/openwin/include/X11/Xlib.h:2966: ANSI C++ forbids declaration `XGetErrorDatabaseText' with no type
/usr/openwin/include/X11/Xlib.h:2975: ANSI C++ forbids declaration `XGetErrorText' with no type
/usr/openwin/include/X11/Xlib.h:3022: ANSI C++ forbids declaration `XGetInputFocus' with no type
/usr/openwin/include/X11/Xlib.h:3029: ANSI C++ forbids declaration `XGetKeyboardControl' with no type
/usr/openwin/include/X11/Xlib.h:3038: ANSI C++ forbids declaration `XGetPointerControl' with no type
/usr/openwin/include/X11/Xlib.h:3056: ANSI C++ forbids declaration `XGetScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:3104: ANSI C++ forbids declaration `XGrabButton' with no type
/usr/openwin/include/X11/Xlib.h:3116: ANSI C++ forbids declaration `XGrabKey' with no type
/usr/openwin/include/X11/Xlib.h:3147: ANSI C++ forbids declaration `XGrabServer' with no type
/usr/openwin/include/X11/Xlib.h:3174: ANSI C++ forbids declaration `XIfEvent' with no type
/usr/openwin/include/X11/Xlib.h:3187: ANSI C++ forbids declaration `XInstallColormap' with no type
/usr/openwin/include/X11/Xlib.h:3201: ANSI C++ forbids declaration `XKillClient' with no type
/usr/openwin/include/X11/Xlib.h:3224: ANSI C++ forbids declaration `XLowerWindow' with no type
/usr/openwin/include/X11/Xlib.h:3231: ANSI C++ forbids declaration `XMapRaised' with no type
/usr/openwin/include/X11/Xlib.h:3238: ANSI C++ forbids declaration `XMapSubwindows' with no type
/usr/openwin/include/X11/Xlib.h:3245: ANSI C++ forbids declaration `XMapWindow' with no type
/usr/openwin/include/X11/Xlib.h:3253: ANSI C++ forbids declaration `XMaskEvent' with no type
/usr/openwin/include/X11/Xlib.h:3276: ANSI C++ forbids declaration `XMoveResizeWindow' with no type
/usr/openwin/include/X11/Xlib.h:3285: ANSI C++ forbids declaration `XMoveWindow' with no type
/usr/openwin/include/X11/Xlib.h:3292: ANSI C++ forbids declaration `XNextEvent' with no type
/usr/openwin/include/X11/Xlib.h:3298: ANSI C++ forbids declaration `XNoOp' with no type
/usr/openwin/include/X11/Xlib.h:3324: ANSI C++ forbids declaration `XPeekEvent' with no type
/usr/openwin/include/X11/Xlib.h:3339: ANSI C++ forbids declaration `XPeekIfEvent' with no type
/usr/openwin/include/X11/Xlib.h:3372: ANSI C++ forbids declaration `XPutBackEvent' with no type
/usr/openwin/include/X11/Xlib.h:3387: ANSI C++ forbids declaration `XPutImage' with no type
/usr/openwin/include/X11/Xlib.h:3446: ANSI C++ forbids declaration `XQueryColor' with no type
/usr/openwin/include/X11/Xlib.h:3455: ANSI C++ forbids declaration `XQueryColors' with no type
/usr/openwin/include/X11/Xlib.h:3472: ANSI C++ forbids declaration `XQueryKeymap' with no type
/usr/openwin/include/X11/Xlib.h:3499: ANSI C++ forbids declaration `XQueryTextExtents' with no type
/usr/openwin/include/X11/Xlib.h:3512: ANSI C++ forbids declaration `XQueryTextExtents16' with no type
/usr/openwin/include/X11/Xlib.h:3530: ANSI C++ forbids declaration `XRaiseWindow' with no type
/usr/openwin/include/X11/Xlib.h:3565: ANSI C++ forbids declaration `XRebindKeysym' with no type
/usr/openwin/include/X11/Xlib.h:3574: ANSI C++ forbids declaration `XRecolorCursor' with no type
/usr/openwin/include/X11/Xlib.h:3580: ANSI C++ forbids declaration `XRefreshKeyboardMapping' with no type
/usr/openwin/include/X11/Xlib.h:3587: ANSI C++ forbids declaration `XRemoveFromSaveSet' with no type
/usr/openwin/include/X11/Xlib.h:3594: ANSI C++ forbids declaration `XRemoveHost' with no type
/usr/openwin/include/X11/Xlib.h:3602: ANSI C++ forbids declaration `XRemoveHosts' with no type
/usr/openwin/include/X11/Xlib.h:3612: ANSI C++ forbids declaration `XReparentWindow' with no type
/usr/openwin/include/X11/Xlib.h:3618: ANSI C++ forbids declaration `XResetScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:3627: ANSI C++ forbids declaration `XResizeWindow' with no type
/usr/openwin/include/X11/Xlib.h:3635: ANSI C++ forbids declaration `XRestackWindows' with no type
/usr/openwin/include/X11/Xlib.h:3642: ANSI C++ forbids declaration `XRotateBuffers' with no type
/usr/openwin/include/X11/Xlib.h:3652: ANSI C++ forbids declaration `XRotateWindowProperties' with no type
/usr/openwin/include/X11/Xlib.h:3666: ANSI C++ forbids declaration `XSelectInput' with no type
/usr/openwin/include/X11/Xlib.h:3683: ANSI C++ forbids declaration `XSetAccessControl' with no type
/usr/openwin/include/X11/Xlib.h:3691: ANSI C++ forbids declaration `XSetArcMode' with no type
/usr/openwin/include/X11/Xlib.h:3699: ANSI C++ forbids declaration `XSetBackground' with no type
/usr/openwin/include/X11/Xlib.h:3707: ANSI C++ forbids declaration `XSetClipMask' with no type
/usr/openwin/include/X11/Xlib.h:3716: ANSI C++ forbids declaration `XSetClipOrigin' with no type
/usr/openwin/include/X11/Xlib.h:3728: ANSI C++ forbids declaration `XSetClipRectangles' with no type
/usr/openwin/include/X11/Xlib.h:3735: ANSI C++ forbids declaration `XSetCloseDownMode' with no type
/usr/openwin/include/X11/Xlib.h:3744: ANSI C++ forbids declaration `XSetCommand' with no type
/usr/openwin/include/X11/Xlib.h:3754: ANSI C++ forbids declaration `XSetDashes' with no type
/usr/openwin/include/X11/Xlib.h:3762: ANSI C++ forbids declaration `XSetFillRule' with no type
/usr/openwin/include/X11/Xlib.h:3770: ANSI C++ forbids declaration `XSetFillStyle' with no type
/usr/openwin/include/X11/Xlib.h:3778: ANSI C++ forbids declaration `XSetFont' with no type
/usr/openwin/include/X11/Xlib.h:3786: ANSI C++ forbids declaration `XSetFontPath' with no type
/usr/openwin/include/X11/Xlib.h:3794: ANSI C++ forbids declaration `XSetForeground' with no type
/usr/openwin/include/X11/Xlib.h:3802: ANSI C++ forbids declaration `XSetFunction' with no type
/usr/openwin/include/X11/Xlib.h:3810: ANSI C++ forbids declaration `XSetGraphicsExposures' with no type
/usr/openwin/include/X11/Xlib.h:3818: ANSI C++ forbids declaration `XSetIconName' with no type
/usr/openwin/include/X11/Xlib.h:3827: ANSI C++ forbids declaration `XSetInputFocus' with no type
/usr/openwin/include/X11/Xlib.h:3838: ANSI C++ forbids declaration `XSetLineAttributes' with no type
/usr/openwin/include/X11/Xlib.h:3853: ANSI C++ forbids declaration `XSetPlaneMask' with no type
/usr/openwin/include/X11/Xlib.h:3871: ANSI C++ forbids declaration `XSetScreenSaver' with no type
/usr/openwin/include/X11/Xlib.h:3880: ANSI C++ forbids declaration `XSetSelectionOwner' with no type
/usr/openwin/include/X11/Xlib.h:3891: ANSI C++ forbids declaration `XSetState' with no type
/usr/openwin/include/X11/Xlib.h:3899: ANSI C++ forbids declaration `XSetStipple' with no type
/usr/openwin/include/X11/Xlib.h:3907: ANSI C++ forbids declaration `XSetSubwindowMode' with no type
/usr/openwin/include/X11/Xlib.h:3916: ANSI C++ forbids declaration `XSetTSOrigin' with no type
/usr/openwin/include/X11/Xlib.h:3924: ANSI C++ forbids declaration `XSetTile' with no type
/usr/openwin/include/X11/Xlib.h:3932: ANSI C++ forbids declaration `XSetWindowBackground' with no type
/usr/openwin/include/X11/Xlib.h:3940: ANSI C++ forbids declaration `XSetWindowBackgroundPixmap' with no type
/usr/openwin/include/X11/Xlib.h:3948: ANSI C++ forbids declaration `XSetWindowBorder' with no type
/usr/openwin/include/X11/Xlib.h:3956: ANSI C++ forbids declaration `XSetWindowBorderPixmap' with no type
/usr/openwin/include/X11/Xlib.h:3964: ANSI C++ forbids declaration `XSetWindowBorderWidth' with no type
/usr/openwin/include/X11/Xlib.h:3972: ANSI C++ forbids declaration `XSetWindowColormap' with no type
/usr/openwin/include/X11/Xlib.h:3981: ANSI C++ forbids declaration `XStoreBuffer' with no type
/usr/openwin/include/X11/Xlib.h:3989: ANSI C++ forbids declaration `XStoreBytes' with no type
/usr/openwin/include/X11/Xlib.h:3997: ANSI C++ forbids declaration `XStoreColor' with no type
/usr/openwin/include/X11/Xlib.h:4006: ANSI C++ forbids declaration `XStoreColors' with no type
/usr/openwin/include/X11/Xlib.h:4014: ANSI C++ forbids declaration `XStoreName' with no type
/usr/openwin/include/X11/Xlib.h:4024: ANSI C++ forbids declaration `XStoreNamedColor' with no type
/usr/openwin/include/X11/Xlib.h:4031: ANSI C++ forbids declaration `XSync' with no type
/usr/openwin/include/X11/Xlib.h:4043: ANSI C++ forbids declaration `XTextExtents' with no type
/usr/openwin/include/X11/Xlib.h:4055: ANSI C++ forbids declaration `XTextExtents16' with no type
/usr/openwin/include/X11/Xlib.h:4091: ANSI C++ forbids declaration `XUndefineCursor' with no type
/usr/openwin/include/X11/Xlib.h:4100: ANSI C++ forbids declaration `XUngrabButton' with no type
/usr/openwin/include/X11/Xlib.h:4109: ANSI C++ forbids declaration `XUngrabKey' with no type
/usr/openwin/include/X11/Xlib.h:4116: ANSI C++ forbids declaration `XUngrabKeyboard' with no type
/usr/openwin/include/X11/Xlib.h:4123: ANSI C++ forbids declaration `XUngrabPointer' with no type
/usr/openwin/include/X11/Xlib.h:4129: ANSI C++ forbids declaration `XUngrabServer' with no type
/usr/openwin/include/X11/Xlib.h:4136: ANSI C++ forbids declaration `XUninstallColormap' with no type
/usr/openwin/include/X11/Xlib.h:4143: ANSI C++ forbids declaration `XUnloadFont' with no type
/usr/openwin/include/X11/Xlib.h:4150: ANSI C++ forbids declaration `XUnmapSubwindows' with no type
/usr/openwin/include/X11/Xlib.h:4157: ANSI C++ forbids declaration `XUnmapWindow' with no type
/usr/openwin/include/X11/Xlib.h:4177: ANSI C++ forbids declaration `XWarpPointer' with no type
/usr/openwin/include/X11/Xlib.h:4198: ANSI C++ forbids declaration `XWindowEvent' with no type
In file included from /opt/gnome/include/gdk/gdkprivate.h:32,
from src/helpers.cpp:30:
/usr/openwin/include/X11/Xutil.h:363: ANSI C++ forbids declaration `XClipBox' with no type
/usr/openwin/include/X11/Xutil.h:389: ANSI C++ forbids declaration `XDestroyRegion' with no type
/usr/openwin/include/X11/Xutil.h:395: ANSI C++ forbids declaration `XEmptyRegion' with no type
/usr/openwin/include/X11/Xutil.h:402: ANSI C++ forbids declaration `XEqualRegion' with no type
/usr/openwin/include/X11/Xutil.h:548: ANSI C++ forbids declaration `XIntersectRegion' with no type
/usr/openwin/include/X11/Xutil.h:584: ANSI C++ forbids declaration `XOffsetRegion' with no type
/usr/openwin/include/X11/Xutil.h:627: ANSI C++ forbids declaration `XSetClassHint' with no type
/usr/openwin/include/X11/Xutil.h:636: ANSI C++ forbids declaration `XSetIconSizes' with no type
/usr/openwin/include/X11/Xutil.h:644: ANSI C++ forbids declaration `XSetNormalHints' with no type
/usr/openwin/include/X11/Xutil.h:663: ANSI C++ forbids declaration `XSetSizeHints' with no type
/usr/openwin/include/X11/Xutil.h:676: ANSI C++ forbids declaration `XSetStandardProperties' with no type
/usr/openwin/include/X11/Xutil.h:701: ANSI C++ forbids declaration `XSetWMHints' with no type
/usr/openwin/include/X11/Xutil.h:770: ANSI C++ forbids declaration `XSetRegion' with no type
/usr/openwin/include/X11/Xutil.h:787: ANSI C++ forbids declaration `XSetZoomHints' with no type
/usr/openwin/include/X11/Xutil.h:795: ANSI C++ forbids declaration `XShrinkRegion' with no type
/usr/openwin/include/X11/Xutil.h:811: ANSI C++ forbids declaration `XSubtractRegion' with no type
/usr/openwin/include/X11/Xutil.h:871: ANSI C++ forbids declaration `XUnionRectWithRegion' with no type
/usr/openwin/include/X11/Xutil.h:879: ANSI C++ forbids declaration `XUnionRegion' with no type
/usr/openwin/include/X11/Xutil.h:903: ANSI C++ forbids declaration `XXorRegion' with no type
error: command 'gcc' failed with exit status 1
sh-2.03$ exit
exit
BTW - I subscribe to the digest of the list, so if you need more info,
cc'ing me back in the response will be quite a bit faster.
Thanks,
Mike
···
--