LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Can't compile Zip2.3 (https://www.linuxquestions.org/questions/linux-software-2/cant-compile-zip2-3-a-50884/)

Obi Perrin 03-20-2003 03:08 PM

Can't compile Zip2.3
 
I've searched around google for this, as well as on these forums, but haven't had any lock.

It's the info-zip package available here: ftp://ftp.info-zip.org/pub/infozip/src/zip23.tar.gz

I gzip -d and tar -xvf it. Move into the source directory and do the following:

make -f unix/Makefile prefix=/usr generic_gcc

(I've also tried just generic when that didn't work. It failed as well.)

Here's the output:

gcc -c -O2 -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H fileio.c
fileio.c: In function `newname':
fileio.c:383: warning: assignment makes pointer from integer without a cast
fileio.c:452: warning: assignment makes pointer from integer without a cast
fileio.c: In function `tempname':
fileio.c:814: warning: assignment makes pointer from integer without a cast
fileio.c:850: warning: assignment makes pointer from integer without a cast
fileio.c: In function `fcopy':
fileio.c:879: warning: assignment makes pointer from integer without a cast
gcc -c -O2 -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H util.c
util.c: In function `envargs':
util.c:492: warning: assignment makes pointer from integer without a cast
gcc -c -O2 -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H globals.c
gcc -c -O2 -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H crypt.c
gcc -c -O2 -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H ttyio.c
gcc -c -O2 -I. -DUNIX -DNO_STRCHR -DNO_STRRCHR -DNO_STDLIB_H -DNO_STDDEF_H -DNO_UNISTD_H -DNO_FCNTL_H -DNO_STRING_H unix/unix.c
unix/unix.c:60: parse error before '*' token
unix/unix.c:95: parse error before "DIR"
unix/unix.c:95: warning: data definition has no type or storage class
unix/unix.c:98: parse error before '{' token
unix/unix.c:101: initializer element is not constant
unix/unix.c:101: warning: data definition has no type or storage class
unix/unix.c:102: parse error before "return"
unix/unix.c: In function `procname':
unix/unix.c:112: `DIR' undeclared (first use in this function)
unix/unix.c:112: (Each undeclared identifier is reported only once
unix/unix.c:112: for each function it appears in.)
unix/unix.c:159: warning: assignment makes pointer from integer without a cast
unix/unix.c:174: warning: assignment makes pointer from integer without a cast
unix/unix.c:179: warning: assignment makes pointer from integer without a cast
unix/unix.c: In function `ex2in':
unix/unix.c:243: warning: assignment makes pointer from integer without a cast
unix/unix.c: In function `in2ex':
unix/unix.c:269: warning: assignment makes pointer from integer without a cast
make[2]: *** [unix.o] Error 1
make[2]: Leaving directory `/home/perrin/downloads/zip-2.3'
make[1]: *** [generic] Error 2
make[1]: Leaving directory `/home/perrin/downloads/zip-2.3'
make: *** [generic_gcc] Error 2

Any ideas how I could fix this? Thanks.

Crashed_Again 03-20-2003 06:39 PM

Quote:

I gzip -d and tar -xvf it. Move into the source directory and do the following:

make -f unix/Makefile prefix=/usr generic_gcc
Is there a README or INSTALL file in the source directory? Is the make command the first thing you are supposed to do or do you have to configure first?

Obi Perrin 03-20-2003 07:16 PM

Nah, no configure command unfortunately. Things would be so much easier that way :-D.

The INSTALL file agrees with the instructions in the BLFS book (which I was using originally for install instructions).

*baffled*

Crashed_Again 03-20-2003 08:04 PM

I am baffled as well. The output from the make command is like hieroglyphics to me. Sorry.

iceman47 03-20-2003 09:36 PM

If I remeber correctly, you should copy all the files in the unix directory in the zip-2.3 directory and then run make from there


All times are GMT -5. The time now is 06:43 AM.