Re: Comipled NSPR for SunOS 5.10

Julien R Pierre - Sun Microsystems <[email protected]> Mon, 10 Aug 2009 15:12:21 -0700
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
I think there is something wrong with the  host system / target / build 
type detection on your system. configure worked just fine for me with 
gcc, using the gcc from /usr/sfw/lib . There may be something wrong with 
your environment.


NB wrote:
> Hallo,
> 
> Can I download complied version of NSPR for SunOS 5.10 ?
> 
> I tried to compile NSPR v4.8 with syntax  "CC=gcc CXX=g++ ./configure"
> to overcome the errors of looking for CC compiler. It goes further and
> "gmake export" generates some libs but size not bigger than 30 kb.
> 
> Config.log reveals that there were some exceptions, how to fix it?
> 
> 
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:635: checking host system type
> configure:656: checking target system type
> configure:674: checking build system type
> configure:1071: checking for whoami
> configure:1889: checking for gcc
> configure:2002: checking whether the C compiler (gcc  ) works
> configure:2018: gcc -o conftest    conftest.c  1>&5
> configure:2044: checking whether the C compiler (gcc  ) is a cross-
> compiler
> configure:2049: checking whether we are using GNU C
> configure:2077: checking whether gcc accepts -g
> configure:2258: checking how to run the C preprocessor
> configure:2340: checking for ranlib
> configure:2372: checking for as
> configure:2413: checking for ar
> configure:2454: checking for ld
> configure:2495: checking for strip
> configure:2536: checking for windres
> configure:2604: checking for gcc -pipe support
> configure:2653: checking for visibility(hidden) attribute
> configure:2730: checking for perl5
> configure:5168: checking for dlopen in -ldl
> configure:5204: checking for dlfcn.h
> configure:5247: checking whether gcc needs -traditional
> configure:5295: checking for lchown
> configure:5295: checking for strerror
> configure:5403: checking for pthread_create in -lpthreads
> gcc -o dummy dummy.c  -Wall  -lpthreads
> ld: fatal: library -lpthreads: not found
> ld: fatal: File processing errors. No output written to dummy
> collect2: ld returned 1 exit status
> configure:5425: checking for pthread_create in -lpthread
> gcc -o dummy dummy.c  -Wall  -lpthread
> configure:5601: checking whether gcc accepts -pthread
> configure:5624: checking whether gcc accepts -pthreads
> 
> <<<<
> 
> Thanks in advance
> Naveen Bandhu


[jp96085@monstre]/net/monstre/export/home/julien/nss/bla/mozilla/nsprpub 
19 % setenv CC gcc
[jp96085@monstre]/net/monstre/export/home/julien/nss/bla/mozilla/nsprpub 
20 % setenv CXX g++
[jp96085@monstre]/net/monstre/export/home/julien/nss/bla/mozilla/nsprpub 
21 % which g++
/usr/sfw/bin/g++
[jp96085@monstre]/net/monstre/export/home/julien/nss/bla/mozilla/nsprpub 
22 % ./configure
creating cache ./config.cache
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking build system type... i386-pc-solaris2.10
checking for whoami... /usr/ucb/whoami
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for as... no
checking for ar... /usr/ccs/bin/ar
checking for ld... /usr/ccs/bin/ld
checking for strip... /usr/ccs/bin/strip
checking for windres... no
checking for gcc -pipe support... no
checking for visibility(hidden) attribute... no
checking for perl5... /tools/ns/bin/perl5
checking for dlopen in -ldl... yes
checking for dlfcn.h... yes
checking whether gcc needs -traditional... no
checking for lchown... yes
checking for strerror... yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... no
checking whether gcc accepts -pthreads... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config/Makefile
creating config/autoconf.mk
creating config/nsprincl.mk
creating config/nsprincl.sh
creating config/nspr-config
creating lib/Makefile
creating lib/ds/Makefile
creating lib/libc/Makefile
creating lib/libc/include/Makefile
creating lib/libc/src/Makefile
creating lib/tests/Makefile
creating pkg/Makefile
creating pkg/linux/Makefile
creating pkg/solaris/Makefile
creating pkg/solaris/SUNWpr/Makefile
creating pkg/solaris/SUNWprd/Makefile
creating pr/Makefile
creating pr/include/Makefile
creating pr/include/md/Makefile
creating pr/include/obsolete/Makefile
creating pr/include/private/Makefile
creating pr/src/Makefile
creating pr/src/io/Makefile
creating pr/src/linking/Makefile
creating pr/src/malloc/Makefile
creating pr/src/md/Makefile
creating pr/src/md/unix/Makefile
creating pr/src/memory/Makefile
creating pr/src/misc/Makefile
creating pr/src/threads/Makefile
creating pr/tests/Makefile
creating pr/tests/dll/Makefile
creating pr/src/pthreads/Makefile