Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191742 - dev-python/m2crypto-0.18 fails to build
Summary: dev-python/m2crypto-0.18 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Ali Polatel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-08 19:20 UTC by Jeroen Roovers (RETIRED)
Modified: 2007-09-20 01:19 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 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-08 19:20:10 UTC
dev-python/m2crypto fails to build on several arches.

SWIG/_ec.i:111: Warning(454): Setting a pointer/reference variable may leak memory.
creating build/temp.linux-parisc-2.4
creating build/temp.linux-parisc-2.4/SWIG
hppa2.0-unknown-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -pipe -mschedule=8000 -march=2.0 -ggdb -Wall -fPIC -I/usr/include/python2.4 -I/usr/incl
ude -I/dev/shm/portage/dev-python/m2crypto-0.18/work/m2crypto-0.18/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-parisc-2.4/SWIG/_m2crypto_wrap.o -DTHREADING
In file included from SWIG/_m2crypto_wrap.c:2531:
/dev/shm/portage/dev-python/m2crypto-0.18/work/m2crypto-0.18/SWIG/_lib.h:5: error: redefinition of typedef ‘Py_ssize_t’
SWIG/_m2crypto_wrap.c:784: error: previous declaration of ‘Py_ssize_t’ was here
SWIG/_m2crypto_wrap.c: In function ‘rand_pseudo_bytes’:
SWIG/_m2crypto_wrap.c:3653: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
SWIG/_m2crypto_wrap.c: In function ‘pkcs5_pbkdf2_hmac_sha1’:
SWIG/_m2crypto_wrap.c:3727: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
SWIG/_m2crypto_wrap.c: In function ‘bytes_to_key’:
SWIG/_m2crypto_wrap.c:3886: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
SWIG/_m2crypto_wrap.c: In function ‘sign_final’:                                SWIG/_m2crypto_wrap.c:3982: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
SWIG/_m2crypto_wrap.c: In function ‘pkey_as_der’:
SWIG/_m2crypto_wrap.c:4051: warning: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness
SWIG/_m2crypto_wrap.c: In function ‘pkey_get_modulus’:
SWIG/_m2crypto_wrap.c:4084: warning: value computed is not used
SWIG/_m2crypto_wrap.c:4109: warning: value computed is not used                 SWIG/_m2crypto_wrap.c: In function ‘AES_crypt’:
SWIG/_m2crypto_wrap.c:4195: warning: pointer targets in passing argument 1 of ‘P
yString_FromStringAndSize’ differ in signedness                                 SWIG/_m2crypto_wrap.c: In function ‘i2d_x509’:
SWIG/_m2crypto_wrap.c:5582: warning: pointer targets in passing argument 1 of ‘P
yString_FromStringAndSize’ differ in signedness                                 SWIG/_m2crypto_wrap.c: In function ‘x509_name_set_by_nid’:
SWIG/_m2crypto_wrap.c:5660: warning: pointer targets in passing argument 4 of ‘X509_NAME_add_entry_by_NID’ differ in signedness                                 SWIG/_m2crypto_wrap.c: In function ‘x509_name_add_entry_by_txt’:
SWIG/_m2crypto_wrap.c:5665: warning: pointer targets in passing argument 4 of ‘X
509_NAME_add_entry_by_txt’ differ in signedness                                 SWIG/_m2crypto_wrap.c: In function ‘util_string_to_hex’:
SWIG/_m2crypto_wrap.c:6086: warning: pointer targets in passing argument 1 of ‘P
yString_FromStringAndSize’ differ in signedness
SWIG/_m2crypto_wrap.c: In function ‘_wrap_x509_name_entry_set_data’:            SWIG/_m2crypto_wrap.c:18024: warning: pointer targets in assignment differ in si
gnedness
error: command 'hppa2.0-unknown-linux-gnu-gcc' failed with exit status 1         *
 * ERROR: dev-python/m2crypto-0.18 failed.
 * Call stack:                                                                   *   ebuild.sh, line 1654:   Called dyn_compile
 *   ebuild.sh, line 990:   Called qa_call 'src_compile'                         *   ebuild.sh, line 44:   Called src_compile                                    *   ebuild.sh, line 1334:   Called distutils_src_compile
 *   distutils.eclass, line 48:   Called die
 *                                                                               * compilation failed
 * If you need support, post the topmost build error, and the call stack if rele
vant.
 * A complete build log is located at '/keeps/gentoo/emergelogs/elmer/dev-python:m2crypto-0.18:20070908-191118.log'.

