Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237495 - sci-geosciences/grass-6.3.0 USE=wxwindows - driver.h:23:20: error: Python.h: No such file or directory
Summary: sci-geosciences/grass-6.3.0 USE=wxwindows - driver.h:23:20: error: Python.h: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 16:01 UTC by Christian Schmitt
Modified: 2008-09-21 22:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log of the build (config.log,32.26 KB, text/plain)
2008-09-15 10:54 UTC, Christian Schmitt
Details
complete build log (grass-build.tar.gz,100.46 KB, application/octet-stream)
2008-09-15 11:51 UTC, Christian Schmitt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Schmitt 2008-09-12 16:01:49 UTC
Compiling with "X ffmpeg glw jpeg opengl png readline tiff truetype" enabled works. As soon as adding the "wxwindows" USE flag, it bails out with an error during compile (towards the end):

Converting: /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/wxGUI.Attribute_Table_Manager.html to /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/wxGUI.Attribute_Table_Manager.1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.3.0 sh /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/tools/g.html2man/g.html2man /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/wxGUI.Digitization_Tool.html /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/wxGUI.Digitization_Tool.1 1
Converting: /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/wxGUI.Digitization_Tool.html to /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/wxGUI.Digitization_Tool.1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.3.0 sh /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/tools/g.html2man/g.html2man /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/wxGUI.html /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/wxGUI.1 1
Converting: /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/wxGUI.html to /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/wxGUI.1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.3.0 sh /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/tools/g.html2man/g.html2man /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/xdriver.html /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/xdriver.1 1
Converting: /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/xdriver.html to /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/xdriver.1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.3.0 sh /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/tools/g.html2man/g.html2man /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/xganim.html /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/xganim.1 1
Converting: /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/docs/html/xganim.html to /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/man/man1/xganim.1
make[1]: Leaving directory `/var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/man'
make[1]: Entering directory `/var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/macosx'
Makefile:126: warning: overriding commands for target `clean'
../include/Make/Rules.make:72: warning: ignoring old commands for target `clean'
make[1]: Leaving directory `/var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/macosx'
if [ 0 -eq 1 ] ; then make -C locale; fi
cp -f AUTHORS COPYING CHANGES REQUIREMENTS.html GPL.TXT /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/
cp -f /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/bin.i686-pc-linux-gnu/grass63 /var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/grass63.tmp
build_html_index.sh
chmod: cannot access `../dist.i686-pc-linux-gnu/docs/html/nviz/grassdocs.css': No such file or directory
Generating HTML manual pages index (help system)...
Generated HTML docs in ../dist.i686-pc-linux-gnu/docs/html/index.html
----------------------------------------------------------------------
Following modules are missing the 'description.html' file in src code:
----------------------------------------------------------------------
GRASS GIS compilation log
-------------------------
Started compilation: Fr 12. Sep 13:39:30 CEST 2008
--
Errors in:
No errors detected.
--
Finished compilation: Fr 12. Sep 14:07:37 CEST 2008
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
c++ -I/var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/include -I/usr/include -O2 -march=athlon-tbird -pipe -fomit-frame-pointer -I/usr/include  -fPIC -I/usr/include  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread   -DPACKAGE=\""grasslibs"\"  -I/var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/cats.o -c cats.cpp
In file included from cats.cpp:17:
driver.h:23:20: error: Python.h: No such file or directory
/usr/include/wx-2.8/wx/wxPython/pseudodc.h:607: error: ISO C++ forbids declaration of 'PyObject' with no type
/usr/include/wx-2.8/wx/wxPython/pseudodc.h:607: error: expected ';' before '*' token
/usr/include/wx-2.8/wx/wxPython/pseudodc.h:610: error: ISO C++ forbids declaration of 'PyObject' with no type
/usr/include/wx-2.8/wx/wxPython/pseudodc.h:610: error: expected ';' before '*' token
make: *** [OBJ.i686-pc-linux-gnu/cats.o] Error 1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-13 16:44:04 UTC
Please run python-updater. If that doesn't solve the issue, then post your `emerge --info' here.
Comment 2 Christian Schmitt 2008-09-14 18:06:51 UTC
Running python-updater was not a bad idea, but it recompiled only boost. After that I checked everything else with revdep-rebuild. However all this did not help. Grass is still not compiling, so here is my emerge --info:

Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 AMD Athlon(tm) Processor
Timestamp of tree: Tue, 09 Sep 2008 14:15:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-tbird -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer nodoc noinfo sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/fgfs-gentoo"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac alsa asf audiofile bluetooth bzip2 cairo cdr cli cracklib css cups curl dbus dvb dvd dvdread eds emboss encode evo exif fam ffmpeg firefox flac gif gimpprint glitz gphoto2 hal hdri iconv isdnlog jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility libnotify lirc loop-aes mad midi mikmod mmx mng mp3 mp4 mpeg ncurses nptl nptlonly nsplugin ogg opengl openmp pam pch pcre pdf png ppds pppd qt3 qt3support qt4 quicktime readline reflection sdl session sndfile speex spl ssl startup-notification svg symlink sysfs theora threads tiff truetype unicode usb vcd vorbis x264 x86 xcb xcomposite xine xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Wormo (RETIRED) gentoo-dev 2008-09-15 06:44:59 UTC
Notice the complaint about Python.h? Looks like header path -I/usr/include/python2.5 is omitted from the compiler flags -- maybe something went wrong during configure stage, which probably should have used python-config to find python header location. 

Please attach a full build log to help diagnose this, and how about the config.log from the temporary build dir too (i.e. dir inside /var/tmp/portage/sci-geosciences/grass-6.3.0/work)
Comment 4 Christian Schmitt 2008-09-15 10:54:05 UTC
Created attachment 165480 [details]
config.log of the build
Comment 5 Christian Schmitt 2008-09-15 11:51:45 UTC
Created attachment 165481 [details]
complete build log

had to compress the logfile due to the filesize limit
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-15 14:06:17 UTC
configure doesn't appear to fail at all. I strongly suspect python-updater of missing the wxpython stuff that needs to be rebuilt.

1) Please rebuild =x11-libs/wxGTK-2.8* and then try to emerge sci-geosciences/grass again.
2) If that fails, rebuild dev-python/wxpython and try again.
Comment 7 Christian Schmitt 2008-09-15 20:41:38 UTC
I'm sorry to tell you that this did not help or change anything. I recompiled both packages and recompiled grass after that. Still breaking at the same part.
Comment 8 Wormo (RETIRED) gentoo-dev 2008-09-16 05:24:16 UTC
Look at the configure arguments:

./configure blah blah blah --with-python blah blah --without-python

The --without-python argument would override --with-python, and that could cause configure to not bother with finding Python.h location.

Try building with python useflag turned on as well as wxwindows; if I'm right, then grass ebuild will need to automatically enable python support when wxwindows is enabled.
Comment 9 Christian Schmitt 2008-09-16 09:08:42 UTC
Success :-)
That solved it indeed. Thank you!

So we need the python flag to be set if wxwindows is active.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2008-09-16 13:01:23 UTC
(In reply to comment #9)
> Success :-)
> That solved it indeed. Thank you!
> 
> So we need the python flag to be set if wxwindows is active.

And you should not need to know when to do that - if a USE flag combination causes a build failure, then the ebuild is broken. :)
Comment 11 Steve Arnold archtester gentoo-dev 2008-09-21 22:09:50 UTC
Thanks for the all the info; fixed in CVS...