[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug? can't compile
From: |
Jack Angel |
Subject: |
bug? can't compile |
Date: |
Thu, 06 Sep 2001 21:29:39 +0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801 |
I have slackware linux 8.0 with kernel 2.4.9. Gcc 2.95.3 installed
(tried 3.0 too). Unpack all 4 tarballs. Copy libpng, zlib and jpeglib
into the appropriate directories as said in the install instructions.
Copy /src/unix-gcc.mak to Makefile. Run make. It works for a while, then
quits with messages :
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
What's wrong? Maybe I lack some libraries?
- bug? can't compile,
Jack Angel <=