your gnu stuff is busted, either try to grab gcc + binutils
off companion cd or some Sun freeware sites or try building
with Sun Studio or try bootstrap gnu tools from the source.
Mike Yue wrote:
My environment:
$uname -a
SunOS unknown 5.10 Generic sun4u sparc SUNW,Ultra-5_10
Compiler:
$gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
I downloaded The Mozilla LDAP C SDK cvs package. When I tried to proceed
the first step:
1. cd mozilla/security/nss
2. gmake nss_build_all
The compiler got error like below:
gcc -shared -Wl,-h,libnspr4.so,-z,combreloc,-z,defs
-Wl,-f,\$ORIGIN/cpu/\$ISALIST/libnspr_flt4.so -o libnspr4.so
-Wl,-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/./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/./prolock.o misc/./prrng.o misc/./prsystem.o misc/./prthinfo.o
misc/./prtpool.o misc/./prtrace.o misc/./prtime.o malloc/./prmalloc.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.o -lpthread
-lthread -lposix4 -lsocket -lnsl -ldl -lc
ld: fatal: relocation error: R_SPARC_32: file md/unix/./os_SunOS.o:
symbol <unknown>: offset 0xfe6b75b9 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file md/unix/./os_SunOS.o:
symbol <unknown>: offset 0xfe6b75bf is non-aligned
ld: fatal: relocation error: R_SPARC_32: file md/unix/./os_SunOS.o:
symbol <unknown>: offset 0xfe6b75c3 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file md/unix/./os_SunOS.o:
symbol <unknown>: offset 0xfe6b75c7 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file md/unix/./os_SunOS.o:
symbol <unknown>: offset 0xfe6dc839 is non-aligned
ld: fatal: relocation error: R_SPARC_32: file md/unix/./os_SunOS.o:
symbol <unknown>: offset 0xfe6e571e is non-aligned
collect2: ld returned 1 exit status
gmake[3]: *** [libnspr4.so] Error 1
gmake[3]: Leaving directory
`/usr/local/src/cvs/mozilla/nsprpub/SunOS5.10_DBG.OBJ/pr/src'
gmake[2]: *** [export] Error 2
gmake[2]: Leaving directory
`/usr/local/src/cvs/mozilla/nsprpub/SunOS5.10_DBG.OBJ/pr'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory
`/usr/local/src/cvs/mozilla/nsprpub/SunOS5.10_DBG.OBJ'
gmake: *** [build_nspr] Error 2
Does anybody know what the wrong? How to fix it out?
Thanks
Mike
_______________________________________________
mozilla-directory mailing list
mozilla-directory@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-directory