I'm not able to compile g-wrap-1.9.6-r1 on my ~x86 system. I already checked without --as-needed, but that also fails as it is no link-problem. make[2]: Entering directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6/guile' Making all in g-wrap make[3]: Entering directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6/guile/g-wrap' Making all in . make[4]: Entering directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6/guile/g-wrap' /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../g-wrap -I../.. -I../../lib -I../../guile -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wmissing-prototypes -Werror -std=gnu99 -MT guile-runtime.lo -MD -MP -MF .deps/guile-runtime.Tpo -c -o guile-runtime.lo guile-runtime.c mkdir .libs i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../g-wrap -I../.. -I../../lib -I../../guile -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -Wmissing-prototypes -Werror -std=gnu99 -MT guile-runtime.lo -MD -MP -MF .deps/guile-runtime.Tpo -c guile-runtime.c -fPIC -DPIC -o .libs/guile-runtime.o cc1: warnings being treated as errors guile-runtime.c: In function 'gw_guile_enum_val2sym': guile-runtime.c:80: warning: implicit declaration of function 'SCM_NFALSEP' guile-runtime.c:87: warning: implicit declaration of function 'SCM_SYMBOLP' guile-runtime.c:90: warning: implicit declaration of function 'SCM_FALSEP' guile-runtime.c:94: warning: implicit declaration of function 'scm_num2long' guile-runtime.c:107: warning: implicit declaration of function 'scm_str2symbol' guile-runtime.c:107: warning: return makes pointer from integer without a cast guile-runtime.c:109: warning: passing argument 1 of 'scm_cons' makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_enum_val2int': guile-runtime.c:132: warning: implicit declaration of function 'SCM_CONSP' guile-runtime.c:148: warning: implicit declaration of function 'scm_long2num' guile-runtime.c:148: warning: return makes pointer from integer without a cast guile-runtime.c:157: warning: implicit declaration of function 'SCM_SYMBOL_CHARS' guile-runtime.c:157: warning: assignment makes pointer from integer without a cast guile-runtime.c:162: warning: return makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_make_latent_variable': guile-runtime.c:208: warning: implicit declaration of function 'SCM_MAKINUM' guile-runtime.c:210: warning: passing argument 2 of 'scm_struct_set_x' makes pointer from integer without a cast guile-runtime.c:216: warning: passing argument 3 of 'gw_raise_error' makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_add_subr_method': guile-runtime.c:265: warning: assignment makes pointer from integer without a cast guile-runtime.c:273: warning: passing argument 1 of 'scm_cons' makes pointer from integer without a cast guile-runtime.c: In function 'gw_scm_module_binder_proc': guile-runtime.c:325: warning: implicit declaration of function 'SCM_NULLP' guile-runtime.c:331: warning: implicit declaration of function 'SCM_VELTS' guile-runtime.c:331: warning: assignment makes pointer from integer without a cast guile-runtime.c:335: warning: implicit declaration of function 'SCM_INUM' guile-runtime.c: In function 'ensure_scm_module_hacked': guile-runtime.c:364: warning: passing argument 2 of 'scm_struct_set_x' makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_procedure_to_method_public': guile-runtime.c:384: warning: implicit declaration of function 'SCM_VALIDATE_INUM' guile-runtime.c:410: warning: implicit declaration of function 'SCM_VECTOR_SET' guile-runtime.c:453: warning: implicit declaration of function 'SCM_SYMBOL_LENGTH' guile-runtime.c:456: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast guile-runtime.c:458: warning: assignment makes pointer from integer without a cast guile-runtime.c: In function 'dynproc_smob_print': guile-runtime.c:544: warning: implicit declaration of function 'scm_makfrom0str' guile-runtime.c:544: warning: passing argument 1 of 'scm_display' makes pointer from integer without a cast guile-runtime.c:545: warning: passing argument 1 of 'scm_display' makes pointer from integer without a cast guile-runtime.c:546: warning: passing argument 1 of 'scm_display' makes pointer from integer without a cast guile-runtime.c:547: warning: passing argument 1 of 'scm_display' makes pointer from integer without a cast guile-runtime.c:548: warning: passing argument 1 of 'scm_display' makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_handle_wrapper_error': guile-runtime.c:564: warning: implicit declaration of function 'scm_c_make_keyword' guile-runtime.c:564: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:567: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:598: warning: passing argument 1 of 'scm_wrong_num_args' makes pointer from integer without a cast guile-runtime.c:608: warning: passing argument 1 of 'scm_cons' makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_register_wrapset': guile-runtime.c:666: warning: pointer/integer type mismatch in conditional expression guile-runtime.c:674: warning: passing argument 3 of 'gw_guile_procedure_to_method_public' makes pointer from integer without a cast guile-runtime.c:674: warning: passing argument 4 of 'gw_guile_procedure_to_method_public' makes pointer from integer without a cast guile-runtime.c: In function 'gw_guile_runtime_init': guile-runtime.c:721: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:723: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:724: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:725: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:726: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast guile-runtime.c:727: warning: passing argument 1 of 'scm_permanent_object' makes pointer from integer without a cast make[4]: *** [guile-runtime.lo] Error 1 make[4]: Leaving directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6/guile/g-wrap' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6/guile/g-wrap' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6/guile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/g-wrap-1.9.6-r1/work/g-wrap-1.9.6' make: *** [all] Error 2 !!! ERROR: dev-libs/g-wrap-1.9.6-r1 failed. Call stack: ebuild.sh, line 1613: Called dyn_compile ebuild.sh, line 970: Called qa_call 'src_compile' environment, line 3439: Called src_compile g-wrap-1.9.6-r1.ebuild, line 33: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/log/portage/dev-libs:g-wrap-1.9.6-r1:20070203-181727.log'.
# emerge --info Portage 2.1.2-r7 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18.6 i686) ================================================================= System uname: 2.6.18.6 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.12.9 Timestamp of tree: Unknown distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.3.6, 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.19.2-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/my-distfiles" FEATURES="autoaddcvs autoconfig ccache collision-detect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms sign strict" GENTOO_MIRRORS="http://85.25.128.62 http://pandemonium.tiscali.de/pub/gentoo/" LANG="C" LC_ALL="C" LDFLAGS="-Wl,--as-needed" LINGUAS="de en" PKGDIR="/usr/my-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="/home/matze/overlays/gentoo.de /home/matze/overlays/zzam /home/matze/overlays/vdr/testing /home/matze/overlays/vdr/experimental /home/matze/overlays/layman/sunrise" SYNC="cvs://zzam@cvs.gentoo.org:/var/cvsroot" USE="3dnow 3dnowext X Xaw3d a52 aac acl alsa amr apache2 artswrappersuid audacious berkdb bitmap-fonts bluetooth bzip2 cairo cap caps cddb cdparanoia cdr cli cracklib crypt cups curl dbus dlloader doc dri dts dvb dvd dvdr eds emboss encode exif fam fbcon ffmpeg firefox font-server fortran fuse gcj gdbm gif gimpprint glut gphoto2 gpm gstreamer gtk gtk2 hal iconv imap ipv6 isdnlog java jpeg jpeg2k kde kdexdeltas ldap libdvdread libg++ lirc logitech-mouse mad midi mikmod mmx mmxext mng mp3 mpeg mplayer musicbrainz mysql ncurses nls nptl nptlonly nvram offensive ogg opengl oss pam pcre pdf perl php png ppds pppd python qt3 qt4 quotes readline reflection regex samba session sms sndfile spell spl sql sqlite sse ssl svg taglib tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vdr visualization vorbis webdav win32codecs wma wmf x264 x86 xinerama xml xorg xrandr xslt xv zlib zvbi" ALSA_CARDS="emu10k1 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" DVB_CARDS="ttpci usb-wt220u dibusb-usb2 usb-dib0700" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="nvidia v4l vesa vbdev nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
I was getting the same error on my ~amd64 system, but I finally got g-wrap-1.9.6-r1 to compile by emerging guile-1.8.1-r1 with the "deprecated" and "discouraged" USE flags. (It was mentioned in Bug #163908, that gnome-games needed those flags and, after setting them, g-wrap compiled.) I then ran into another problem. gnucash was failing on configure (when checking for g-wrap-wct.h). I looked through the config.log and noticed that it was failing with libffi (I don't remember the exact error and didn't write it down). I compared to another system, and g-wrap was missing several files: ffi.h, libffi.a, libffi.so*, etc. I emerged g-wrap again, and then it installed those missing files. gnucash's configure completed this time and is compiling as we speak.
added check for deprecated use flag if using guile-1.8
*** Bug 165406 has been marked as a duplicate of this bug. ***