Sat Sep  8 21:16:09 CEST 2007
Portage 2.1.3.9 (default-linux/hppa/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-pa1-JeR parisc)
=================================================================
System uname: 2.6.22-pa1-JeR parisc PA8700 (PCX-W2)
Timestamp of tree: Sat, 08 Sep 2007 16:50:01 +0000
distcc 2.18.3 hppa2.0-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
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.18
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="hppa"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -ggdb -Wall"
CHOST="hppa2.0-unknown-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 /usr/spool/PBS /var/bind /var/www/localhost/htdocs/wordpress/wp-config.php"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mschedule=8000 -march=2.0 -ggdb -Wall"
DISTDIR="/keeps/gentoo/distfiles"
FEATURES="autoaddcvs buildpkg cvs distlocks fixpackages notitles sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ "
LC_ALL="en_US.UTF-8"
LINGUAS="en nl he"
MAKEOPTS="-j2"
PKGDIR="/keeps/gentoo/packages/elmer"
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="/mnt/alt/portage-tmp"
PORTDIR="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib accessibility alsa amr amrnb amrwb ao aoss apache2 ares arts asf audiofile avfs bash-completion berkdb bidi bitmap-fonts bittorrent bl bzip2 c++ cairo caps catalogs cdb cddb cdparanoia cdr chardet cjk cli cpudetection cracklib crypt cups curl custom-cflags dbus dcraw device-mapper dga dia directfb doc domainkeys dts dv dvd dvdr dvdread dxr3 edl elf emacs enca encode esd examples exif expat fam fame fastbuild fastcgi fbcon ffmpeg filter flac fontconfig foomaticdb fortran ftp gadu gd gdbm geoip ggi gif gimp gimpprint glep glib glitz glut gmp gnome gnutls gphoto2 gpm gs gsl gtk gtk2 gtkhtml hal hesiod hppa icecast iconv idn imagemagick imlib immqt-bc inquisitio ipv6 isdnlog jack javascript jingle jpeg jpeg2k kde kdeenablefinal kerberos lcms ldap leim libcaca libnotify libsamplerate libwww logrotate logwatch lua lzo mad matroska memcache mhash midi mikmod mmap mng modplug motif mozbranding mp3 mudflap musepack mysql nas ncurses netpbm nfconntrack nfs nls nntp nptl nptlonly nsplugin offensive ogg openexr opengl openmp oss ots overlays pam pango pbs pch pcre pdf pdo perl php pic plotutils plugins png portage portaudio postgres povray ppds pppd pulseaudio python pyzord qt3 qt3support readline recode reflection rpc rrdtool rtc ruby samba sasl scanner scim sdl seamonkey session sid slang slp sndfile snmp soundex speex spell spl sqlite ssl startup-notification suhosin svg sysfs talkfilters tcl tcpd tetex tga theora threads thunar-vfs tidy tiff timidity tk tools truetype truetype-fonts twolame type1-fonts udev unicode unzip urandom usb userlocales utempter utf v4l v4l2 vanim vcd vidix vim-syntax vorbis wavpack webdav webinstall wlan wma wmf xanim xattr xchattext xcomposite xface xml xml2 xmpi xorg xpm xrandr xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="ad1889 usb-audio" 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="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl he" USERLAND="GNU" VIDEO_CARDS="stifb fbdev matrox"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Sat Sep  8 21:19:48 CEST 2007
Portage 2.1.2.12 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5-JeR i686)
=================================================================
System uname: 2.6.22-gentoo-r5-JeR i686 AMD Athlon(tm) XP 2500+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 08 Sep 2007 16:50:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -march=athlon"
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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-Os -pipe -march=athlon"
DISTDIR="/keeps/gentoo/distfiles"
FEATURES="autoaddcvs buildpkg cvs distlocks fixpackages metadata-transfer notitles sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ "
LDFLAGS=""
LINGUAS="en-gb en nl fy"
MAKEOPTS="-j2"
PKGDIR="/keeps/gentoo/packages/astrid"
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="/var/tmp"
PORTDIR="/keeps/gentoo/portage"
PORTDIR_OVERLAY="/keeps/gentoo/local"
SYNC="rsync://10.0.0.153/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amr aoss apache2 asf audiofile bash-completion berkdb bitmap-fonts bl bonobo boost bzip2 cairo caps cdda cdio cdparanoia cdr chroot cle266 cli cpudetection cracklib crypt cscope cups curl custom-cflags d dga dillo dlloader doc dri dts dv dvd dvdr dvdread dxr3 edl elf emboss encode evo fam fame fbcon ffmpeg firefox flac flash foomaticdb fortran fpx freetype gdbm ggi gif gimpprint glitz glut gmp gnokii gnutls gpm graphviz gs gstreamer gtk gtk2 guile hfs iconv idn ieee1394 imagemagick imap imlib inkjar ipv6 isdnlog jack javascript jbig jingle jpeg jpeg2k kde kerberos ladspa lcms libcaca live lm_sensors logrotate lzo mad matroska midi mikmod mjpeg mmx mmxext mng modplug mozilla mozsvg mozxmlterm mp3 mpeg mudflap musepack nas ncurses nethack network nls nptl nptlonly nsplugin odk offensive ogg opengl openmp oss pam pcre pda pdf perl physfs pic png portaudio pppd python qt qt-static qt3 qt3support qt4 quicktime readline real reflection rtc ruby samba sasl screenshot sdl server session sftplogging slang smux sox speex spell spl sse ssl svg svga sysfs tcl tcpd tetex tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 vcd vidix vlm vorbis win32codecs winbind x264 x86 xanim xcomposite xface xine xml xml2 xorg xosd xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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="keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en-gb en nl fy" USERLAND="GNU" VIDEO_CARDS="nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2007-09-08 19:23:58 UTC
This happens with all versions currently in the tree except 0.16.

[ebuild     U ] dev-python/m2crypto-0.18 [0.17-r1] USE="doc" 0 kB
Comment 2 Ali Polatel (RETIRED) gentoo-dev 2007-09-20 01:19:28 UTC
The error - redefinition of typedef ‘Py_ssize_t’ - is caused by this check:
m2crypto/SWIG/_lib.h:
#if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t;
#endif

m2crypto includes this file more than once when compiling swig stuff. I've
extended the check so that the file can be included many times:
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif

as mentioned in PEP 353[1]. It compiles fine here with python2.4.
Thanks for reporting ;)

[1]: http://www.python.org/dev/peps/pep-0353/