Closed Bug 35730 Opened 24 years ago Closed 24 years ago

cannot compile viewer_gtk due to -pthread not propagated

Categories

(SeaMonkey :: Build Config, defect, P3)

x86
FreeBSD
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: orb, Assigned: cls)

Details

From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; I; Linux 2.2.12 i386; Nav)
BuildID:    200004110800

While building mozilla-latest (13-april), compilation stops in
webshell/tests/viewer while linking viewer_gtk because the -pthread flag (as was
detected by configure) is not propagated to the compiler flags.

The command is

c++ -o viewer_gtk nsBaseDialog.o nsFindDialog.o nsXPBaseWindow.o
nsTableInspectorDialog.o nsImageInspectorDialog.o nsPrintSetupDialog.o
nsBrowserWindow.o nsEditorMode.o nsSetupRegistry.o nsThrobber.o nsViewerApp.o
nsWebCrawler.o nsWebBrowserChrome.o -L../../../dist/bin -L../../../dist/lib
-lviewer_gtk_s -lgtksuperwin ../../../dist/lib/libtimer_s.a
../../../dist/lib/libwidgetsupport_s.a -lraptorgfx -lmozjs -L../../../dist/bin
-lxpcom -ljsj -lplds4 -lplc4 -lnspr4 -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12
-lgdk12 -L/usr/local/lib -Wl,-E -lgmodule12 -lglib12 -lintl -lxpg4 -lXext -lX11
-lm -lutil -lm

There should be a -pthread in there, if corrected manually the build
continues and works as expected.


Reproducible: Always
Steps to Reproduce:
1. Get latest source
2. Compile with threads enabled on FreeBSD-4+


Actual Results:  Linker error due to missing pthread_* functions.

Expected Results:  Link with -pthread
The fix for this has just been checked in.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.