Subject: pkg/33572: misc/dpkg does not builds on GNU/Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <pancake@phreaker.net>
List: pkgsrc-bugs
Date: 05/27/2006 17:55:00
>Number: 33572
>Category: pkg
>Synopsis: dpkg needs bz2
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Sat May 27 17:55:00 +0000 2006
>Originator: root
>Release: Linux 2.6.9pl2
>Organization:
>Environment:
System: Linux pl2 2.6.9pl2 #10 Mon Jul 4 04:19:21 CEST 2005 i686 GNU/Linux
Architecture: unknown
Machine: i686
>Description:
misc/dpkg depends on archives/bzip2
>How-To-Repeat:
NOTE: Sorry for the localized error messages.
gcc -I/usr/include -I/usr/pkg/include -O2 -I/usr/include -I/usr/pkg/include -Wall -Wwrite-strings -Wpointer-arith -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wbad-function-cast -Wcast-qual -Wcast-align -Winline -Wmissing-noreturn -Wsign-compare -DHAVE_CONFIG_H -D_GNU_SOURCE -DLOCALEDIR=\"/usr/pkg/share/locale\" -I../intl -I../intl -I../include -I.. -I. -I../include -I.. -I. -I../optlib -DUSE_ZLIB -DUSE_BZ2LIB -DCOPYINGFILE=\"/usr/pkg/share/doc/dpkg/copyright\" -c compression.c
compression.c:12:19: bzlib.h: No existe el fichero o el directorio
compression.c: En la función `decompress_cat':
compression.c:67: error: `BZFILE' undeclared (first use in this function)
compression.c:67: error: (Each undeclared identifier is reported only once
compression.c:67: error: for each function it appears in.)
compression.c:67: error: `bzfile' undeclared (first use in this function)
compression.c:67: aviso: implicit declaration of function `BZ2_bzdopen'
compression.c:68: aviso: implicit declaration of function `BZ2_bzread'
compression.c:71: aviso: implicit declaration of function `BZ2_bzerror'
compression.c:71: aviso: inicialización se crea un puntero desde un entero sin una conversión
compression.c: En la función `compress_cat':
compression.c:164: error: `BZFILE' undeclared (first use in this function)
compression.c:164: error: `bzfile' undeclared (first use in this function)
compression.c:173: aviso: implicit declaration of function `BZ2_bzwrite'
compression.c:176: aviso: inicialización se crea un puntero desde un entero sin una conversión
compression.c:177: error: `BZ_IO_ERROR' undeclared (first use in this function)
compression.c:186: aviso: implicit declaration of function `BZ2_bzclose'
make[2]: *** [compression.o] Error 1
make[2]: se sale del directorio `/mnt/storage2/tmp/misc/dpkg/work/dpkg-1.10.28/lib'
make[1]: *** [all-lib] Error 2
make[1]: se sale del directorio `/mnt/storage2/tmp/misc/dpkg/work/dpkg-1.10.28'
make: *** [all-recursive] Error 2
*** Error code 2
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/misc/dpkg/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile 21 May 2006 11:27:23 -0000 1.14
+++ Makefile 27 May 2006 17:53:08 -0000
@@ -32,4 +32,5 @@
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
+.include "../../archivers/bzip2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
>Unformatted: