Closed Bug 12275 Opened 26 years ago Closed 26 years ago

Seamonkey_M9_BRANCH build broken on FreeBSD (and other Unix?)

Categories

(Core :: Networking, defect, P3)

x86
FreeBSD
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: lennox, Assigned: gagan)

Details

Building the M9 Branch fails on FreeBSD 3.2, compiling with egcs-1.1.2, as follows: cd test; gmake install gmake[2]: Entering directory `/home/llennox/Mozilla/mozilla/netwerk/test' eg++ -o TestSocketIO.o -c -fno-rtti -fno-exceptions -Wall -Wconversion -Wpoint er-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -Wshadow -Wp,-MD,.deps/TestSocketIO.pp -include ../../config-defs.h -pthread -g -fPIC - DDEBUG -UNDEBUG -DDEBUG_llennox -DTRACING -DOSTYPE=\"FreeBSD3\" -DNECKO -DUSE_NS REG -I../../dist/include -I../../dist/./include -I../../dist/include -I../../in clude -I../../dist/./public/jpeg -I../../dist/./public/png -I/usr/X11R6/inclu de TestSocketIO.cpp TestSocketIO.cpp: In function `int main(int, char **)': TestSocketIO.cpp:295: warning: long int format, int arg (arg 2) eg++ -o TestSocketIO TestSocketIO.o -Wall -Wshadow -Wpointer-arith -Wcast-align -pthread -g -L../../dist/./bin -L../../dist/./lib -lmozreg -lmozjs -lxpcom -lse cfree -lmozutil -lxpcom -lneckoutil_s -lxp -ljsurl -lmozdbm -lplds3 -lplc3 -lns pr3 -lintl -lutil -lm /usr/libexec/elf/ld: cannot open -ljsurl: No such file or directory collect2: ld returned 1 exit status gmake[2]: *** [TestSocketIO] Error 1 gmake[2]: Leaving directory `/home/llennox/Mozilla/mozilla/netwerk/test' gmake[1]: *** [install] Error 2 gmake[1]: Leaving directory `/home/llennox/Mozilla/mozilla/netwerk' gmake: *** [install] Error 2 The problem seems to be that libjsurl.a/.so are being installed as components, but TestSocketIO wants to link to them as ordinary libraries. Does this really work on Linux? I'm astonished.
After some more experimentation, it seems that blaming this on necko is incorrect; a number of other tests, *and* viewer and apprunner, try to link in -ljsurl. Configuring with --disable-tests, and removing -ljsurl from the viewer and apprunner Makefiles, means I can build succesfully.
Summary: Seamonkey_M9_BRANCH build broken on FreeBSD → Seamonkey_M9_BRANCH build broken on FreeBSD (and other Unix?)
Added brendan and ramiro as Cc: contacts. It looks like Brendan's change to split out jsurl caused this to break, whereas Ramiro's fix on the mainline to pull out -ljsurl from a whole bunch of Makefile.in's is what needs to be rolled into the M9 branch.
brendan, what a very bad thing to do...
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Leaf's changes of today on the M9 branch fixed this. The M9 branch now builds sucessfully on FreeBSD. (It segfaults when running, but that'll be a separate bug report.)
Status: RESOLVED → VERIFIED
marking verified per reporters comments
Bulk move of all Necko (to be deleted component) bugs to new Networking component.
You need to log in before you can comment on or make changes to this bug.