NSPR gives me a compile error on Linux.

CLOSED FIXED

Status

NSPR
NSPR
P3
major
CLOSED FIXED
19 years ago
19 years ago

People

(Reporter: Mo DeJong, Assigned: Wan-Teh Chang)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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

19 years ago
Try 'USE_PTHREADS=' instead of
'USE_PTHREADS=0'.
(Reporter)

Comment 2

19 years ago
I tried that with no luck. The same error is created.
(Assignee)

Comment 3

19 years ago
OK.  Try either "MOZILLA_CLIENT=1' or
'CLASSIC_NSPR=1'.
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 4

19 years ago
Accepted the bug.

Did either 'CLASSIC_NSPR=1' or 'MOZILLA_CLIENT'
make your compilation error go away?
(Reporter)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Reporter)

Comment 5

19 years ago
Yes, adding CLASSIC_NSPR=1 fixed the compile problem.
(Assignee)

Updated

19 years ago
Status: RESOLVED → CLOSED
(Assignee)

Comment 6

19 years ago
I also verified that CLASSIC_NSPR=1
fixed the problem on a local machine.

Closed the bug.

Comment 7

19 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.