Summary: | dev-python/pyfltk-1.1.5 with swig-2.0.4_pre12643 - ./python/fltk_wrap.cpp:6220:43: error: incomplete type ‘Fl_X’ used in nested name specifier | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Unspecified | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | contactme, gentoo, o.freyermuth, pyrophobicman, ssuominen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | /var/tmp/portage/dev-python/pyfltk-1.1.5/temp/build.log |
Description
Juergen Rose
2011-05-24 16:19:38 UTC
Created attachment 274515 [details]
/var/tmp/portage/dev-python/pyfltk-1.1.5/temp/build.log
The same happens on a i686 system: ./python/fltk_wrap.cpp:6226:43: error: incomplete type ‘Fl_X’ used in nested name specifier ./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_ask__varargs__(PyObject*, PyObject*, PyObject*)’: ./python/fltk_wrap.cpp:56269:17: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:56269:47: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) error: command 'i686-pc-linux-gnu-g++' failed with exit status 1 * ERROR: dev-python/pyfltk-1.1.5 failed (compile phase): * Building failed with CPython 2.7 in distutils_building() function root@thinkpad:/root(37)# uname -a Linux thinkpad 2.6.39 #2 PREEMPT Wed May 25 01:51:48 CEST 2011 i686 Intel(R) Pentium(R) M processor 2.00GHz GenuineIntel GNU/Linux And it happens with swig-2.0.4. Yep, exactly the same bug when I'm trying to compile the gazebo package http://playerstage.sourceforge.net/index.php?src=gazebo from the player/stage project Same for me when compiling dev-python/pyfltk-1.1.5 ./python/fltk_wrap.cpp: In function 'int fl_xid_(Fl_Window*)': ./python/fltk_wrap.cpp:5958:44: error: incomplete type 'Fl_X' used in nested name specifier It happened after updating x11-libs/fltk to 1.3.0 but this might as well be a coincidence. Cheers, Bjoern I've got the same problem when migrating from amd64 ~amd64. For me, the error is as following: x86_64-pc-linux-gnu-g++ -pthread -march=native -O2 -pipe -fno-strict-aliasing -fPIC -DUNIX=1 -I/usr/include/libdrm -I/usr/include/libpng14 -I/usr/include/directfb -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/include/cairo -I/usr/include/fltk-1 -I./src -I./contrib -I/usr/include -I/usr/include/python2.7 -c ./python/fltk_wrap.cpp -o build-2.7/temp.linux-x86_64-2.7/./python/fltk_wrap.o ./python/fltk_wrap.cpp: In function ‘const char* fl_vararg_input(const char*, const char*)’: ./python/fltk_wrap.cpp:5180:35: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_vararg_password(const char*, const char*)’: ./python/fltk_wrap.cpp:5186:38: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘void fl_mt_message(const char*)’: ./python/fltk_wrap.cpp:5224:20: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘void fl_mt_alert(const char*)’: ./python/fltk_wrap.cpp:5230:18: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘int fl_mt_ask(const char*)’: ./python/fltk_wrap.cpp:5237:14: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:5237:25: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp:5237:25: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp: In function ‘int fl_mt_choice(const char*, const char*, const char*, const char*)’: ./python/fltk_wrap.cpp:5245:37: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_mt_input(const char*, const char*)’: ./python/fltk_wrap.cpp:5253:35: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_mt_password(const char*, const char*)’: ./python/fltk_wrap.cpp:5261:38: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘int fl_xid_(Fl_Window*)’: ./python/fltk_wrap.cpp:6226:43: error: incomplete type ‘Fl_X’ used in nested name specifier ./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_ask__varargs__(PyObject*, PyObject*, PyObject*)’: ./python/fltk_wrap.cpp:56240:17: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:56240:47: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1 * ERROR: dev-python/pyfltk-1.1.5 failed (compile phase): * Building failed with CPython 2.7 in distutils_building() function * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 5112: Called distutils_src_compile * environment, line 1276: Called python_execute_function 'distutils_building' * environment, line 3483: Called die * The specific snippet of code: * die "${failure_message}"; * * If you need support, post the output of 'emerge --info =dev-python/pyfltk-1.1.5', * the complete build log and the output of 'emerge -pqv =dev-python/pyfltk-1.1.5'. * The complete build log is located at '/var/tmp/portage/dev-python/pyfltk-1.1.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyfltk-1.1.5/temp/environment'. * S: '/var/tmp/portage/dev-python/pyfltk-1.1.5/work/pyFltk-1.1.5' localhost ion # emerge --info =dev-python/pyfltk-1.1.5 Portage 2.1.10.10 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.38-gentoo-r6 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Pentium-R-_CPU_P6100_@_2.00GHz-with-gentoo-2.0.3 Timestamp of tree: Fri, 12 Aug 2011 08:15:01 +0000 app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r2, 3.2-r2 dev-util/cmake: 2.8.5-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.21.1 sys-devel/gcc: 4.5.3 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.38 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirror.gentoo.md" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" 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="" SYNC="rsync://gentoo.md/gentoo-portage" USE="X acl acpi alsa amd64 audio berkdb blender-game bzip2 cairo cdr cli cracklib cups cxx dbus device-mapper directfb djvu dri dvd encode examples extra extras ffmpeg firefox fltk fontconfig fortran gd gdbm gdu gpm gtk iconv icq imlib ipv6 jadetex jpeg kpathsea lame latex lm_sensors lock mad matroska mmx modules mp3 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre perl pmu png policykit pppd python qt3 qt3support readline screensaver sdl session sessions spell sse sse2 ssl ssse3 startup-notification svg svq sysfs tcpd theora threads thunar tiff tk traits truetype udev unicode usb v4l v4l2 vorbis wxwidgets x264 xcb xine xml xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-python/pyfltk-1.1.5 was built with the following: USE="doc (multilib)" I have the same problem: x86_64-pc-linux-gnu-g++ -pthread -march=native -O2 -pipe -fno-strict-aliasing -fPIC -DUNIX=1 -I/usr/include/libdrm -I/usr/include/libpng14 -I/usr/include/directfb -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/include/cairo -I/usr/include/fltk-1 -I./src -I./contrib -I/usr/include -I/usr/include/python2.7 -c ./python/fltk_wrap.cpp -o build-2.7/temp.linux-x86_64-2.7/./python/fltk_wrap.o ./python/fltk_wrap.cpp: In function ‘const char* fl_vararg_input(const char*, const char*)’: ./python/fltk_wrap.cpp:5180:35: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_vararg_password(const char*, const char*)’: ./python/fltk_wrap.cpp:5186:38: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘void fl_mt_message(const char*)’: ./python/fltk_wrap.cpp:5224:20: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘void fl_mt_alert(const char*)’: ./python/fltk_wrap.cpp:5230:18: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘int fl_mt_ask(const char*)’: ./python/fltk_wrap.cpp:5237:14: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:5237:25: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp:5237:25: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp: In function ‘int fl_mt_choice(const char*, const char*, const char*, const char*)’: ./python/fltk_wrap.cpp:5245:37: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_mt_input(const char*, const char*)’: ./python/fltk_wrap.cpp:5253:35: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_mt_password(const char*, const char*)’: ./python/fltk_wrap.cpp:5261:38: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘int fl_xid_(Fl_Window*)’: ./python/fltk_wrap.cpp:6226:43: error: incomplete type ‘Fl_X’ used in nested name specifier ./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_ask__varargs__(PyObject*, PyObject*, PyObject*)’: ./python/fltk_wrap.cpp:56240:17: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:56240:47: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1 * ERROR: dev-python/pyfltk-1.1.5 failed (compile phase): * Building failed with CPython 2.7 in distutils_building() function Reproducible: always localhost ion # emerge --info =dev-puthon/pyfltk-1.1.5 Portage 2.1.10.32 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.1.0-gentoo-x86_64-Intel-R-_Pentium-R-_CPU_P6100_@_2.00GHz-with-gentoo-2.1 Timestamp of tree: Mon, 07 Nov 2011 11:30:01 +0000 app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.2-r3, 3.2.2 dev-util/cmake: 2.8.6-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1-r1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r4 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" 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="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa amd64 audio berkdb blender-game bzip2 cairo cdr cli cracklib cups cxx dbus device-mapper directfb djvu dri dvd encode examples extra extras ffmpeg firefox fltk fontconfig fortran gd gdbm gdu gpm gtk hal iconv icq imlib ipv6 jadetex jpeg kpathsea lame latex lm_sensors lock mad matroska mmx modules mp3 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pmu png policykit pppd qt3 qt3support readline screensaver sdl session sessions spell sse sse2 ssl ssse3 startup-notification svg svq sysfs tcpd theora threads thunar tiff tk traits truetype udev unicode usb v4l v4l2 vorbis wxwidgets x264 xcb xine xml xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS same exact problems for me, just bumping this up where some can see it. Can we please get some sort of fix for this? this has been bugging me for months. x86_64-pc-linux-gnu-g++ -pthread -march=native -O2 -pipe -fno-strict-aliasing -fPIC -DUNIX=1 -I/usr/include/fltk-1 -I./src -I./contrib -I/usr/include -I/usr/include/python2.7 -c ./python/fltk_wrap.cpp -o build-2.7/temp.linux-x86_64-2.7/./python/fltk_wrap.o ./python/fltk_wrap.cpp: In function ‘const char* fl_vararg_input(const char*, const char*)’: ./python/fltk_wrap.cpp:5180:35: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_vararg_password(const char*, const char*)’: ./python/fltk_wrap.cpp:5186:38: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘void fl_mt_message(const char*)’: ./python/fltk_wrap.cpp:5224:20: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘void fl_mt_alert(const char*)’: ./python/fltk_wrap.cpp:5230:18: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘int fl_mt_ask(const char*)’: ./python/fltk_wrap.cpp:5237:14: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:5237:25: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp:5237:25: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp: In function ‘int fl_mt_choice(const char*, const char*, const char*, const char*)’: ./python/fltk_wrap.cpp:5245:37: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_mt_input(const char*, const char*)’: ./python/fltk_wrap.cpp:5253:35: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘const char* fl_mt_password(const char*, const char*)’: ./python/fltk_wrap.cpp:5261:38: warning: format not a string literal and no format arguments ./python/fltk_wrap.cpp: In function ‘int fl_xid_(Fl_Window*)’: ./python/fltk_wrap.cpp:6226:43: error: incomplete type ‘Fl_X’ used in nested name specifier ./python/fltk_wrap.cpp: In function ‘PyObject* _wrap_fl_ask__varargs__(PyObject*, PyObject*, PyObject*)’: ./python/fltk_wrap.cpp:56240:17: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) ./python/fltk_wrap.cpp:56240:47: warning: ‘int fl_ask(const char*, ...)’ is deprecated (declared at /usr/include/fltk-1/FL/fl_ask.H:56) error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1 * ERROR: dev-python/pyfltk-1.1.5 failed (compile phase): * Building failed with CPython 2.7 in distutils_building() function This is difficult since the syntax is a combo of pix imaging, C++ and python. line 6220; int fl_xid(Fl_Window *w) { return (int)(Fl_X::i(w)->xid); is the culprit. Lines %inline %{ int fl_xid(Fl_Window *w) { return (int)(Fl_X::i(w)->xid); } %} in swig/x.i are also the culprit. Making some calculated attempts at correction, I have ./python/fltk_wrap.cpp:6220:43: error: 'Fl_XBM_IMAGE' was not declared in this scope ./python/fltk_wrap.cpp:6220:56: error: 'i' has not been declared Fl_X is reported in the initial output as incomplete. Complete options are ; Fl_XPM_Image, Fl_XPM_Image.i, Fl_XBM_Image, Fl_XBM_Image.i, none of which cure. Can someone pick up from here and tell, what is i in i(w)->xid)??? what is xid in i(w)->xid)??? This would help reach a resolution. i in C++ must be a declared variable of an established inline or static function that takes (*w) as a parameter. Where and how is the missing declaration to be made??? This beckons referral to upstream. The nomenclature seems to lean towards making such entries and having them substituted or expanded by some python type function in execution of autotools, muddying the waters no end. This should be fixed by now... Try pyfltk-1.3.0 |