Closed
Bug 236695
Opened 22 years ago
Closed 22 years ago
nspr does not compile with --enable-user-pthreads
Categories
(NSPR :: NSPR, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: hubert, Assigned: wtc)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Epiphany/1.0.7
Build Identifier:
When I try to build nspr (4.4.1) using --enable-user-pthreads, compilation fails
on prlog.c. (May be the same as Bug 190531, or related to that bug.)
Reproducible: Always
Steps to Reproduce:
1. ./configure --with-mozilla --enable-user-pthreads
2. make
Actual Results:
...
gcc -o prlog.o -c -pipe -ansi -Wall -g -fno-inline -fPIC -UNDEBUG
-DDEBUG_root -DMOZILLA_CLIENT=1 -DDEBUG=1 -DXP_UNIX=1 -D_POSIX_SOURCE=1
-D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_LARGEFILE64_SOURCE=1
-DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -Di386=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1
-DFORCE_PR_LOG -DPTHREADS_USER -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_
-I/usr/local/home/hubert/documents/src/cluster/nspr-4.4.1/debian/tmp/usr/include/nspr
-I../../../pr/include -I../../../pr/include/private prlog.c
prlog.c: In function `PR_LogPrint':
prlog.c:445: warning: implicit declaration of function `_MD_CURRENT_THREAD'
prlog.c:445: warning: initialization makes pointer from integer without a cast
prlog.c:445: warning: implicit declaration of function `_MD_GET_INTSOFF'
prlog.c:445: warning: implicit declaration of function `_MD_SET_INTSOFF'
prlog.c:463: warning: comparison between pointer and integer
prlog.c:463: warning: implicit declaration of function `_MD_CURRENT_CPU'
prlog.c:463: error: invalid type argument of `->'
prlog.c:463: warning: passing arg 1 of `_PR_IntsOn' makes pointer from integer
without a cast
prlog.c: In function `PR_LogFlush':
prlog.c:470: warning: initialization makes pointer from integer without a cast
prlog.c:475: warning: comparison between pointer and integer
prlog.c:475: error: invalid type argument of `->'
prlog.c:475: warning: passing arg 1 of `_PR_IntsOn' makes pointer from integer
without a cast
make[4]: *** [prlog.o] Error 1
...
| Assignee | ||
Comment 1•22 years ago
|
||
The --enable-user-pthreads configure option is no
longer supported. (It was only supported on HP-UX
and AIX before and was never ported to Linux.)
You should configure NSPR without any thread-related
options on Linux. It'll default to using pthreads.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 2•22 years ago
|
||
Thanks for the info. In that case, IMHO, that option should be removed from
configure, or at the very least, it should output an error/warning message.
You need to log in
before you can comment on or make changes to this bug.
Description
•