Summary: | dev-lang/gdl-0.9_rc2 fails to emerge on 64bit systems with undefined reference to `nn::nullAST | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Markus Dittrich (RETIRED) <markusle> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bughunter, jiri, sci |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch to make gdl work with kdesdk installed |
Description
Juergen Rose
2009-09-27 09:16:04 UTC
Unfortunately, I can not reproduce this error. What version of antlr-2.* do you have installed and does recompiling antlr-2.* help? Thanks, Markus I have antlr-2.7.7 installed on condor and : root@condor:/usr/src/linux(33)# qlist -Iv antlr dev-java/ant-antlr-1.7.1-r1 dev-java/antlr-2.7.7 root@lynx:/usr/src/linux(20)# qlist -Iv antlr dev-java/ant-antlr-1.7.1-r1 dev-java/antlr-2.7.7 dev-java/antlr-3.1.3-r2 Even recompilation of antlr-2.7.7 does not help. I've had a closer look but I am still not sure why exactly this happens for you. It might be a problem with antlr, but without knowing more about the internals of antlr's C++ bindings I can't really tell. It might be worth pinging upstream to ask for advice. Best, Markus Any news? Where could I address this issue? Just head to http://gnudatalanguage.sourceforge.net/ and then the "support" link and ask them if they could have a look and maybe give us a hint what might be at fault. Best, Markus Same here with rc3 on x86... I sent a mail with the problem description to m_schellens@users.sourceforge.net. Hi there, I finally isolated the problem and found an easy workaround. The following is installed on my system: kohni ~ # la /usr/lib/libantlr.* -r--r--r-- 1 root root 516142 25. Feb 17:43 /usr/lib/libantlr.a lrwxrwxrwx 1 root root 13 22. Feb 15:05 /usr/lib/libantlr.so -> libantlr.so.4 lrwxrwxrwx 1 root root 17 22. Feb 15:05 /usr/lib/libantlr.so.4 -> libantlr.so.4.3.0 -rwxr-xr-x 1 root root 187688 22. Feb 15:05 /usr/lib/libantlr.so.4.3.0 kohni ~ #kohni ~ # la /usr/lib/libantlr.* -r--r--r-- 1 root root 516142 25. Feb 17:43 /usr/lib/libantlr.a lrwxrwxrwx 1 root root 13 22. Feb 15:05 /usr/lib/libantlr.so -> libantlr.so.4 lrwxrwxrwx 1 root root 17 22. Feb 15:05 /usr/lib/libantlr.so.4 -> libantlr.so.4.3.0 -rwxr-xr-x 1 root root 187688 22. Feb 15:05 /usr/lib/libantlr.so.4.3.0 kohni ~ # As I reinstalled antlr today, I was suprised by the the *so libs being installed earlier, so I had a closer look: kohni ~ # equery b /usr/lib/libantlr.a[ Searching for file(s) /usr/lib/libantlr.a in *... ] dev-java/antlr-2.7.7 (/usr/lib/libantlr.a) kohni ~ # equery b /usr/lib/libantlr.so [ Searching for file(s) /usr/lib/libantlr.so in *... ] kde-base/kdesdk-misc-4.3.5 (/usr/lib/libantlr.so -> libantlr.so.4) kohni ~ # kohni ~ # equery b /usr/lib/libantlr.a[ Searching for file(s) /usr/lib/libantlr.a in *... ] dev-java/antlr-2.7.7 (/usr/lib/libantlr.a) kohni ~ # equery b /usr/lib/libantlr.so [ Searching for file(s) /usr/lib/libantlr.so in *... ] kde-base/kdesdk-misc-4.3.5 (/usr/lib/libantlr.so -> libantlr.so.4) kohni ~ # Tada! The compile code of gdl is just using -lantlr, so the linker uses the kde-sdk library, and not antlr! Ad I just typed the last build command using /usr/lib/antlr.a instead of -lantlr, the build successfully finishes and I was able to install gdl (rc4, in this case). The fix then would be to patch the makefile... I can try to write a patch for that, if you want me to. :) Best regards Jan Created attachment 221213 [details, diff]
patch to make gdl work with kdesdk installed
This patch is a replacement for the current patch in portage and thatswhy called identically. Just overwrite the current patch will make install OK
Beware:
I can only test x86 and x86_64, and for that architectures it will work, since I hardcoded /usr/lib/libantlr.a in the makefile which is true for x86, and a symlink to /usr/lib64/libantlr.a on x86_64. I don't know, if that assumption is correct on other architectures.
(In reply to comment #10) > Created an attachment (id=221213) [details] > patch to make gdl work with kdesdk installed > > This patch is a replacement for the current patch in portage and thatswhy > called identically. Just overwrite the current patch will make install OK > > Beware: > I can only test x86 and x86_64, and for that architectures it will work, since > I hardcoded /usr/lib/libantlr.a in the makefile which is true for x86, and a > symlink to /usr/lib64/libantlr.a on x86_64. I don't know, if that assumption is > correct on other architectures. > Hi jan, Great work and thanks much for tracking this down. I've fixed this in the makefile patch. I'll try to get in touch with the antlr/kde folks since this is clearly not a good situation and is bound to cause trouble for other users as well. @Juergen: Could you please try the updated rc4 ebuild and see if it works for you. cheers, Markus *** Bug 306631 has been marked as a duplicate of this bug. *** I'm the original poster of Bug 306631 which has been marked as a duplicate to this one. My problem was solved by recompiling antlr-2.7.7 as suggested in comment #1 here. Thanks go to Markus. Seems to work now, at least on three computers. Great, thanks for testing! Closing this bug then ... Markus |