Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181870 - app-editors/gedit-2.18.1-r1: Python.h: No such file or directory, although file exists and compiling with USE=-python
Summary: app-editors/gedit-2.18.1-r1: Python.h: No such file or directory, although fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-13 06:59 UTC by Alexander Skwar
Modified: 2007-06-17 11:31 UTC (History)
0 users

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


Attachments
Output of running USE=-python sudo emerge -1v =app-editors/gedit-2.18.1-r1 (USE=-python_emerge_-1v_gedit.txt,243.14 KB, text/plain)
2007-06-13 07:08 UTC, Alexander Skwar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2007-06-13 06:59:10 UTC
Tried to compile gedit-2.18.1-r1 with these flags:

[ebuild     U ] app-editors/gedit-2.18.1-r1 [2.18.1] USE="-debug doc -python% -spell" 0 kB 

This failed:

gtk-doc: Compiling scanner
mkdir .libs
 i686-pc-linux-gnu-gcc -march=pentium-m -O2 -pipe -fomit-frame-pointer -I../../gedit -I../../gedit -I../.. -I../.. -DPNG_NO_MMX_CODE -DORBIT2=1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtksourceview-1.0 -I/usr/include/libxml2 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprintui-2.2 -c gedit-scan.c  -fPIC -DPIC -o .libs/gedit-scan.o
In file included from gedit-scan.c:19:
../../gedit/gedit-python-module.h:26:20: error: Python.h: No such file or directory
Compilation of scanner failed:
make[3]: *** [scan-build.stamp] Fehler 1
make[3]: Leaving directory `/Gentoo/Portage/build/portage/app-editors/gedit-2.18.1-r1/work/gedit-2.18.1/docs/reference'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/Gentoo/Portage/build/portage/app-editors/gedit-2.18.1-r1/work/gedit-2.18.1/docs'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/Gentoo/Portage/build/portage/app-editors/gedit-2.18.1-r1/work/gedit-2.18.1'
make: *** [all] Fehler 2  

!!! ERROR: app-editors/gedit-2.18.1-r1 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1311:   Called gnome2_src_compile
  gnome2.eclass, line 71:   Called die


Two issues there:

1) Why is Python.h used? I'm compiling with USE=-python
2) There is a Python.h on my system:

--($:~)-- locate Python.h
/usr/include/wx-2.6/wx/wxPython/wxPython.h
/usr/include/python2.4/Python.h

--($:~)-- ls -al /usr/include/python2.4/Python.h
-rw-r--r-- 1 root root 4267 11. May 21:06 /usr/include/python2.4/Python.h


--($:~)-- emerge --info
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r2.rtr.05-no-sched_smt.kernel-alsa i686)
=================================================================
System uname: 2.6.21-gentoo-r2.rtr.05-no-sched_smt.kernel-alsa i686 Genuine Intel(R) CPU T2400 @ 1.83GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Wed, 13 Jun 2007 05:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="ccache collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="        http://ftp.heanet.ie/pub/gentoo/        http://gentoo.supp.name/        http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/        http://ftp.gentoo.or.kr/        http://ftp.uni-erlangen.de/pub/mirrors/gentoo/  http://distfiles.gentoo.org/ "
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc"
SYNC="rsync://winds03:10873/gentoo-portage"
USE="X acpi alsa berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dmi doc dri dvd dvdr dvdread encode fam firefox fortran gdbm gif gnome gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility ldap libg++ libnotify mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="dummy hda-intel intel8x0 intel8x0m usb-audio usb-usx3y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="dummy none nv nvidia vga"
Unset:  CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexander Skwar 2007-06-13 07:08:12 UTC
Created attachment 121898 [details]
Output of running USE=-python sudo emerge -1v =app-editors/gedit-2.18.1-r1

With USE=python, I'm able to compile gedit.

Attached you can find the screen output of running "USE=-python emerge -v1 gedit".
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-06-13 09:32:25 UTC
with USE="-doc" it works. I don't know why this file is included (yet). The rules to build the documentation clearly states that it should skip this header.
Comment 3 Alexander Skwar 2007-06-13 11:45:48 UTC
(In reply to comment #2)
> with USE="-doc" it works.

ACK. I also was able to build with "USE=-doc -python".
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-06-13 12:56:31 UTC
just FYI, I noticed that there is a patch for 2.16.2 for doc generation. I'll cook something ASAP.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-06-17 11:31:12 UTC
in CVS, fixed 2.18.1-r1 with the patch from 2.16.2