Compile error as follows python is installed in version 2.4.2 swig is installed in version 1.3.21 i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Redland\ RDF\ Application\ Framework\ bindings\" -DPACKAGE_TARNAM E=\"redland-bindings\" -DPACKAGE_VERSION=\"1.0.2.1\" -DPACKAGE_STRING=\"Redland\ RDF\ Application\ Frame work\ bindings\ 1.0.2.1\" -DPACKAGE_BUGREPORT=\"http://bugs.librdf.org/\" -DPACKAGE=\"redland-bindings\" -DVERSION=\"1.0.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAV E_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H= 1 -DHAVE_DLFCN_H=1 -I. -DREDLAND_POST_I -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I -I/usr/include/db4.2 -I/ usr/include/mysql -march=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/python2.4 -O3 -march=i686 - pipe -I/usr/include/db4.2 -I/usr/include/mysql -march=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -O3 -march=i 686 -pipe -fPIC -DPIC ./Redland_wrap.c -c -o Redland_wrap.so In file included from Redland_wrap.c:740: redland-post.i:41: error: Syntaxfehler before "void" make[2]: *** [Redland_wrap.so] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/redland-bindings-1.0.2.1/work/redland-bindings-1.0.2.1/pyth on' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/redland-bindings-1.0.2.1/work/redland-bindings-1.0.2.1/pyth on' make: *** [all-recursive] Fehler 1
builds fine for me you neglected to post `emerge info`
Sorry, my bad. Here it is Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) M processor 1.60GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 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-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/mozilla/defaults/pref /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="-O3 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" LC_ALL="de_DE@euro" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl doc dvd dvdr eds emboss encode examples exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 java jpeg junit kde lcms libg++ libwww mad mikmod mng motif mozilla mp3 mpeg mysql ncurses nls nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline ruby sdl spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis xine xml2 xmms xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
can you try doing `emerge prune python && emerge redland-bindings` ?
I just tried the suggested command. The result stayed the same, as far as I can tell. Here is the error output i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Redland\ RDF\ Application\ Framework\ bin dings\" -DPACKAGE_TARNAME=\"redland-bindings\" -DPACKAGE_VERSION=\"1.0.2.1\" -DP ACKAGE_STRING=\"Redland\ RDF\ Application\ Framework\ bindings\ 1.0.2.1\" -DPACK AGE_BUGREPORT=\"http://bugs.librdf.org/\" -DPACKAGE=\"redland-bindings\" -DVERSI ON=\"1.0.2.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_ STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPE S_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -DREDLAND_POST_I -DREDLAND_DECL_I -DREDLAND_TYPEMAP_I -I/usr/include/db4.2 -I/usr/include/mysq l -march=i686 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -I/usr/include/python2.4 -O3 -marc h=i686 -pipe -I/usr/include/db4.2 -I/usr/include/mysql -march=i686 -pipe -DHAVE _ERRNO_AS_DEFINE=1 -O3 -march=i686 -pipe -fPIC -DPIC ./Redland_wrap.c -c -o Red land_wrap.so In file included from Redland_wrap.c:740: redland-post.i:41: error: Syntaxfehler before "void" make[2]: *** [Redland_wrap.so] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/redland-bindings-1.0.2.1/work/redla nd-bindings-1.0.2.1/python' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/redland-bindings-1.0.2.1/work/redla nd-bindings-1.0.2.1/python' make: *** [all-recursive] Fehler 1
Hi again! I think I have found the problem. redland-bindings uses dev-lang/swig. Stable version of swig is 1.3.21. I found an entry during the configure-phase of the emerge that states, that that is an old version. And indeed, after mergeing the (unstable) version 1.3.25 of swig, the emerge finished successfully. So it seems to me, that the ebuild of redland-bindings should explicitly state that swig>1.3.21 is needed. HTH, regards Lars
works for me
forced 1.3.25 or newer of swig, thanks for tracking that down