I tried to run "make" against gzip (1.2.4 -- not sure now where I
downloaded it from after having gone through so many sites...), and
got the following:
usaxplj/root >make
cc -o gzip gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o
util.o crypt.o lzw.o unlzw.o unpack.o unlzh.o getopt.o
ld:
Object file format error in: lzw.o: bad file magic number
*** Exit 1
Stop.
The INSTALL file had some info about updating /etc/magic for using
gzip, but I didn't see anything about changes for make'ing it.
Anyway, figuring that the object files provided were invalid for DUnix
3.2c, I compiled the .c versions of each .o file which appeared in the
make output (the log excerpt here is after I had compiled each program
up to lzw.c -- another weirdness: when I tried to run "cc -o xxxx.o
xxxx.c" I would get:
Fatal error in: /usr/lib/cmplrs/cc/ld Segmentation fault - core
dumped
so I would "cc the xxxx.c" program (xxxx = generic program name),
then "mv a.out xxxx.o" --- any pointers on that issue welcome ;-} )
Now after compiling all those indicated programs, here's how it went:
usaxplj/root >make
cc -c -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 getopt.c
cc -o gzip gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util.o
cryp
t.o lzw.o unlzw.o unpack.o unlzh.o getopt.o
rm -f gunzip zcat
ln gzip gunzip
ln gzip zcat
usaxplj/root >gunzip
1731:gunzip: /sbin/loader: Fatal Error: cannot map gzip.o
usaxplj/root >ls -l *zip*
-rwxr-xr-x 3 4905 10 32768 Feb 27 16:36 gunzip
-rwxr-xr-x 3 4905 10 32768 Feb 27 16:36 gzip
-rw-r--r-- 1 root system 1013760 Feb 27 15:39 gzip-1.2.4.tar
-rw-r--r-- 1 4905 10 13923 Aug 18 1993 gzip.1
-rw-r--r-- 1 4905 10 52560 Aug 19 1993 gzip.c
-rw-r--r-- 1 4905 10 15695 Aug 18 1993 gzip.doc
-rw-r--r-- 1 4905 10 10619 Aug 13 1993 gzip.h
-rw-r--r-- 1 4905 10 35587 Aug 18 1993 gzip.info
-rw-r--r-- 1 root system 49152 Feb 27 16:24 gzip.o
-rw-r--r-- 1 4905 10 17382 Aug 18 1993 gzip.texi
-rw-r--r-- 1 4905 10 6024 Aug 13 1993 unzip.c
-rw-r--r-- 1 root system 32768 Feb 27 16:31 unzip.o
-rw-r--r-- 1 4905 10 3170 Aug 13 1993 zip.c
-rw-r--r-- 1 root system 32768 Feb 27 16:27 zip.o
I imagine it's painfully obvious that I'm a neophyte at using the unix
environment for anything "serious", so I beg indulgence, and if it's a
matter of RTFM'ing, just point me at the relevant man pages (is there
some way to scroll back up in those displays? That makes using man so
tedious -- I'm used to the VM/CMS and OS/2 and Windoze help systems,
which SEEM to be much more flexible/usable, but if that's just my
ignorance, then let me know, please!)
BTW, the object of all this is so I can gunzip the Perl distribution
so I can "make" it -- joy! A pre-compiled version of that and/or gzip
for DUnix would be nice, but I see this as a learning opportunity that
I need to take advantage of ;-}
TIA for any assistance,
Rory O'Connor -- rory_o'connor_at_us.wfl.com 919-483-9133
Glaxo Wellcome, Inc.
Received on Wed Feb 28 1996 - 16:20:03 NZDT