swig complains about deprecated options when compiling pcap.i --------------------------------------------------- linux ~ # emerge pylibpcap Calculating dependencies... done! >>> Emerging (1 of 1) dev-python/pylibpcap-0.5.1 to / >>> checking ebuild checksums ;-) >>> checking auxfile checksums ;-) >>> checking miscfile checksums ;-) >>> checking pylibpcap-0.5.1.tar.gz ;-) >>> Unpacking source... >>> Unpacking pylibpcap-0.5.1.tar.gz to /var/tmp/portage/pylibpcap-0.5.1/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/pylibpcap-0.5.1/work/pylibpcap-0.5.1 ... running build running build_ext building '_pcapmodule' extension generating constants.c from mk-constants.py swig -python -shadow -ISWIG -o pcap.c pcap.i pcap.i:72: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. pcap.i:77: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. pcap.i:82: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead. /usr/bin/python ./build-tools/docify.py pcap.c /usr/bin/python ./build-tools/docify-shadow.py pcap.py Traceback (most recent call last): File "./build-tools/docify-shadow.py", line 30, in ? raise 'source file doesn\'t look like swigged shadow class code' source file doesn't look like swigged shadow class code error: command '/usr/bin/python' failed with exit status 1 !!! ERROR: dev-python/pylibpcap-0.5.1 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 931: Called src_compile ebuild.sh, line 1240: Called distutils_src_compile distutils.eclass, line 35: Called die !!! compilation failed !!! If you need support, post the topmost build error, and the call stack if relevant. ------------------------------------------------------------- linux ~ # emerge --info Portage 2.1_rc2-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r3, 2.6.16-gentoo-r2 i686) ================================================================= System uname: 2.6.16-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer " DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://adelie.polymtl.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.ngi.it http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.las.ic.unicamp.br/pub/gentoo/" MAKEOPTS="-j5" 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'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi4linux alsa ansi apache2 apm ared aredmem arts atlas avantgo avi bcmath bcp berkdb binfilter bitmap-fonts blas blender-game bluetooth bootspla bzip2 bzlib calendar cddb cdinstall cdparanoia cdrom cgi chroot clanJavaScript clanVoice cli cln codecs cpdflib cpudetection crypt ctype cups curl curlwrappers dba dbm dbx dedicated delays dnd doc dri dv dvb dvd dvdread emacs emboss encode esd evo exif fbcon fbdev fftw firefox flatfile foomaticdb fortran freetype fs ftp gb gcj gd gif ginac glade glgd glibc-compat20 gmp gnuplot gpm gs gsl gtk gtk2 hdf hdf5 icon iconv icq imap imlib2 inifile innodb ipcs ipv6 isdnlog ithreads jabber jack jack-tmpfs java javacomm javadoc javascript jce jikes joystick jpeg jython kde ldap libg++ libgd libwww linuxthreads-tls live lua lzo mad mbox mcve memlimit mha mikmod mimencode mixer mmx mmxext motif mp3 mpeg mpeg2 mpeg4 mplayer msn mysql mysqlfriends mysqli mythtv ncurses net network nls nntp nptl nsplugin nvidia ocaml offensive ogg opengl pam pcntl pcre pda pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php png posix postgres postgresql ppds pppd psyco pyste python qt quicktime readline real reflection rtc sasl sdl server session simplexml soap sockets speedo spell spl sqlite sqlite3 sse sse2 ssl sysvipc tcpd tga theora threads tidy tokenizer truetype truetype-fonts type1 type1-fonts udev unicode usb v4l v4l2 vim-with-x vnc vorbis win32codecs wxwindows xanim xemacs xinerama xinetd xml xmlreader xmlrpc xmlwriter xmms xorg xsl xv xvmc yahoo zip zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_fbdev video_cards_nv video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
SORRY GUYS!! I misinterpreted the messages... It seems that docify.py doesn't understand the output of swig-1.3.29. I'll keep looking, anyway.
can't compile pylibpcap-0.5.1
Did you get the same result on emerge? This looks like a problem on pylibpcap not knowing the new swig output (In reply to comment #2) > can't compile pylibpcap-0.5.1 >
*** Bug 142478 has been marked as a duplicate of this bug. ***
This is because swig-1.3.27 and swig-1.3.29 creates different pcap.i files and the regex in build-tools/docify-shadow.py doesn't match.Another thing is the constants.c generated by mk-constants.py doesn't define SWIG_PY_INT which causes errors as well. I've written a patch and a custom ebuild.Here are the links: www.rootshell.be/~hawking/code/pylibpcap-swig-1.3.29.patch www.rootshell.be/~hawking/code/pylibpcap-0.5.1.ebuild P.S: this patch will break compilation if swig version is other than 1.3.29. Regards, Ali Polatel
thanks for the patch. i've added a conditional check in src_unpack to make sure we apply the patch only if needed. thanks for it.