I managed to simplify my command line to
make CC=gcc LD=gcc -f unix/Makefile bsd which suggests that info-zip is missing a bsd_gcc target but I include the errors from other attempts for completeness:
quote:
We'd need to know what the problems or error messages were produced
for the building or linking of unzip.
make gcc
gcc -c -O3 -I. unzip.c
In file included from unzpriv.h:1825,
from unzip.h:654,
from unzip.c:64:
globals.h:259: error: field `statbuf' has incomplete type make sysv_gcc
gcc -c -O2 -I. -DUNIX -DSYSV fileio.c
fileio.c: In function `dos_to_unix_time':
fileio.c:1758: error: `timezone' undeclared (first use in this function)
fileio.c:1758: error: (Each undeclared identifier is reported only once
fileio.c:1758: error: for each function it appears in.) make bsd
cc -o unzip unzip.o crc32.o crctab.o crypt.o envargs.o explode.o extract.o
fileio.o globals.o inflate.o list.o match.o process.o ttyio.o unreduce.o
unshrink.o zipinfo.o unix.o -s
cc: unknown file extension in '-s'.
quote:
Generally speaking the
FAQ entries for Developers is a good place to start.
The same information in FAQ 4.02 can be applied. So using "-D_ALL_SOURCE"
is good for helping prototypes be exposed. Adding "-I/usr/local/include"
and "-L /usr/local/lib" usually is helpful as well.
Except I already pointed out that unzip doesn't provide a configure script.
|