Closed Bug 81881 Opened 23 years ago Closed 23 years ago

jprof fails to link, undefined symbol _r_debug

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcafee, Assigned: mcafee)

References

Details

(Keywords: perf)

linux, rh62, this used to build ok.

c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth
-pedantic -Wno-long-long -pipe -pthread -O  -DNDEBUG -DTRIMMED -shared -Wl,-h
-Wl,libjprof.so -Wl,-Bsymbolic -o libjprof.so -o libjprof.so libmalloc.o
libmalloc.o: In function `DumpAddressMap(void)':
libmalloc.o(.text+0xfe): undefined reference to `_r_debug'
collect2: ld returned 1 exit status
gmake: *** [libjprof.so] Error 1
Keywords: perf
hmm, libc change?  adding cls.
Got me.  Adding jlnance.
What are the configure options?  In particular is the lea allocator being used?
Hi Jim!  My configure options are as follows:

./configure --with-extensions=all --enable-optimize --disable-debug --enable-jpr
of --enable-eazel-profiler

not sure about lea allocator, but I think that's another option
I'm not using.
Keywords: nsbeta1-
OK I looked at this some more today.  The _r_debug is a symbol that is used to
interface between the dynamic loader and the debugger.  It looks like someone
has modified jprof to use this interface to get symbol names (ie, I did not do
it so I dont know exactly whats going on).  I found that if you remove the
-Wl,-Bsymbolic from the compile line that this error goes away.  I think that
may be a bug with binutils.  I know what -Bsymbolic does and I dont see whay it
would create unresolved symbols in a shared library.  Actually I dont see how
you can ever get unresolved symbols in a shared lib but I may need to think
about it some more.

In any even, as a short term workaround, just go into the directory and run the
command that failed by hand, removing the -Wl-Bsymbolic flag.  Then start the
build again and everything should be happy.  I am going to try and figure out a
long term fix
Depends on: 76710
-Bsymbolic has been removed from the build.  Marking fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.