bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't compile zdevcal.c


From: Jack Angel
Subject: can't compile zdevcal.c
Date: Thu, 06 Sep 2001 21:24:54 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801

I try to compile gs-7.0. Platform is slackware linux 8.0 (kernel 2.4.9). I have gcc-2.95.3 installed. I unpack ghostscript-7.0, zlib, libpng and jpeglib and copy them where the manual says. I copy src/unix-gcc.mak to Makefile. Then I run make. It works for some time, then outputs the following:

gcc `cat ./obj/cc.tr` -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wtraditional -fno-builtin -fno-common -I./src -I./obj -I./obj -I./src -o ./obj/zdevcal.o -c ./src/zdevcal.c
./src/zdevcal.c: In function `calendar_get_params':
./src/zdevcal.c:47: storage size of `ltime' isn't known
./src/zdevcal.c:49: dereferencing pointer to incomplete type
./src/zdevcal.c:49: initializer element is not constant
./src/zdevcal.c:49: (near initialization for `items[0].offset')
./src/zdevcal.c:50: dereferencing pointer to incomplete type
./src/zdevcal.c:50: initializer element is not constant
./src/zdevcal.c:50: (near initialization for `items[1].offset')
./src/zdevcal.c:51: dereferencing pointer to incomplete type
./src/zdevcal.c:51: initializer element is not constant
./src/zdevcal.c:51: (near initialization for `items[2].offset')
./src/zdevcal.c:52: dereferencing pointer to incomplete type
./src/zdevcal.c:52: initializer element is not constant
./src/zdevcal.c:52: (near initialization for `items[3].offset')
./src/zdevcal.c:53: dereferencing pointer to incomplete type
./src/zdevcal.c:53: initializer element is not constant
./src/zdevcal.c:53: (near initialization for `items[4].offset')
./src/zdevcal.c:54: dereferencing pointer to incomplete type
./src/zdevcal.c:54: initializer element is not constant
./src/zdevcal.c:54: (near initialization for `items[5].offset')
./src/zdevcal.c:55: dereferencing pointer to incomplete type
./src/zdevcal.c:55: initializer element is not constant
./src/zdevcal.c:55: (near initialization for `items[6].offset')
./src/zdevcal.c:60: warning: implicit declaration of function `time'
./src/zdevcal.c:60: warning: implicit declaration of function `localtime'
./src/zdevcal.c:60: warning: assignment makes pointer from integer without a cast
./src/zdevcal.c:65: dereferencing pointer to incomplete type
./src/zdevcal.c:47: warning: unused variable `ltime'
make: *** [obj/zdevcal.o] Error 1

I also tried gcc-3.0, with the same outcome. What's wrong? Maybe I lack some libraries?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]