Closed Bug 284678 Opened 20 years ago Closed 20 years ago

mozilla/xpfe/bootstrap/nsAppRunner.cpp:1730: undefined reference to `setupProfilingStuff()'

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mmokrejs, Assigned: chase)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b) Gecko/20050221
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b) Gecko/20050221

c++ -o mozilla-bin  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -pedantic -O0 -ggdb -fshort-wchar -pthread
-pipe  -DDEBUG -D_DEBUG -DDEBUG_root -DTRACING -g -fno-inline
-DWIDGET_DLL=\"libwidget_gtk.so\" -DGFXWIN_DLL=\"libgfx_gtk.so\"
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include  nsAppRunner.o showOSAlert.o nsSigHandlers.o
nsStackFrameUnix.o nsNativeAppSupportGtk.o nsNativeAppSupportBase.o           
-L../../dist/bin -L../../dist/lib    -L../../dist/bin -lxpcom -lxpcom_core 
-L../../dist/bin -lmozjs -L/scratch/mozilla/dist/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl   -ljprof -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lglib -ldl -lXi -lXext -lX11 -lm  -lX11  -ldl -lm      
nsAppRunner.o(.text+0x4510): In function `main':
/scratch/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1730: undefined reference to
`setupProfilingStuff()'
collect2: ld returned 1 exit status
gmake[2]: *** [mozilla-bin] Error 1
gmake[2]: Leaving directory `/scratch/mozilla/xpfe/bootstrap'


I configured with:

MOZ_DEBUG_FLAGS="-O0 -ggdb" CFLAGS="-O0 -ggdb" CXXFLAGS="-O0 -ggdb" ./configure
 --enable-debug --disable-optimize --enable-jprof --enable-debug-modules=all
--enable-debugger-info-modules --enable-application=suite
--disable-necko-disk-cache --enable-detect-webshell-leaks --enable-svg
--enable-svg-renderer-libart --enable-image-decoders=all --disable-composer
--with-qtdir=/usr/qt/3 --with-ft-prefix=/usr --disable-freetype2 --disable-xft

$ gcc --version
gcc (GCC) 3.4.3-20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0,
pie-8.7.7)
$ uname -a
Linux aquarius 2.4.30-pre1-bk5 #7 Sat Feb 19 22:35:05 CET 2005 i686 Intel(R)
Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
$

Reproducible: Always
Damm! I use current cvs, of course. ;)
Did you actually check out jprof?  Or just configure it and try to build it?
aquarius mozilla # find . -name jprof
./tools/jprof
./tools/jprof/jprof
./dist/include/jprof
./dist/bin/jprof
aquarius mozilla # cd ./tools/jprof
aquarius jprof # ls
CVS       Makefile.in  bfd.cpp  coff.cpp  elf.cpp  intcnt.cpp  intcnt.o 
jprofsig   leaky.h  split-profile.pl  strset.h  stub
Makefile  README.html  bfd.o    coff.o    elf.o    intcnt.h    jprof    
leaky.cpp  leaky.o  strset.cpp        strset.o
aquarius jprof # cvs update -dR
? stub
cvs update: Updating .
cvs update: Updating stub
cvs update: move away `stub/.cvsignore'; it is in the way
C stub/.cvsignore
cvs update: move away `stub/Makefile.in'; it is in the way
C stub/Makefile.in
cvs update: move away `stub/config.h'; it is in the way
C stub/config.h
cvs update: move away `stub/jprof.h'; it is in the way
C stub/jprof.h
cvs update: move away `stub/libmalloc.cpp'; it is in the way
C stub/libmalloc.cpp
cvs update: move away `stub/libmalloc.h'; it is in the way
C stub/libmalloc.h
aquarius jprof # 
Hmm... Odd.  That function is definitely defined in the jprof code...
WFM.  Verify that you are linking against the proper copy of libjprof.so (ie,
the one in the mozilla tree).  I was able to duplicate the error reported when I
added a dummy function declaration to jprof.h and called it from nsAppRunner.cpp.
Version: unspecified → Trunk
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.