pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43723: Tru64: archivers/unzip-6.0 does not compile



>Number:         43723
>Category:       pkg
>Synopsis:       Tru64: archivers/unzip-6.0 does not compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 08 06:00:00 +0000 2010
>Originator:     Szabolcs Rumi
>Release:        Tru64 5.1B-5
>Organization:
>Environment:
# sizer -v
HP Tru64 UNIX V5.1B (Rev. 2650); Thu Dec 17 18:47:21 CET 2009
# cc -V
Compaq C V6.5-303 (dtk) on HP Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-302 (dtk) cc Driver
# cxx -V
Compaq C++ V7.1-006 for HP Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V7.1-006 (cxx) cxx Driver

pkgsrc-current-20100807

>Description:
===> Overriding tools for unzip-6.0
===> Extracting for unzip-6.0
===> Patching for unzip-6.0
=> Applying pkgsrc patches for unzip-6.0
===> Creating toolchain wrappers for unzip-6.0
===> Configuring for unzip-6.0
===> Building for unzip-6.0
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o unzipsfx.o unzip.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o crc32_.o crc32.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o crypt_.o crypt.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o extract_.o extract.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o fileio_.o fileio.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o globals_.o globals.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o inflate_.o inflate.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o match_.o match.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o process_.o process.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o ttyio_.o ttyio.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o ubz2err_.o ubz2err.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DSFX -o unix_.o unix/unix.c
This target assumes zlib (libz.a or libz.so.*) is already installed.
/usr/pkg/bin/gmake unzip funzip CF="-I/usr/pkg/include -O2 -I. -DUNIX -Dunix 
-DUSE_UNSHRINK -ieee -I/usr/pkg/include -DUSE_ZLIB" LF2="-L/usr/pkg/lib 
-Wl,-rpath,/usr/pkg/lib -lz"
gmake[1]: Entering directory `/usr/pkgsrc/archivers/unzip/work/unzip60'
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB unzip.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB crc32.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB crypt.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB envargs.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB explode.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB extract.c
cc -o unzipsfx  unzipsfx.o crc32_.o  crypt_.o extract_.o fileio_.o globals_.o 
inflate_.o match_.o process_.o ttyio_.o ubz2err_.o unix_.o -L/usr/pkg/lib 
-Wl,-rpath,/usr/pkg/lib -lz
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB fileio.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB globals.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB inflate.c
ld:
Unresolved:
lchmod
gmake: *** [unzipsfx] Error 1
gmake: *** Waiting for unfinished jobs....
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB list.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB match.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB process.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB ttyio.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB ubz2err.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB unreduce.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB unshrink.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB zipinfo.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB unix/unix.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB funzip.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB -DFUNZIP -o cryptf.o crypt.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB -DFUNZIP -o globalsf.o globals.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB -DFUNZIP -o inflatef.o inflate.c
cc -c -I/usr/pkg/include -O2 -I. -DUNIX -Dunix -DUSE_UNSHRINK -ieee 
-I/usr/pkg/include -DUSE_ZLIB -DFUNZIP -o ttyiof.o ttyio.c
cc -o funzip  funzip.o crc32.o  cryptf.o globalsf.o inflatef.o ttyiof.o 
-L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lz
cc -o unzip  -Lbzip2 unzip.o crc32.o  crypt.o envargs.o explode.o extract.o 
fileio.o globals.o inflate.o list.o match.o process.o ttyio.o ubz2err.o 
unreduce.o unshrink.o zipinfo.o unix.o  -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib 
-lz
ld:
Unresolved:
lchmod
gmake[1]: *** [unzip] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/archivers/unzip/work/unzip60'
gmake: *** [generic_zlib] Error 2
*** Error code 2

Stop.



>How-To-Repeat:

>Fix:
It appears to me that unzip's configure script (unzip60/unix/configure) doesn't 
even get to run. When it's run by hand it correctly detects that there is no 
lchmod() call present and sets -DNO_LCHMOD. The INSTALL file says that we 
should be doing the following:

bmake -f unix/Makefile osf1 (which apparently doesn't do anything)

OR

bmake -f unix/Makefile generic

This make target calls the configure script which sets the proper defines and 
then everything compiles correctly. But the pkgsrc Makefile uses the target 
generic_zlib which does not run the configure script at all but just starts 
compiling.

For Solaris there is the following solution in place:

CFLAGS.SunOS+=  -DNO_LCHMOD

So I tried:

--- Makefile.old        2010-08-08 07:18:59.000000000 +0200
+++ Makefile    2010-08-08 07:18:59.000000000 +0200
@@ -27,6 +27,7 @@
 .endif
 CFLAGS+=       -I. -DUNIX -Dunix -DUSE_UNSHRINK
 CFLAGS.SunOS+= -DNO_LCHMOD
+CFLAGS.OSF1+=  -DNO_LCHMOD
 MAKE_FLAGS+=   CF=${CPPFLAGS:Q}\ ${CFLAGS:Q}
 MAKE_FLAGS+=   LF2=${_STRIPFLAG_CC:Q}\ ${LDFLAGS:Q}\ -lz

Which worked seamlessly.



Home | Main Index | Thread Index | Old Index