Client build fails on SCO_SV (i386)
Hi,
at my company we have some old or unusual platforms, such as SCO_SV or Sinix.
Here I'm trying to build the hobbit client out of 4.2-beta (snapshot 2006-07-04) on this kind of environment :
SCO_SV 3.2 5.0.5 i386 GNU Make version 3.75, by Richard Stallman and Roland McGrath. GCC 2.95.1 and the native cc.
The configure runs well, but when building with gcc I get :
gcc -g -O -D_REENTRANT -Dgeneric -I. -I/usr2/local/hobbit/cvf/include -DCLIENTONLY=1 -I. -I../include -c errormsg.c -o errormsg.o
errormsg.c: In function redirect_cgilog': errormsg.c:159: PATH_MAX' undeclared (first use in this function)
errormsg.c:159: (Each undeclared identifier is reported only once
errormsg.c:159: for each function it appears in.)
gmake[1]: *** [errormsg.o] Error 1
gmake[1]: Leaving directory `/usr2/local/hobbit/cvf/lib'
gmake: *** [lib-client] Error 2
and when building with cc I get :
"/usr2/local/hobbit/cvf/include/../lib/misc.h", line 39: error: invalid type combination If I change the type from "long long" to "long", it then builds up to the exact same point as gcc.
If anyone has some clue about this...
Regards,
-- Charles Goyard - cgoyard at cvf.fr - (+33) 1 45 38 01 31
On Wed, Jul 19, 2006 at 03:04:51PM +0200, Charles Goyard wrote:
Here I'm trying to build the hobbit client out of 4.2-beta (snapshot 2006-07-04) on this kind of environment :
SCO_SV 3.2 5.0.5 i386 GNU Make version 3.75, by Richard Stallman and Roland McGrath. GCC 2.95.1 and the native cc.
The configure runs well, but when building with gcc I get :
gcc -g -O -D_REENTRANT -Dgeneric -I. -I/usr2/local/hobbit/cvf/include -DCLIENTONLY=1 -I. -I../include -c errormsg.c -o errormsg.o errormsg.c: In function
redirect_cgilog': errormsg.c:159:PATH_MAX' undeclared (first use in this function)
I though PATH_MAX was a fairly standard definition, but it appears that it is not defined everywhere. I'll add a check for this to the configure script, and make sure it gets defined if there is no standard definition available for it. Try the attached patch (run a "make clean" before re-building the client).
The native cc command on this platform appears not to support the C99 standard. Hobbit uses the "long long" datatype for a few things; this is standard in C99 which gcc supports. So I'd recommend using that.
Regards, Henrik
participants (2)
-
cgoyard@cvf.fr
-
henrik@hswn.dk