bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/10238] Gold linker does not resolve symbols using indirect dep


From: mjw at redhat dot com
Subject: [Bug gold/10238] Gold linker does not resolve symbols using indirect dependencies
Date: 25 Jul 2009 09:16:40 -0000

------- Additional Comments From mjw at redhat dot com  2009-07-25 09:16 -------
I also hit this and I must admit it is slightly confusing at first. We were
linking -lnss3 which works fine with GNU ld, but with GNU gold you suddenly get
lots of unresolved references to PR_ functions. If you know about this
bug/feature then it is easy to figure out you need to add -lnsrp4 explicitly.
But otherwise (especially in a large final link command) it is a bit mystifying
why the "replacement linker" didn't work.

g++ -Wall -Werror  -g -O2 -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2   
-o stap stap-main.o stap-parse.o stap-staptree.o stap-elaborate.o
stap-translate.o stap-tapsets.o stap-buildrun.o stap-loc2c.o stap-hash.o
stap-mdfour.o stap-cache.o stap-util.o stap-coveragedb.o stap-dwarf_wrappers.o
stap-tapset-been.o stap-tapset-procfs.o stap-tapset-timers.o
stap-tapset-perfmon.o stap-tapset-mark.o stap-tapset-itrace.o
stap-tapset-utrace.o stap-task_finder.o stap-dwflpp.o stap-rpm_finder.o
stap-modsign.o stap-nsscommon.o -Wl,--start-group -ldw -lebl -Wl,--end-group
-lelf -lsqlite3 -lrpm -lnss3 -ldl
/usr/local/binutils/bin/ld: stap-modsign.o: in function
check_cert_db_path(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&):/home/mark/src/systemtap/modsign.cxx:309: error:
undefined reference to 'PR_GetFileInfo'
[... and lots and lots more ...]

Spot the missing -lnspr4 in the above :)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10238

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]