Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#28430 - [dumb] Undefined reference to symbol

Attached to Project: Community Packages
Opened by A. Núñez (megadriver) - Tuesday, 14 February 2012, 20:59 GMT
Last edited by Chris Brannon (cmb) - Monday, 20 February 2012, 12:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Chris Brannon (cmb)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I'm the maintainer of alex4 (an Allegro-based game) in the AUR. It depends on dumb from [community].

Currently, it can't be built. I get this error:
/usr/bin/ld: /usr/lib/libdumb.a(resample.o): undefined reference to symbol 'floor@@GLIBC_2.0'
/usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /usr/lib/libm.so so try adding it to the linker command line
/usr/lib/libm.so: could not read symbols: Invalid operation

I tried to build dumb from ABS, and, as expected, got exactly the same error:
/usr/bin/ld: lib/unix/libdumb.a(resample.o): undefined reference to symbol 'floor@@GLIBC_2.0'
/usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation

The problem seems to be the new behaviour of ld from binutils 2.22, as explained here:
https://bbs.archlinux.org/viewtopic.php?id=135319

I was succesfully able to build dumb by applying this patch from Gentoo:
http://gentoo-overlays.zugaina.org/gentoo/portage/media-libs/dumb/files/dumb-0.9.3-PIC-as-needed.patch

After installing the patched dumb, I was also able to build alex4 without changing its PKGBUILD.

Additional info:
dumb 0.9.3-5
This task depends upon

Closed by  Chris Brannon (cmb)
Monday, 20 February 2012, 12:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  dumb-0.9.3-6 should fix your issue.
Thanks for the report!
Comment by A. Núñez (megadriver) - Wednesday, 15 February 2012, 11:42 GMT
Okay, so I modified the alex4 PKGBUILD, and it does build (and works) with dumb 0.9.3-5.

The fact remains that dumb 0.9.3-5 can't be built with ld from binutils 2.22, though, so I think this bug is still "valid".
Comment by Chris Brannon (cmb) - Monday, 20 February 2012, 10:57 GMT
This still doesn't build, even after applying the patch from Gentoo. I'll
keep working on it, though.
Comment by Ionut Biru (wonder) - Monday, 20 February 2012, 11:09 GMT
be sure you do after patching:
cp -f Makefile Makefile.rdy

Loading...