media-libs/hamlib-1.2.4 spits out thousands of warnings before dying during compilation. They all appear to be related to SWIG_Python calls. I have python-2.4.1-r1 and swig-1.3.21 installed. Compiling hamlib with USE=-python eliminates the warnings and allows for a clean compile. The following is a sample of the warnings: [...] hamlibtcl_wrap.c: In function `Hamlib_Init': hamlibtcl_wrap.c:20641: error: `interp' undeclared (first use in this function) hamlibtcl_wrap.c:20641: error: `TCL_ERROR' undeclared (first use in this function) hamlibtcl_wrap.c:20648: warning: implicit declaration of function `Tcl_PkgProvide' hamlibtcl_wrap.c:20659: error: request for member `name' in something not a structure or union hamlibtcl_wrap.c:20660: error: request for member `name' in something not a structure or union hamlibtcl_wrap.c:20660: error: request for member `wrapper' in something not a structure or union hamlibtcl_wrap.c:20660: error: request for member `clientdata' in something not a structure or union hamlibtcl_wrap.c:20663: warning: implicit declaration of function `Tcl_SetVar' hamlibtcl_wrap.c:20663: error: `TCL_GLOBAL_ONLY' undeclared (first use in this function) hamlibtcl_wrap.c:20664: warning: implicit declaration of function `Tcl_TraceVar' hamlibtcl_wrap.c:20664: error: `TCL_TRACE_READS' undeclared (first use in this function) hamlibtcl_wrap.c:20664: error: `Tcl_VarTraceProc' undeclared (first use in this function) hamlibtcl_wrap.c:20664: error: parse error before ')' token hamlibtcl_wrap.c:20665: error: `TCL_TRACE_WRITES' undeclared (first use in this function) hamlibtcl_wrap.c:20665: error: parse error before ')' token hamlibtcl_wrap.c:20669: error: `TCL_OK' undeclared (first use in this function) hamlibtcl_wrap.c: At top level: hamlibtcl_wrap.c:20671: error: parse error before '*' token hamlibtcl_wrap.c: In function `Hamlib_SafeInit': hamlibtcl_wrap.c:20672: error: `interp' undeclared (first use in this function) hamlibtcl_wrap.c: At top level: hamlibtcl_wrap.c:183: warning: 'SWIG_Tcl_TypeDynamicCast' defined but not used hamlibtcl_wrap.c:195: warning: 'SWIG_Tcl_TypeName' defined but not used hamlibtcl_wrap.c:201: warning: 'SWIG_Tcl_TypeQuery' defined but not used hamlibtcl_wrap.c:488: warning: 'SWIG_Tcl_PointerTypeFromString' defined but not used hamlibtcl_wrap.c:505: warning: 'SWIG_Tcl_ConvertPacked' defined but not used hamlibtcl_wrap.c:727: warning: 'SWIG_Tcl_ObjectDelete' defined but not used make[2]: *** [hamlibtcl_wrap.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... hamlibpy_wrap.c: At top level: hamlibpy_wrap.c:187: warning: 'SWIG_Python_TypeDynamicCast' defined but not used hamlibpy_wrap.c:199: warning: 'SWIG_Python_TypeName' defined but not used hamlibpy_wrap.c:205: warning: 'SWIG_Python_TypeQuery' defined but not used hamlibpy_wrap.c:551: warning: 'SWIG_Python_MustGetPtr' defined but not used hamlibpy_wrap.c:559: warning: 'SWIG_Python_ConvertPacked' defined but not used make[2]: Leaving directory `/var/tmp/portage/hamlib-1.2.4/work/hamlib-1.2.4/bindings' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/hamlib-1.2.4/work/hamlib-1.2.4/bindings' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/hamlib-1.2.4 failed. !!! Function src_compile, Line 48, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-nitro5 x86_64) ================================================================= System uname: 2.6.12-nitro5 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.11 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -fomit-frame-pointer -frename-registers -ftracer -finline-limit=600 -minline-all-stringops -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -fomit-frame-pointer -frename-registers -ftracer -finline-limit=600 -minline-all-stringops -pipe -fvisibility-inlines-hidden" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo http://gentoo.seren.com/gentoo http://gentoo.mirrors.pair.com/" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,--strip-all" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.10.1/gentoo-portage" USE="amd64 X alsa avi berkdb bitmap-fonts cdr crypt cups curl eds encode foomaticdb fortran gif gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 jpeg lzw lzw-tiff mad motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png python quicktime readline sdl spell ssl tcpd tiff truetype-fonts type1-fonts unicode usb userlocales vorbis xine xml2 xpm xv zlib linguas_en userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL
Installed hamlib-1.2.4 without problems on python-2.3.5 and swig-1.3.21 Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe -ftracer -funit-at-a-time" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe -ftracer -funit-at-a-time" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks multilib-strict sandbox sfperms strict" GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/ http:://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aalib adns alsa avi berkdb bitmap-fonts cdr crypt cups curl eds encode esd fam foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 jpeg junit ldap libwww lzw lzw-tiff mad motif mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pdflib perl png postgres python qt quicktime readline sdl slang snmp spell sqlite ssl tcltk tcpd tetex tiff truetype-fonts type1-fonts usb userlocales vorbis xine xml xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Erik, thanks for the bug report. It appears you are running an unstable version of python. Sorry it doesn't work for you. It seems swig can't find the tcl/tk headers. If you don't need the python wrappers, just continue to emerge hamlib with USE="-python". Mike, thanks for your comment. I appreciate the help with amd64.
unstable python version