LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2003, 04:08 PM   #1
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Rep: Reputation: 15
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.
 
Old 03-20-2003, 07:39 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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?
 
Old 03-20-2003, 08:16 PM   #3
Obi Perrin
Member
 
Registered: Nov 2002
Posts: 136

Original Poster
Rep: Reputation: 15
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*
 
Old 03-20-2003, 09:04 PM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I am baffled as well. The output from the make command is like hieroglyphics to me. Sorry.
 
Old 03-20-2003, 10:36 PM   #5
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What to Compile Next? AxXium Slackware 6 07-06-2005 10:32 AM
cannot compile jonn SUSE / openSUSE 4 03-30-2005 12:12 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 05:22 PM
I can't compile anything please help sovietpower Linux - Software 10 11-13-2003 08:41 AM
why won't the following compile? purpleburple Programming 4 09-10-2002 08:12 PM


All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration