Closed
Bug 3949
Opened 26 years ago
Closed 26 years ago
NSPR gives me a compile error on Linux.
Categories
(NSPR :: NSPR, defect, P3)
Tracking
(Not tracked)
CLOSED
FIXED
People
(Reporter: dejong, Assigned: wtc)
Details
I tried to compile NSPR on an old linux box with egcs 1.1.1.
I could not compile the pthreads verison as this box does
not have the pthreads libs so I tried without pthreads
and I got this compiler error. This is the NSPR code from
the CVS as of March 4th 1999.
% make NS_USE_GCC=1 NO_MDUPDATE=1 USE_PTHREADS=0
DIST=${HOME}/neon/mozilla/install_nspr_linux NSDISTMODE=copy export
...
gcc -o Linux2.0.34_x86_PTH_DBG.OBJ/prlog.o -c -g -fPIC -ansi -Wall -pipe
-DLINUX -Dlinux -mno-486 -Di386 -D_POSIX_SOURCE -D_BSD_SOURCE -DHAVE_STRERROR
-D_XOPEN_SOURCE -DFORCE_PR_LOG -DXP_UNIX -DDEBUG -UNDEBUG -DDEBUG_dejong
-D_REENTRANT
-I/home/grad09/dejong/neon/mozilla/install_nspr_linux/include/private
-I/home/grad09/dejong/neon/mozilla/install_nspr_linux/include prlog.c
prlog.c: In function `PR_LogPrint':
prlog.c:420: warning: implicit declaration of function `_MD_CURRENT_THREAD'
prlog.c:420: warning: initialization makes pointer from integer without a cast
prlog.c:420: warning: implicit declaration of function `_MD_GET_INTSOFF'
prlog.c:420: warning: implicit declaration of function `_MD_SET_INTSOFF'
prlog.c:438: warning: comparison between pointer and integer
prlog.c:438: warning: implicit declaration of function `_MD_CURRENT_CPU'
prlog.c:438: invalid type argument of `->'
prlog.c:438: warning: passing arg 1 of `_PR_IntsOn' makes pointer from integer
without a cast
prlog.c: In function `PR_LogFlush':
prlog.c:447: warning: initialization makes pointer from integer without a cast
prlog.c:452: warning: comparison between pointer and integer
prlog.c:452: invalid type argument of `->'
prlog.c:452: warning: passing arg 1 of `_PR_IntsOn' makes pointer from integer
without a cast
make[3]: *** [Linux2.0.34_x86_PTH_DBG.OBJ/prlog.o] Error 1
make[3]: Leaving directory
`/project/neon/users/mo/mozilla/mozilla/nsprpub/pr/src/io'
make[2]: *** [export] Error 2
make[2]: Leaving directory
`/project/neon/users/mo/mozilla/mozilla/nsprpub/pr/src'
make[1]: *** [export] Error 2
make[1]: Leaving directory `/project/neon/users/mo/mozilla/mozilla/nsprpub/pr'
make: *** [export] Error 2
Assignee | ||
Comment 1•26 years ago
|
||
Try 'USE_PTHREADS=' instead of
'USE_PTHREADS=0'.
Assignee | ||
Comment 3•26 years ago
|
||
OK. Try either "MOZILLA_CLIENT=1' or
'CLASSIC_NSPR=1'.
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•26 years ago
|
||
Accepted the bug.
Did either 'CLASSIC_NSPR=1' or 'MOZILLA_CLIENT'
make your compilation error go away?
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•26 years ago
|
Status: RESOLVED → CLOSED
Assignee | ||
Comment 6•26 years ago
|
||
I also verified that CLASSIC_NSPR=1
fixed the problem on a local machine.
Closed the bug.
Comment 7•25 years ago
|
||
NSPR now has its own Bugzilla product. Moving this bug to the NSPR product.
You need to log in
before you can comment on or make changes to this bug.
Description
•