Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505788 - app-emulation/uae-0.8.29-r1 - ld: fpp.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
Summary: app-emulation/uae-0.8.29-r1 - ld: fpp.o: undefined reference to symbol 'floor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
: 506838 (view as bug list)
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-03-25 16:28 UTC by Frank Steinmetzger
Modified: 2015-06-27 15:02 UTC (History)
1 user (show)

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


Attachments
Output of emerge --info (emerge.info,5.54 KB, text/plain)
2014-03-25 16:29 UTC, Frank Steinmetzger
Details
build.log (app-emulation:uae-0.8.29-r1:20140325-161528.log,115.92 KB, text/plain)
2014-03-27 21:11 UTC, Frank Steinmetzger
Details
uae-0.8.29-underlinking.patch (uae-0.8.29-underlinking.patch,377 bytes, patch)
2014-03-28 21:37 UTC, Ted Tanberry
Details | Diff
uae-0.8.29-r1.patch (uae-0.8.29-r1.patch,1.75 KB, patch)
2014-03-28 21:37 UTC, Ted Tanberry
Details | Diff
patch to fix compilation (0001-fix-compilation-error-caused-by-underlinking.patch,6.86 KB, patch)
2015-01-13 06:44 UTC, Markus Rathgeb
Details | Diff
build.log on unstable (build.log,211.72 KB, text/x-log)
2015-06-21 09:49 UTC, Mark Nowiasz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2014-03-25 16:28:15 UTC
It seems uae is another package affected by this bug, for which the solution is described in #496924; using LDFLAGS=-lm emerge ... solves the problem.

The system is a brand-new installation, set up using a stage 3 from 21.3.2014, using a mostly stable systems with only selected end-user applications being a keyworded version. e-uae is not affected.

Reproducible: Always

Steps to Reproduce:
Emerge app-emulation/uae-0.8.29-r1
Actual Results:  
Build fails with
x86_64-pc-linux-gnu-gcc main.o newcpu.o memory.o cpuemu.o custom.o cia.o serial.o blitter.o autoconf.o ersatz.o filesys.o hardfile.o keybuf.o expansion.o zfile.o fpp.o readcpu.o cpudefs.o gfxutil.o traps.o blitfunc.o blittable.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: fpp.o: undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line 
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Comment 1 Frank Steinmetzger 2014-03-25 16:29:48 UTC
Created attachment 373520 [details]
Output of emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-27 13:34:59 UTC
Please attach the entire build log to this bug report.
Comment 3 Frank Steinmetzger 2014-03-27 21:11:41 UTC
Created attachment 373664 [details]
build.log

There you go.
Comment 4 Ted Tanberry 2014-03-28 21:37:35 UTC
Created attachment 373776 [details, diff]
uae-0.8.29-underlinking.patch
Comment 5 Ted Tanberry 2014-03-28 21:37:49 UTC
Created attachment 373778 [details, diff]
uae-0.8.29-r1.patch
Comment 6 Ted Tanberry 2014-03-28 21:39:19 UTC
Included the floor()/libm checks. Also updated the ebuild to EAPI=5.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-05 14:52:28 UTC
*** Bug 506838 has been marked as a duplicate of this bug. ***
Comment 8 Markus Rathgeb 2015-01-13 06:44:16 UTC
Created attachment 393818 [details, diff]
patch to fix compilation

The first report is long ago.
Could this be added to portage tree?

- add a patch to files to fix configure to include cos/floor check to link against the math library
- change ebuild to apply that patch in the configure phase
- fix type in elog (postinst)
Comment 9 Adam Purkrt 2015-06-20 14:34:01 UTC
Still a current issue. Current ebuild fails

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld: fpp.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'

...

* ERROR: app-emulation/uae-0.8.29-r2::gentoo failed (compile phase):

...

