Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

--enable-nspr-threads option

0 views
Skip to first unread message

Jon Leighton

unread,
Jun 9, 2009, 11:42:40 PM6/9/09
to
Is the --enable-nspr-threads configure option only supported on certain
platforms? NSPR 4.8 seems to build ok with this option on FreeBSD 7.2,
but the build fails when I try it on Mac OS X 10.5.6 (Intel), linux
2.6.28, and OpenSolaris 5.11. The errors I get when building on Mac OS
X 10.5.6 are shown below. Thanks for any help.

- Jon


.
.
.
gcc -o prlog.o -c -Wall -fno-common -g -fPIC -UNDEBUG -DDEBUG_jon
-DDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1
-DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG
-D_NSPR_BUILD_ -I../../../dist/include/nspr
-I../../../../nsprpub/pr/include
-I../../../../nsprpub/pr/include/private
../../../../nsprpub/pr/src/io/prlog.c
../../../../nsprpub/pr/src/io/prlog.c: In function �PR_LogPrint�:
../../../../nsprpub/pr/src/io/prlog.c:489: warning: implicit declaration
of function �_MD_CURRENT_THREAD�
../../../../nsprpub/pr/src/io/prlog.c:489: warning: initialization makes
pointer from integer without a cast
../../../../nsprpub/pr/src/io/prlog.c:489: warning: implicit declaration
of function �_MD_GET_INTSOFF�
../../../../nsprpub/pr/src/io/prlog.c:489: warning: implicit declaration
of function �_MD_SET_INTSOFF�
../../../../nsprpub/pr/src/io/prlog.c:507: warning: comparison between
pointer and integer
../../../../nsprpub/pr/src/io/prlog.c:507: warning: implicit declaration
of function �_MD_CURRENT_CPU�
../../../../nsprpub/pr/src/io/prlog.c:507: error: invalid type argument
of �->�
../../../../nsprpub/pr/src/io/prlog.c:507: warning: passing argument 1
of �_PR_IntsOn� makes pointer from integer without a cast
../../../../nsprpub/pr/src/io/prlog.c:515: warning: initialization makes
pointer from integer without a cast
../../../../nsprpub/pr/src/io/prlog.c:528: warning: comparison between
pointer and integer
../../../../nsprpub/pr/src/io/prlog.c:528: error: invalid type argument
of �->�
../../../../nsprpub/pr/src/io/prlog.c:528: warning: passing argument 1
of �_PR_IntsOn� makes pointer from integer without a cast
../../../../nsprpub/pr/src/io/prlog.c: In function �PR_LogFlush�:
../../../../nsprpub/pr/src/io/prlog.c:536: warning: initialization makes
pointer from integer without a cast
../../../../nsprpub/pr/src/io/prlog.c:541: warning: comparison between
pointer and integer
../../../../nsprpub/pr/src/io/prlog.c:541: error: invalid type argument
of �->�
../../../../nsprpub/pr/src/io/prlog.c:541: warning: passing argument 1
of �_PR_IntsOn� makes pointer from integer without a cast
make[3]: *** [prlog.o] Error 1
make[2]: *** [export] Error 2
make[1]: *** [export] Error 2
make: *** [export] Error 2

Wan-Teh Chang

unread,
Jun 10, 2009, 12:03:12 PM6/10/09
to leig...@cis.udel.edu, dev-te...@lists.mozilla.org
On Tue, Jun 9, 2009 at 8:42 PM, Jon Leighton<leig...@cis.udel.edu> wrote:
> Is the --enable-nspr-threads configure option only supported on certain
> platforms?  NSPR 4.8 seems to build ok with this option on FreeBSD 7.2, but
> the build fails when I try it on Mac OS X 10.5.6 (Intel), linux 2.6.28, and
> OpenSolaris 5.11.

Yes, the --enable-nspr-threads configure option is only supported
on certain platforms. This configure option means "use NSPR's
own user-level thread library". That library was written before
pthreads became widely available. Once pthreads became widely
available, we stopped porting NSPR's user-level thread library to
new platforms.

For your SCTP work, you don't need to support the --enable-nspr-threads
configure option.

Wan-Teh

Jonathan Leighton

unread,
Jun 10, 2009, 12:11:25 PM6/10/09
to

Thanks - that's exactly what I needed to know (and was hoping to hear).

- Jon

0 new messages