Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272612 - dev-libs/distorm64 won't build with python-2.6
Summary: dev-libs/distorm64 won't build with python-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2009-06-04 14:14 UTC by Anton Romanov
Modified: 2009-06-29 12:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Romanov 2009-06-04 14:14:07 UTC
In file included from ../../src/pydistorm.c:15:
../../src/pydistorm.h:25:31: error: python2.5/Python.h: No such file or directory
In file included from ../../src/pydistorm.c:15:
../../src/pydistorm.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../../src/pydistorm.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'distormModulebMethods'
../../src/pydistorm.c: In function 'initdistorm':
../../src/pydistorm.c:20: error: 'PyObject' undeclared (first use in this function)
../../src/pydistorm.c:20: error: (Each undeclared identifier is reported only once
../../src/pydistorm.c:20: error: for each function it appears in.)
../../src/pydistorm.c:20: error: 'distormModule' undeclared (first use in this function)
../../src/pydistorm.c:20: warning: implicit declaration of function 'Py_InitModule3'
../../src/pydistorm.c:20: error: 'distormModulebMethods' undeclared (first use in this function)
../../src/pydistorm.c:21: warning: implicit declaration of function 'PyModule_AddIntConstant'
../../src/pydistorm.c:25: warning: implicit declaration of function 'PyModule_AddStringConstant'
../../src/pydistorm.c: At top level:
../../src/pydistorm.c:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token


changing "python2.5/Python.h" to "python2.6/Python.h"
fixes building with 2.6 obviously
Comment 1 Patrick Lauer gentoo-dev 2009-06-04 18:01:32 UTC
Go fix your python install. Most likely an unclean upgrade from 2.5 to 2.6 ...
Comment 2 Anton Romanov 2009-06-04 18:12:00 UTC
what does implicit
#include <python2.5/Python.h>
has to do with python install?
Comment 3 Anton Romanov 2009-06-05 10:07:10 UTC
also this part from ebuild
	if use python; then
		if has_version ">=dev-lang/python-2.5"; then
			mkdir -p "${D}usr/lib/python2.5/site-packages/"
			install libdistorm64.so "${D}usr/lib/python2.5/site-packages/distorm.so"
		else
			mkdir -p "${D}usr/lib/python2.4/site-packages/"
			install libdistorm64.so "${D}usr/lib/python2.4/site-packages/distorm.o"
		fi
	fi

will not work for 2.6
Comment 4 Mike Auty (RETIRED) gentoo-dev 2009-06-07 13:04:49 UTC
Patrick, since you're the maintainer for distorm64, I'm going to reassign this to you.  If it helps, I can recreate the problem:

Portage 2.2_rc33 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29.4 i686)
=================================================================
System uname: Linux-2.6.29.4-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 06 Jun 2009 20:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect cvs distlocks fixpackages parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_GB"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en en_GB"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/overlays/embedded /usr/local/overlays/desktop-effects /usr/local/overlays/gnome /usr/local/overlays/mozilla /usr/local/overlays/vmware /usr/local/overlays/ikelos /usr/local/overlays/uncon /usr/local/overlays/personal"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr applet bash-completion berkdb bluetooth bzip2 cairo cdr cli consolekit cpudetection cracklib crypt cups curl cvs dbus dga divx dri dvb dvd dvdr encode exif fam ffmpeg flash fortran fuse gdbm gedit gif glitz gnome gnome-keyring gpm graphviz gstreamer gtk hal hddtemp hpn iconv id3 ieee1394 imap ipv6 isdnlog java jpeg kqemu ldap libnotify lm_sensors mad midi mmx moonlight mp3 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly nvidia ogg opengl openmp pam pcre pcsc-lite pdf perl png policykit pppd pulseaudio python qt4 quicktime readline realmedia reflection server session smp spl sqlite sse sse2 ssl ssse3 subversion svg sysfs tcpd theora tracker truetype unicode usb v4l v4l2 vorbis wmp x264 x86 x86emu xcb xcomposite xklavier xml xorg xulrunner xv xvid 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 wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Mike Auty (RETIRED) gentoo-dev 2009-06-07 13:05:14 UTC
Anton, please also provide the output to "emerge --info".
Comment 6 Patrick Lauer gentoo-dev 2009-06-07 13:18:32 UTC
So, I've had a look at the package. Really stupid - on a py2.6-only install it accidentally doesn't fail, so that explains why I couldn't reproduce it initially. I think we'll have to patch the source to stop doing such stupid things, then clean up the ebuild... 

Sorry if I was a bit harsh, I blame the lack of caffeine ;)
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-06-29 12:30:24 UTC
Fixed.
I also fixed respecting of CC, CFLAGS and LDFLAGS.