Building NSS 3.32.1 on Solaris

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Building NSS 3.32.1 on Solaris

cryptonewbie
Hello

we are running into build error while building NSS on Solaris.

1) We have downloaded the nss-3.32.1-with-nspr-4.16.tar.gz from mozilla
site, unzipped it ( /nss-3.32.1/nss & /nss-3.32.1/nspr ).

*2) Oracle Developer Studio 12.5 + 12.5-1.0.1.0 update*  is the default
C/C++  compiler that's being used on the below machine that we are trying
to build on.

        HOST            = cysuns32
        PLATFORM        = sparc
        MODEL           = SPARC T4-1
        PROCESSORS      =       64
        EFFECTIVE CPUs  = 512
        TOTAL MEMORY    = 32.25 GB

        OSVERSION       = SUN:Solaris 11.3 SPARC
        KERNEL PATCH    = 11.3

3) Set below environment variables:

*export PATH=/usr/ccs/bin:/usr/sfw/bin:/opt/developerstudio12.5/bin:$PATH*
*export CFLAGS=-m64*
*export CXX=CC*
*export CC=cc*
*export  BUILD_OPT=1*
*export  USE_64=1*



4) Used the bash shell
5) cd nss (  cd /nss-3.32.1/nss )
6) gmake nss_build_all

Build Error:
....
gmake build
gmake[4]: Entering directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
rm -f libnspr4.so
cc -xarch=v9 -G -h libnspr4.so -z combreloc -z defs -z ignore -Bdirect -o
libnspr4.so -M ./nsprmap.sun ./prvrsion.o io/./prfdcach.o io/./prmwait.o
io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o
io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o
threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o
linking/./prlink.o malloc/./prmalloc.o malloc/./prmem.o md/./prosdep.o
memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o
misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o
misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o
misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o
misc/./prnetdb.o misc/./praton.o misc/./prolock.o misc/./prrng.o
misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o
misc/./prtime.o pthreads/./ptsynch.o pthreads/./ptio.o
pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o
md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o
md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./solaris.o
md/unix/./os_SunOS_sparcv9.o    -lpthread -lposix4 -lsocket -lnsl -ldl -lc
cc: Warning: -xarch=v9 is deprecated, use -m64 -xarch=sparc instead
Undefined                       first referenced
 symbol                             in file
PR_Stat                             ./nsprmap.sun
ld: fatal: symbol referencing errors
gmake[4]: *** [libnspr4.so] Error 2
gmake[4]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ'
gmake: *** [build_nspr] Error 2

Any help greatly appreciated..

Thanks
Usha
_______________________________________________
dev-security mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-security
Reply | Threaded
Open this post in threaded view
|

Re: Building NSS 3.32.1 on Solaris

Mozilla - Security mailing list
Hi Usha,

[hidden email] is a better mailing list for NSS questions.

On Wed, May 16, 2018 at 2:02 PM, Usha Nayak <[hidden email]> wrote:
> Hello
>
> we are running into build error while building NSS on Solaris.
>
[... snipped ...]

>
> Build Error:
> ....
> gmake build
> gmake[4]: Entering directory `/nss-3.32.1/nspr/SunOS5.11_64_OPT.OBJ/pr/src'
> rm -f libnspr4.so
> cc -xarch=v9 -G -h libnspr4.so -z combreloc -z defs -z ignore -Bdirect -o
> libnspr4.so -M ./nsprmap.sun ./prvrsion.o io/./prfdcach.o io/./prmwait.o
> io/./prmapopt.o io/./priometh.o io/./pripv6.o io/./prlayer.o io/./prlog.o
> io/./prmmap.o io/./prpolevt.o io/./prprf.o io/./prscanf.o io/./prstdio.o
> threads/./prcmon.o threads/./prrwlock.o threads/./prtpd.o
> linking/./prlink.o malloc/./prmalloc.o malloc/./prmem.o md/./prosdep.o
> memory/./prshm.o memory/./prshma.o memory/./prseg.o misc/./pralarm.o
> misc/./pratom.o misc/./prcountr.o misc/./prdtoa.o misc/./prenv.o
> misc/./prerr.o misc/./prerror.o misc/./prerrortable.o misc/./prinit.o
> misc/./prinrval.o misc/./pripc.o misc/./prlog2.o misc/./prlong.o
> misc/./prnetdb.o misc/./praton.o misc/./prolock.o misc/./prrng.o
> misc/./prsystem.o misc/./prthinfo.o misc/./prtpool.o misc/./prtrace.o
> misc/./prtime.o pthreads/./ptsynch.o pthreads/./ptio.o
> pthreads/./ptthread.o pthreads/./ptmisc.o md/unix/./unix.o
> md/unix/./unix_errors.o md/unix/./uxproces.o md/unix/./uxrng.o
> md/unix/./uxshm.o md/unix/./uxwrap.o md/unix/./solaris.o
> md/unix/./os_SunOS_sparcv9.o    -lpthread -lposix4 -lsocket -lnsl -ldl -lc
> cc: Warning: -xarch=v9 is deprecated, use -m64 -xarch=sparc instead
> Undefined                       first referenced
>  symbol                             in file
> PR_Stat                             ./nsprmap.sun
> ld: fatal: symbol referencing errors

I think this is because the NSS build system compiles NSPR with
-DNO_NSPR_10_SUPPORT.

Please try editing nspr/pr/src/pthreads/ptio.c and deleting the
#ifndef NO_NSPR_10_SUPPORT and #endif around PR_Stat().

Wan-Teh
_______________________________________________
dev-security mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-security