Summary: | djvu-3.5.17: fix unresolved symbols in libdjvulibre.so (--as-needed) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | TGL <tom.gl> |
Component: | Current packages | Assignee: | Text-Markup Team (OBSOLETE) <text-markup+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cems, dberkholz, flameeyes, genstef, ikelos |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
djvu-3.5.17-libpthread.patch
files/djvulibre-3.5.17-pthread-flag.patch |
Description
TGL
2006-05-06 09:59:23 UTC
Created attachment 86292 [details, diff]
djvu-3.5.17-libpthread.patch
Hmm no that won't work as that will break on *BSD where -lpthread is different by -pthread. The autodetection has to be fixed instead. Note that my explanation of the workaround is not accurate: setting this variables doesn't really "force" anything, but just gives some values to try first. If "AC_TRY_LINK_FUNC(pthread_join)" fails with this values, then the macro will continue with the normal autodetection. I don't know whether it would have been the case or not on *BSD, but if it was, then this workaround would not have break things. (In reply to comment #2) > The autodetection has to be fixed instead. But this macro works just fine. It comes from the autoconf library [1] (not the latest version, but that's minor differences), and has a well documented semantics which is well implemented. When it detects that CFLAGS=-pthread is enough on my system to link a threaded program, it is right, there's no bug. [1] http://autoconf-archive.cryp.to/acx_pthread.html The real problem here is libtool breaking semantics of -pthread: it is the one which forces -nostdlib for linking, while only doing half the job of readding the libs this flag will remove. Now, i understand there's not much to do about it here, so i'm okay to try to find other better workarounds... I will attach a first attempt patch, which makes possible to test combinations of flags/libs in the autodetection macro, and adds the "-pthread -lpthread" combination in the case of Linux/GCC. Sure, it should probably be completed with other combinations for the other systems where libtool breaks things. Created attachment 86422 [details, diff]
files/djvulibre-3.5.17-pthread-flag.patch
A first attempt at patching the pthread macro. Should be applied in src_unpack, before running of aclocal and autoconf.
work-around: LD_PRELOAD=/usr/lib/libXt.so.6.0.0 /usr/bin/firefox thanks, I committed this patch to Gentoo - can you please post this upstream also? |