aMule Bug Tracker - aMule
View Issue Details
0000725aMuleMiscpublic2005-12-13 14:422005-12-15 06:38
0000725: gtk2/freebsd6: build fails; amule-gui.cpp missing header file X11/Xlib.h
After updates to the build system sometime between the nov-23 and nov-24 snapshots, the build fails in amule-gui.cpp with

amule-gui.cpp:31:53: X11/Xlib.h: No such file or directory
amule-gui.cpp: In member function `virtual int CamuleGuiBase::InitGui(bool, wxString&)':
amule-gui.cpp:185: error: `XParseGeometry' undeclared (first use this function)

This is because of a missing -I/usr/include/X11R6.
The GTK_CFLAGS variable used to include this, but is now gone.

wx-config for 2.6 (as opposed to 2.4) does not list -I/usr/X11R6/include, and so the WX_C**FLAGS variables don't contain it either.

At least that's the case here. I'm using the FreeBSD port wxgtk26-unicode. This is wxGTK version 2.6.2 + the intl fix. The config is called gtk2-unicode-release-2.6.
To compare

% grep "-X11R6/include " 11_23_2005_CVS/Compilation.flags
GTK_CFLAGS = -DXTHREADS -DXUSE_MTSAFE_API -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/gtk-2.0 -I/usr/X11R6/lib/gtk-2.0/include -I/usr/X11R6/include/pango-1.0 -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include

% grep "X11R6/include " 11_24_2005_CVS/Compilation.flags


% wxgtk2u-2.6-config --cppflags
-I/usr/X11R6/include/wx-2.6/gtk2-unicode-release-2.6 -I/usr/X11R6/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
No tags attached.
Issue History
2005-12-13 14:42laoNew Issue
2005-12-15 06:37KryStatusnew => assigned
2005-12-15 06:37KryAssigned To => Kry
2005-12-15 06:38KryStatusassigned => resolved
2005-12-15 06:38KryFixed in Version => CVS
2005-12-15 06:38KryResolutionopen => fixed
2005-12-15 06:38KryNote Added: 0001681

2005-12-15 06:38   
No more X11 usage. Hence, fixed.

Revision 6083 (tarball 15/12)