Chet Ramey a écrit :

>> ...
Description:
bash 4.1 can't be compiled under Solaris 8 and Solaris 9, the
compilation stops at a vsnprintf redefinition error. This happens
because the vsnprintf native function is not detected as being standard
compliant (it returns -1 in case of overflow) by the configure script,
hence bash redefine the function at compile time.

Bash compiles and runs fine under Solaris 8 and Solaris 9 using gcc.  In
fact, I test on those platforms before release.  I don't have or use the
Sun C compiler.

Chet

Strange, I have the same error with gcc 4:

./mkbuiltins -D . printf.def
/opt/csw/gcc4/bin/gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DSOLARIS -I/opt/csw/include -O2 -pipe -mcpu=v8 printf.c || ( rm -f printf.c ; exit 1 )
./printf.def:175: error: conflicting types for 'vsnprintf'
gmake[3]: *** [printf.o] Error 1

and gcc 3:

./mkbuiltins -D . printf.def
/opt/csw/gcc3/bin/gcc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DSOLARIS -I/opt/csw/include -O2 -pipe -mcpu=v8 printf.c || ( rm -f printf.c ; exit 1 )
./printf.def:175: error: conflicting types for 'vsnprintf'
./printf.def:175: error: conflicting types for 'vsnprintf'
gmake[3]: *** [printf.o] Error 1


Maybe you could first send me the config.log/config.h generated on Solaris 8 so I can compare with mine ?

Yann



Reply via email to