I consistently get a failed build. Here's what I am doing:
CC="gcc"
CFLAGS="-O2"
LDFLAGS="-s"
MAKE="gmake"
./configure --prefix=/usr/local/pkg/opensp --disable-doc-build \
--enable-static --disable-shared --enable-http
gmake
[lots of normal-looking compile output...]
Here is the end of the build output...
mkdir .libs
g++ -g -O2 -s -o onsgmls nsgmls.o SgmlsEventHandler.o RastEventHandler.o StringSet.o nsgmls_inst.o ../lib/.libs/libosp.a /usr/local/pkg/gcc/lib/./libstdc++.a -L/home/pete/gcc/build/sparc-sun-solaris2.8/libstdc++-v3/src -L/home/pete/gcc/build/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -L/home/pete/gcc/build/gcc ../intl/libintl.a -lpthread -lnsl -lsocket
ld: elf error: file ../lib/.libs/libosp.a: elf_begin: Format error: archive fmag
ld: fatal: File processing errors. No output written to onsgmls
collect2: ld returned 1 exit status
gmake[3]: *** [onsgmls] Error 1
gmake[3]: Leaving directory `/export/data/builds/dan/OpenSP-1.5.2/nsgmls'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/export/data/builds/dan/OpenSP-1.5.2/nsgmls'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/data/builds/dan/OpenSP-1.5.2'
gmake: *** [all] Error 2
Output of uname...
$ uname -a
SunOS build1.dllstx09.us.to.gin.ntt.net 5.8 Generic_117350-41 sun4u sparc SUNW,UltraSPARC-IIi-Engine
I have also tried with the default values for static/shared. When I try that, I get so many pages of errors I can't even scroll back far enough to see where the failure happened ( > 10000 lines).
Logged In: YES
user_id=187419
Originator: YES
Problem turns to be that libintl.a is encapsulated within libosp.a. Problem can be fixed like so:
cd lib/.libs
mkdir tmp ; cd tmp
ar -x ../libosp.a
mv ../libosp.a ../libosp.a.old
rm libintl.a
ar -r ../libosp.a *
cd ../../..
make
Celine Outlet http://celineoutlet.v5s7.com MAGNIFIQUE - Lettre HYPER-RAPIDE - EXCELLENTE transaction
I really like these Miu Miu Handbags http://miumiuhandbags.v5s7.com. I bought them just before . Quite nice.