Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 201603 - dev-python/pyfltk-1.1.2 fails to build on ~amd64
Summary: dev-python/pyfltk-1.1.2 fails to build on ~amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sébastien Fabbro (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-07 19:11 UTC by Alexis Ballier
Modified: 2007-12-09 16:55 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 Alexis Ballier gentoo-dev 2007-12-07 19:11:57 UTC
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -DUNIX=1 -I/usr/include/fltk-1.1 -I./src -I./contrib -I/usr/include -I/usr/include/python2.5 -c ./python/fltk_wrap.cpp -o build/temp.linux-x86_64-2.5/./python/fltk_wrap.o
./python/fltk_wrap.cpp: In function ‘int fl_mt_ask(const char*)’:
./python/fltk_wrap.cpp:4616: warning: ‘fl_ask’ is deprecated (declared at /usr/include/fltk-1.1/FL/fl_ask.H:59)
./python/fltk_wrap.cpp:4616: warning: ‘fl_ask’ is deprecated (declared at /usr/include/fltk-1.1/FL/fl_ask.H:59)
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_ask__varargs__(PyObject*, PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:37516: warning: ‘fl_ask’ is deprecated (declared at /usr/include/fltk-1.1/FL/fl_ask.H:59)
./python/fltk_wrap.cpp:37516: warning: ‘fl_ask’ is deprecated (declared at /usr/include/fltk-1.1/FL/fl_ask.H:59)
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_RGB_Image(PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:38919: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_new_Fl_Bitmap(PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:39564: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_draw_image(PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:54053: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_draw_image_mono(PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:54161: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_Fl_FormsBitmap_set(PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:58226: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’
./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_gl_draw_image(PyObject*, PyObject*)’:
./python/fltk_wrap.cpp:93001: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for argument ‘3’ to ‘int PyObject_AsReadBuffer(PyObject*, const void**, Py_ssize_t*)’
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1


[ebuild   R   ] dev-lang/python-2.5.1-r4  USE="berkdb gdbm ipv6 ncurses readline ssl tk -bootstrap -build -doc -examples -nothreads -sqlite -ucs2" 0 kB 
[ebuild   R   ] x11-libs/fltk-1.1.7-r2  USE="opengl -debug -noxft" 0 kB 
[ebuild  N    ] dev-python/pyfltk-1.1.2  USE="-doc" 0 kB 


emerge --info:
Portage 2.1.4_rc8 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.24-rc4-g2254c2e0 x86_64)
=================================================================
System uname: 2.6.24-rc4-g2254c2e0 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Unknown
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
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-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/share/gentoo/distfiles"
FEATURES="buildsyspkg ccache collision-protect cvs distcc distlocks fixpackages metadata-transfer multilib-strict parallel-fetch sandbox sfperms sign strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en fr en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/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="/var/tmp"
PORTDIR="/usr/portage_cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage /share/overlay /share/official-overlay/aballier/texlive-overlay"
SYNC="cvs://aballier@cvs.gentoo.org:/var/cvsroot"
USE="3dnow 3dnowext X a52 aac aalib acl alsa amd64 asf audiofile authdaemond bash-completion berkdb bitmap-fonts bluetooth bogofilter browserplugin bzip2 cairo cddb cdio cdr cjk cli cracklib crypt css cups curl custom-cflags cvs dba dbus dirac directfb djvu dri dssi dts dv dvb dvd dvdnav dvdr dvdread dvi emerald enca encode escreen evo exif expat fam fame fat fbdev ffmpeg fftw firefox flac fontconfig foomaticdb fortran fping ftp gd gdbm gif gimp glitz gnokii gnome gnutls gpac gpgme gpm graphviz gs gstreamer gtk gtkhtml hal hfs icecast iconv id3tag ide ieee1394 imagemagick imap imlib ipv6 irmc isdnlog ithreads jack javascript jfs jpeg jpeg2k kdeenablefinal kdehiddenvisibility kpathsea ladspa lame lash latex lcms libcaca libnotify libsamplerate live lzo mad maildir matroska mbox md5sum midi mjpeg mmx mmxext mng mono motif mozilla mp2 mp3 mp4 mpeg mplayer mudflap musepack musicbrainz ncurses network nfs nls nntp no-old-linux nodrm nowin nptl nptlonly nsplugin ntfs nvidia objc ocaml offensive ogg oggvorbis openal openexr opengl openmp pam pango pcre pda pdf perl png pnm portaudio ppds pppd python qt3 qt4 quicktime radio rar readline reflection reiser4 reiserfs rle rtc rtsp ruby sasl sdl session shorten slang sms sndfile softmmu soundtouch sox spamassassin speex spell spl srt sse sse2 ssl stroke subtitles subversion svg sysfs t1lib tcpd tetex tga theora threads tiff tk truetype truetype-fonts twolame type1-fonts udev unicode urandom usb v4l v4l2 vcd vchroot vim-syntax visualization vorbis wavpack wmf wxwindows x264 xcb xfs xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="bt87x 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" 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" CAMERAS="canon" DVB_CARDS="usb-umt" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_US" LIRC_DEVICES="pctv" USERLAND="GNU" VIDEO_CARDS="vesa nv v4l nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



I'm not at ease with swig, so sorry I cannot provide a patch :-(
Comment 1 Juergen Rose 2007-12-09 12:32:56 UTC
Here the same.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2007-12-09 16:55:13 UTC
It was probably more a python-2.5 than a gcc-4.2 problem. Should be fixed in cvs, so a re-emerge after a fresh sync should work. If not, re-open. 
Thanks.