If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

ActionMonkey: Linux doesn't include -lpthread and -ldl

RESOLVED FIXED

Status

()

Core
JavaScript Engine
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: Anthony Nemitz, Assigned: Anthony Nemitz)

Tracking

unspecified
x86
Linux
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

10 years ago
g++ -o Linux_All_DBG.OBJ/js -Wall -Wno-format -MMD -fno-rtti -DGCC_OPT_BUG -g -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_S
OURCE -DHAVE_LOCALTIME_R -DUNIX -DAVMPLUS_UNIX -DUSE_MMAP -DX86_LINUX -DDEBUG -DDEBUG_anemitz -DSOFT_ASSERTS -D__DEBUGGING__
-DEDITLINE -ILinux_All_DBG.OBJ -I../tamarin/MMgc Linux_All_DBG.OBJ/js.o Linux_All_DBG.OBJ/libjs.a -lm -L../tamarin/Linux_A
ll_DBG.OBJ -lMMgc \
editline/Linux_All_DBG.OBJ/libedit.a
../tamarin/Linux_All_DBG.OBJ/libMMgc.a(GC.o): In function `MMgc::GC::GetStackTop() const':
/home/anemitz/moz/am_3/js/tamarin/MMgc/GC.cpp:1477: undefined reference to `pthread_key_create'
/home/anemitz/moz/am_3/js/tamarin/MMgc/GC.cpp:1481: undefined reference to `pthread_getspecific'
/home/anemitz/moz/am_3/js/tamarin/MMgc/GC.cpp:1494: undefined reference to `pthread_getattr_np'
/home/anemitz/moz/am_3/js/tamarin/MMgc/GC.cpp:1504: undefined reference to `pthread_attr_getstack'
/home/anemitz/moz/am_3/js/tamarin/MMgc/GC.cpp:1511: undefined reference to `pthread_setspecific'
../tamarin/Linux_All_DBG.OBJ/libMMgc.a(GCHeapUnix.o): In function `MMgc::GetInfoFromPC(int, char*, int)':
/home/anemitz/moz/am_3/js/tamarin/MMgc/GCHeapUnix.cpp:309: undefined reference to `dladdr'
(Assignee)

Comment 1

10 years ago
Created attachment 274674 [details] [diff] [review]
Added lpthreads and ldl
Attachment #274674 - Flags: review?(jorendorff)
(Assignee)

Comment 2

10 years ago
Comment on attachment 274674 [details] [diff] [review]
Added lpthreads and ldl

diff -r f88d0888d16f js/src/config/Linux_All.mk
--- a/js/src/config/Linux_All.mk        Tue Jul 31 09:57:53 2007 -0400
+++ b/js/src/config/Linux_All.mk        Tue Jul 31 14:18:33 2007 -0700
@@ -77,7 +77,8 @@ endif

 GFX_ARCH = x

-OS_LIBS = -lm -lc
+OS_LIBS = -lm -lc
+OS_PROG_LIBS = -lpthread -ldl

 ASFLAGS += -x assembler-with-cpp
(Assignee)

Updated

10 years ago
Attachment #274674 - Attachment is obsolete: true
Attachment #274674 - Flags: review?(jorendorff)
(Assignee)

Comment 3

10 years ago
Created attachment 274698 [details] [diff] [review]
added OS_PROG_LIBS
Attachment #274698 - Flags: review?(jorendorff)
Comment on attachment 274698 [details] [diff] [review]
added OS_PROG_LIBS

Looks fine, I'll check it in tomorrow morning (01 Aug 2007).

Btw, I wonder why Mercurial generated a diff for a line that didn't actually change.
Attachment #274698 - Flags: review?(jorendorff) → review+
(Assignee)

Updated

10 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED

Updated

10 years ago
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.