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#20042 - [dumb] not compiled with -fPIC

Attached to Project: Community Packages
Opened by Hilton Medeiros (hilton) - Thursday, 01 July 2010, 14:03 GMT
Last edited by Chris Brannon (cmb) - Sunday, 04 July 2010, 18:15 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The dumb library is not compiled with -fPIC, making it impossible
to link in x86_64.

Additional info:
* dumb 9.3-2
This task depends upon

Closed by  Chris Brannon (cmb)
Sunday, 04 July 2010, 18:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  It works, so I'm closing this bug.
Thanks to tomd123 for testing.
Comment by Hilton Medeiros (hilton) - Thursday, 01 July 2010, 14:06 GMT
Sorry, it is 'dumb 0.9.3-2'.
Comment by Stefan Husmann (stefanhusmann) - Saturday, 03 July 2010, 17:59 GMT
Please test dumb 0.9.3.3 in [community-testing].
Comment by Chris Brannon (cmb) - Sunday, 04 July 2010, 17:48 GMT
Unfortunately, that won't work.
Upstream's Makefile completely ignores the user's CFLAGS.
I had a look at Gentoo's ebuild.
It overrides another makefile variable, called OFLAGS.
make OFLAGS="${CFLAGS}"

This package's build process has other problems. It won't build in a
clean chroot, because of the interactive prompting in the Makefile.
The trick of providing all the answers in a here-document doesn't quite
work. In fact, it causes make to fail.

I'm going to commit it to [community-testing].
Would people on x86_64 mind testing -fPIC?
   PKGBUILD (1.6 KiB)
Comment by Chris Brannon (cmb) - Sunday, 04 July 2010, 17:59 GMT
I think this test-case will work.
I'm attaching a small C file.
Try building a shared library from it on x86_64, like so:

gcc -c dumbtest.c -fPIC
gcc -shared -o libdumbtest.so dumbtest.o -ldumb

Loading...