Summary: | net-print/hplip-3.11.12-r2 - ./.libs/libhpmud.so: undefined reference to `timer_create' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | [OLD] Printing | Assignee: | Daniel Pielmeier <billie> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | calchan, drftcicfn, printing, rose |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
hplip-3.11.12-lrt.patch build.log (hplip-3.12.2) |
Description
Martin Mokrejš
2012-02-04 17:28:47 UTC
Created attachment 300919 [details]
build.log
Does not happen with USE=-parport (which does not help me with my old HP OfficeJet R45 printer/scanner exposing only a parallel port). http://www.kernel.org/doc/man-pages/online/pages/man2/timer_create.2.html lead to some some info that one needs to add "-lrt" during linking. I added it to the generated Makefile at two places (line numbers shown): 4112 libhpmud_la_LDFLAGS = -version-info 0:6:0 -lusb -lpthread -lrt 4126 hp_mkuri_LDADD = -ldl -lrt libhpmud.la And finally, I see my printer+scanner through xsane back again. Created attachment 301039 [details, diff]
hplip-3.11.12-lrt.patch
Patch to pass "-lrt" to linker.
Martin, thanks for your patch! Can you please run revdep-rebuild and then try to build hplip _without_ your patch. In bug #401337 the problem went away without the need of a patch, probably due to a problem with reverse dependencies. H Daniel, sorry but "revdep-rebuild -i" does not find any problems. I think you can ask somebody from toolchain whether one check if inclusion of -lpthread needs also -lrt or not. That would be the only think I would do to improve the patch. I just added hplip-3.12.2. Try this new version and if it still fails can you please open a bug about this at https://bugs.launchpad.net/hplip. Created attachment 301231 [details]
build.log (hplip-3.12.2)
Looks upstream already added "-lrt" but somewhere it is omitted.
And my patch still applies over the 3.12.2 version and just works. Please add it to portage. (In reply to comment #8) > Created attachment 301231 [details] > build.log (hplip-3.12.2) > Looks upstream already added "-lrt" but somewhere it is omitted. Can you please point me to the upstream resource documenting this? There is nothing in the release notes for 3.12.2 about it. *** Bug 401337 has been marked as a duplicate of this bug. *** Okay I found out the problem. The functions timer_* were introduced in the patch from bug #361847. So the patch was incomplete and needs to be updated to add linkage of libhhmud with -lrt. + 08 Feb 2012; Daniel Pielmeier <billie@gentoo.org> + files/hplip-3.11.12-fast-pp.patch: + Update the fast-pp patch to add linkage against lrt. This fixes bug #402177. + Thanks to Juergen Rose and Martin Mokrejš for the patch. Should be fixed. Please test if everything is okay. (In reply to comment #13) > + 08 Feb 2012; Daniel Pielmeier <billie@gentoo.org> > + files/hplip-3.11.12-fast-pp.patch: > + Update the fast-pp patch to add linkage against lrt. This fixes bug #402177. > + Thanks to Juergen Rose and Martin Mokrejš for the patch. > > Should be fixed. Please test if everything is okay. 3.12.2 now installs fine for me, thanks. *** Bug 402783 has been marked as a duplicate of this bug. *** |