Workaround:
# cd /var/tmp/portage/app-emulation/uae-0.8.29-r2/work/uae-0.8.29
# aclocal && autoconf && ./configure && make clean && make
# chown -R portage.portage .
# ebuild /usr/portage/app-emulation/uae/uae-0.8.29-r2.ebuild install
# ebuild /usr/portage/app-emulation/uae/uae-0.8.29-r2.ebuild merge
Comment 10 Pacho Ramos gentoo-dev 2015-06-20 14:54:16 UTC
+  20 Jun 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/uae-0.8.26-underlinking.patch, uae-0.8.29-r2.ebuild:
+  Fix building (#505788)
+
Comment 11 Mark Nowiasz 2015-06-20 19:24:03 UTC
Not resolved :-(

usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld: fpp.o: undefined reference to symbol 'cos@@GLIBC_2.2.5'
/lib64/libm.so.6: error adding symbols: DSO missing from command line
Comment 12 Pacho Ramos gentoo-dev 2015-06-20 19:26:13 UTC
Please provide the full build.log, it builds here (at least on stable)
Comment 13 Mark Nowiasz 2015-06-21 09:49:00 UTC
Created attachment 405470 [details]
build.log on unstable

build.log on unstable
Comment 14 Mark Nowiasz 2015-06-21 09:50:02 UTC
(In reply to Pacho Ramos from comment #12)
> Please provide the full build.log, it builds here (at least on stable)

Here you go. I'm on unstable, gcc-4.9.2:

emerge --info
!!! Repository 'eigenlay' has sync-uri attribute, but is missing sync-type attribute
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.20 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16420440 total,   4671448 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 20 Jun 2015 14:15:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

eigenlay
    location: /var/lib/layman/eigenlay
    sync-uri: https://git.gitorious.org/eigennet/eigenlay.git
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

owncloud-client
    location: /var/lib/layman/owncloud-client
    masters: gentoo
    priority: 50

scrill
    location: /var/lib/layman/scrill
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi aim alsa amd64 apng audiofile avx ayatana bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar cdb cdda cddb cdinstall cdparanoia cdr chromium cli clutter colord consolekit cracklib crypt cryptsetup css cups curl curlwrappers cvs cxx dbus djvu dng dri dts dv dvb dvd dvdr encode enscript evo exif expat fam farstream ffmpeg fftw flac flickr fontconfig foomaticdb fortran ftp gd gdbm gdu geo geoip gif gimp git glut gmp gnuplot gnutls google gphoto2 graphicsmagick graphviz gsl gsm gstreamer gtk gtk3 gtkhtml gudev gzip handbook hbci hddtemp hdf5 iconv icq icu idn imagemagick imap imlib ipv6 jabber jack java java6 javascript jbig jingle jit joystick jpeg jpeg2k kde kdepim lame lapack lash latex lcms ldap libcaca libedit libffi libnotify libsamplerate libwww lm_sensors lua lzma lzo mad maildir matroska memlimit mercurial mhash mikmod milter mime mmap mms mmx mmxext mng modplug modules mono mp3 mp4 mpeg mpi mplayer msn mtp multilib musepack musicbrainz mysql mysqli nas ncurses netcdf nls nntp nocd nptl nsplugin ocr odbc offensive ofx ogg openal opencl openexr opengl openmax openmp openvg osc oscar pam pcntl pcre pda pdf pentax php plasma plotutils png policykit portaudio ppds pulseaudio python qt3support qt4 quicktime raw rdesktop readline recode rss samba sasl scanner sdl semantic-desktop session sharedmem shorten slang slp smp sndfile snmp soap sockets sound sox speex spell sqlite sqlite3 sse sse2 sse3 ssl startup-notification subversion suid svg syslog szip taglib tcpd telepathy themes theora threads tiff timidity tokenizer truetype udev unicode upnp usb v4l vala vcd vdpau video videos vim-syntax vnc vorbis vpn vpnc wavpack webkit win32codecs wmf wxwidgets x264 xa xattr xcb xcomposite xface xft xinerama xml xmlrpc xmp xmpp xosd xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo yaz zeroconf zip zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 15 Ted Tanberry 2015-06-27 09:24:20 UTC
>>> Preparing source in /var/tmp/portage/app-emulation/uae-0.8.29-r2/work/uae-0.8.29 ...
  Applying uae-0.8.25-allow_spaces_in_zip_filenames.diff ...
  Applying uae-0.8.25-struct_uae_wrong_fields_name.diff ...
  Applying uae-0.8.26-uae_reset_args.diff ...
>>> Source prepared.

That looks like you haven't received the updated ebuild, likely because the change hasn't synced down yet. Have you tried it again recently?
Comment 16 Mark Nowiasz 2015-06-27 13:43:39 UTC
(In reply to Ted Tanberry from comment #15)
> >>> Preparing source in /var/tmp/portage/app-emulation/uae-0.8.29-r2/work/uae-0.8.29 ...
>   Applying uae-0.8.25-allow_spaces_in_zip_filenames.diff ...
>   Applying uae-0.8.25-struct_uae_wrong_fields_name.diff ...
>   Applying uae-0.8.26-uae_reset_args.diff ...
> >>> Source prepared.
> 
> That looks like you haven't received the updated ebuild, likely because the
> change hasn't synced down yet. Have you tried it again recently?

Tried it a couple of minutes ago - now it works :-)

Thanks,
Mark