Re: NSPR build

Julien R Pierre - Sun Microsystems <[email protected]> Thu, 04 Jun 2009 17:14:14 -0700
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
Vinu,

Yes, /usr/sfw/bin was added in Solaris 10 .
Solaris 8 is quite old - it was released in February 2000. While the EOL 
date is March 2012, I would strongly recommend you use something newer, 
if you have the option.

I suspect there is a problem with the gcc package on www.sunfreeware.com 
. These are not officially supported bits.

prerrortable.c doesn't even make any printf calls. nm on prerrortable.o 
in my build doesn't show any symbol like the __eprintf that you are 
missing. I don't know why the compiler would add this dependency in your 
build.

Still, you may want to search all the .a's that come with your gcc 
installation, and see if you find one that contains the __eprintf symbol.


FYI, I did a google search on __eprintf and found this :
http://newsgroups.derkeiler.com/Archive/Comp/comp.sys.mac.programmer.help/2007-03/msg00172.html

Apparently, this symbol is used by assert.h , and is supposed to be in 
libgcc.a . See if that matches with your system. Is it possible you are 
linking against the wrong libgcc.a ?

You may also try to build optimized (set BUILD_OPT=1) and see if that 
builds.

If you can't figure out the problem, I would strongly urge you to switch 
to an officially supported compiler. The Studio 12 compiler works on 
Solaris 8 Sparc 32 bits. We do our official builds of NSPR/NSS with this 
compiler on Solaris 8 for SPARC.

VinuT wrote:
> Hi,
> 
> 
> 
> I am using Solaris OS 8 i.e SunOS 5.8
> 
> And gcc is 3.4.6(I got the binary package from www.sunfreeware.com for 
> Sparc systems).
> 
> 
> 
> I installed gcc using pkgadd.
> 
> 
> 
> I am using Solaris 32 bit kernel and not the 64 bit sparcv9 kernel.
> 
> 
> 
> Also there is no /usr/sfw directory on my system.
> 
> 
> 
> Thanks
> 
> Vinu
> 
> "Julien R Pierre - Sun Microsystems" 
> <[email protected]> wrote in message 
> news:[email protected]...
>> Vinu,
>>
>> What version of Solaris and gcc do you use ?
>>
>> I was able to build NSPR with gcc just fine using the instructions 
>> provided by Wan-Teh.
>>
>> I am using Solaris 10 x64, with gcc 3.4.3 from /usr/sfw/bin . 
>