Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249239 - app-emulation/uade-2.12 - uade-2.12/src/frontends/uadefs/uadefs.c:1303: undefined reference to `fuse_opt_parse'
Summary: app-emulation/uade-2.12 - uade-2.12/src/frontends/uadefs/uadefs.c:1303: undef...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-29 10:05 UTC by ernsteiswuerfel
Modified: 2008-11-30 19:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2008-11-29 10:05:01 UTC
emerge seems to run fine until:

gcc -Wall -O2 -pthread -I../../include -I../common `pkg-config fuse --cflags` -DUADENAME=\"/usr/bin/uade123\" -g  -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically -Wl,-O1 -Wl,-z,now -Wl,--sort-common -Wl,--as-needed -Wl,-S `pkg-config fuse --libs` -lm -o uadefs uadefs.o unixatomic.o uadeipc.o amifilemagic.o eagleplayer.o unixwalkdir.o effects.o uadecontrol.o uadeconf.o md5.o ossupport.o songdb.o songinfo.o vplist.o support.o
uadefs.o: In function `main':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/uadefs.c:1303: undefined reference to `fuse_opt_parse'
uadefs.o: In function `uadefs_fuse_main':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/uadefs.c:1217: undefined reference to `fuse_main_real'
uadefs.o: In function `uadefs_opt_proc':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/uadefs.c:1264: undefined reference to `fuse_opt_add_arg'
uadefs.o: In function `uadefs_fuse_main':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/uadefs.c:1217: undefined reference to `fuse_main_real'
uadefs.o: In function `uadefs_opt_proc':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/uadefs.c:1271: undefined reference to `fuse_opt_add_arg'
uadefs.o: In function `uadefs_fuse_main':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/uadefs.c:1217: undefined reference to `fuse_main_real'
effects.o: In function `calculate_rc':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/../common/effects.c:125: undefined reference to `tan'
effects.o: In function `calculate_shelve':
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/../common/effects.c:90: undefined reference to `powf'
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/../common/effects.c:92: undefined reference to `tan'
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/../common/effects.c:92: undefined reference to `sincosf'
/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs/../common/effects.c:95: undefined reference to `sqrtf'
collect2: ld gab 1 als Ende-Status zurück
gmake[1]: *** [uadefs] Fehler 1
gmake[1]: Leaving directory `/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src/frontends/uadefs'
make: *** [uadefs] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
gcc -DPART_2 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -o cpuemu2.o cpuemu.c
gcc -DPART_3 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -o cpuemu3.o cpuemu.c
gcc -DPART_4 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -o cpuemu4.o cpuemu.c
gcc -DPART_5 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -o cpuemu5.o cpuemu.c
gcc -DPART_6 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -o cpuemu6.o cpuemu.c
gcc -DPART_7 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -o cpuemu7.o cpuemu.c
gcc -DPART_8 -I. -I./include -c  -fomit-frame-pointer -Wall -Wno-unused -Wno-format -Wmissing-prototypes -Wstrict-prototypes -fno-exceptions -O2 -g -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically  -Wno-sign-compare -o cpuemu8.o cpuemu.c
gcc -pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically -o uadecore main.o newcpu.o memory.o custom.o cia.o audio.o compiler.o cpustbl.o missing.o sd-sound.o md-support.o cfgfile.o fpp.o debug.o readcpu.o cpudefs.o cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o uade.o uadeipc.o unixatomic.o ossupport.o uademain.o sinctable.o text_scope.o -lm  -Wl,-O1 -Wl,-z,now -Wl,--sort-common -Wl,--as-needed -Wl,-S
gmake[1]: Leaving directory `/var/tmp/portage/app-emulation/uade-2.12/work/uade-2.12/src'
 * 
 * ERROR: app-emulation/uade-2.12 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2114:  Called die
 * The specific snippet of code:
 *       emake || die 'emake failed'
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/uade-2.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/uade-2.12/temp/environment'.
 * 

 * Messages for package app-emulation/uade-2.12:

 * 
 * ERROR: app-emulation/uade-2.12 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2114:  Called die
 * The specific snippet of code:
 *       emake || die 'emake failed'
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/uade-2.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/uade-2.12/temp/environment'.


I also tried compiling with more sane CFLAGS, but it's the same result. Seems to be a dependencies-issue, but I can't figure it out...

Reproducible: Always

Steps to Reproduce:
1. emerge -D uade



Here's my emerge --info:

Portage 2.1.4.5 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.7-r2, 2.6.27-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.27-gentoo-r4 x86_64 AMD Athlon(tm) Dual Core Processor 4850e
Timestamp of tree: Mon, 24 Nov 2008 19:35:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically"
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/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-pipe -Os -mtune=k8-sse3 -march=k8-sse3 -fomit-frame-pointer -fivopts -ftree-loop-im -ftree-loop-linear -minline-stringops-dynamically"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,-z,now -Wl,--sort-common -Wl,--as-needed -Wl,-S"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 amr audacious bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cli cracklib crypt cups custom-cflags dbus djvu dri dts dvd dvdr dvdread dvi emboss enca encode evo exif fam firefox flac foomaticdb fortran gdbm gif gnome gnutls gstreamer gtk hal iconv ipv6 isdnlog ithreads java6 jbig joystick jpeg jpeg2k kerberos libnotify libsamplerate live lm_sensors mad matroska midi mikmod mmap mmx mmxext mng mozsvg mp3 mp4 mpeg mudflap multilib musepack nas ncurses nls no-old-linux nptl nptlonly nsplugin ntfs ogg ogm opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3support quicktime readline reflection rle rtc schroedinger sdl session speex spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd theora threads tiff tivo truetype unicode usb vorbis wavpack wmf x264 xml xorg xulrunner xv xvid xvmc zlib zoran" ALSA_CARDS="hda-intel" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="fbdev radeon radeonhd"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2008-11-29 15:06:05 UTC
It's a typical --as-needed error - libs should come after the objects.

I think I'll have a look at the sources to see the reason.
Comment 2 Rafał Mużyło 2008-11-29 15:15:19 UTC
In this case, fix is trivial:
$(CC) $(CFLAGS) $(CLIBS) -o $@ $(MODULES)
should be:
$(CC) $(CFLAGS) -o $@ $(MODULES) $(CLIBS)

That's in src/frontends/uadefs/Makefile.in

but there may be more of this problem.
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2008-11-30 19:32:54 UTC
Thanks for reporting and identifying the problem.  This should now be fixed in CVS.