pkgsrc-Bugs archive

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

pkg/47388: [PREFER_PKGSRC=yes]print/cups 1.5.4 compilation failure



>Number:         47388
>Category:       pkg
>Synopsis:       [PREFER_PKGSRC=yes]print/cups 1.5.4 compilation failure
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 31 17:40:00 +0000 2012
>Originator:     Showta Ishizaki
>Release:        NetBSD 5.1.2_PATCH
>Organization:
NSRG.FML.ORG
>Environment:
                System: NetBSD nsrg00.spub.chitose.ac.jp 5.1.2_PATCH NetBSD
5.1.2_PATCH (HOME_SERVER) #0: Mon Apr 16 06:49:15 JST 2012
fukachan%fml.org@localhost:/usr/src/sys/arch/i386/compile/HOME_SERVER i386
                Architecture: i386
                Machine: i386
>Description:

# ( cd /usr/pkgsrc/print/cups/ ; make install PREFER_PKGSRC=yes )

Making all in test...
Compiling ippserver.c...
libtool: compile:  gcc -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
-fstack-protector -Wno-tautological-compare -I.. -D_CUPS_SOURCE
-I/usr/pkgsrc/print/cups/work/.buildlink/include/krb5
-I/usr/pkgsrc/print/cups/work/.buildlink/include -O2
-I/usr/pkgsrc/print/cups/work/.buildlink/include/libusb-1.0
-I/usr/pkgsrc/print/cups/work/.buildlink/include/dbus-1.0
-I/usr/pkgsrc/print/cups/work/.buildlink/lib/dbus-1.0/include
-DDBUS_API_SUBJECT_TO_CHANGE -DOPENSSL_DISABLE_OLD_DES_SUPPORT
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
-c ippserver.c  -fPIC -DPIC -o .libs/ippserver.o
libtool: compile:  gcc -Wall -Wno-format-y2k -Wunused -fPIC -Os -g
-fstack-protector -Wno-tautological-compare -I.. -D_CUPS_SOURCE
-I/usr/pkgsrc/print/cups/work/.buildlink/include/krb5
-I/usr/pkgsrc/print/cups/work/.buildlink/include -O2
-I/usr/pkgsrc/print/cups/work/.buildlink/include/libusb-1.0
-I/usr/pkgsrc/print/cups/work/.buildlink/include/dbus-1.0
-I/usr/pkgsrc/print/cups/work/.buildlink/lib/dbus-1.0/include
-DDBUS_API_SUBJECT_TO_CHANGE -DOPENSSL_DISABLE_OLD_DES_SUPPORT
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT
-c ippserver.c -o ippserver.o >/dev/null 2>&1
Linking ippserver...
libtool: link: gcc -Wl,-R/usr/pkg/lib -fPIE -pie -Wall -Wno-format-y2k
-Wunused -fPIC -Os -g -fstack-protector -Wno-tautological-compare -o
ippserver ippserver.o
-L/usr/pkgsrc/print/cups/work/cups-1.5.4/cgi-bin
-L/usr/pkgsrc/print/cups/work/cups-1.5.4/cups
-L/usr/pkgsrc/print/cups/work/cups-1.5.4/filter
-L/usr/pkgsrc/print/cups/work/cups-1.5.4/ppdc
-L/usr/pkgsrc/print/cups/work/cups-1.5.4/scheduler
-L/usr/pkgsrc/print/cups/work/.buildlink/lib ../cups/libcups.a
/usr/pkgsrc/print/cups/work/.buildlink/lib/libgssapi.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libheimntlm.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libkrb5.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libsqlite3.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libhx509.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libasn1.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libwind.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libcom_err.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libheimbase.so
/usr/pkgsrc/print/cups/work/.buildlink/lib/libroken.so -lssl -lcrypto
-ldns_sd -lpthread -lcrypt -lm
/usr/pkgsrc/print/cups/work/.buildlink/lib/libz.so -Wl,-rpath
-Wl,/usr/pkgsrc/print/cups/work/.buildlink/lib -Wl,-rpath
-Wl,/usr/pkgsrc/print/cups/work/.buildlink/lib
../cups/libcups.a(transcode.o): In function `_cupsCharmapFlush':
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:64: undefined
reference to `libiconv_close'
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:70: undefined
reference to `libiconv_close'
../cups/libcups.a(transcode.o): In function `cupsCharsetToUTF8':
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:167: undefined
reference to `libiconv_open'
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:168: undefined
reference to `libiconv_open'
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:179: undefined
reference to `libiconv'
../cups/libcups.a(transcode.o): In function `cupsUTF8ToCharset':
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:292: undefined
reference to `libiconv_open'
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:293: undefined
reference to `libiconv_open'
/usr/pkgsrc/print/cups/work/cups-1.5.4/cups/transcode.c:304: undefined
reference to `libiconv'
gmake[1]: *** [ippserver] Error 1
gmake: *** [all] Error 1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/print/cups
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/cups

>How-To-Repeat:
# ( cd /usr/pkgsrc/print/cups/ ; make install PREFER_PKGSRC=yes )

>Fix:
cups can be built on NetBSD/i386 5.1.2_PATCH after applying the
following patch.

The configure of cups checks the existence of both iconv.h and
iconv_open(3) which libc.a has for POSIX. The configure check is
wrong. In fact cups needs GNU libiconv. Cups tries to link
libiconv_open() and the compilation failed.

Index: print/cups/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/cups/Makefile,v
retrieving revision 1.193
diff -u -b -r1.193 Makefile
--- print/cups/Makefile        2012-10-08 13:45:36.000000000 +0000
+++ print/cups/Makefile
@@ -176,6 +176,8 @@ post-install:
 .endif

 .include "../../converters/libiconv/buildlink3.mk"
+LDFLAGS+=               -liconv
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
Index: print/poppler/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/poppler/Makefile,v
retrieving revision 1.57
diff -u -b -r1.57 Makefile
--- print/poppler/Makefile     2012-09-14 12:15:01.000000000 +0000
+++ print/poppler/Makefile
@@ -48,6 +48,7 @@ post-install:
        ${INSTALL_MAN} ${WRKSRC}/README-XPDF
${DESTDIR}${PREFIX}/share/doc/poppler/
        ${RMDIR} ${DESTDIR}${PREFIX}/include/poppler || ${TRUE}

+.include "../../converters/libiconv/buildlink3.mk"
 .include "../../fonts/fontconfig/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
Index: print/poppler-utils/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/print/poppler-utils/Makefile,v
retrieving revision 1.25
diff -u -b -r1.25 Makefile
--- print/poppler-utils/Makefile     2012-07-04 20:26:58.000000000 +0000
+++ print/poppler-utils/Makefile
@@ -49,6 +49,7 @@ PTHREAD_STUBLIB=      # provided by libc
 .endif
 MAKE_ENV+=             PTHREAD_STUBLIB=${PTHREAD_STUBLIB}

+.include "../../converters/libiconv/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"

-- 
Chitose Institute of Science and Technology
http://www.chitose.ac.jp/english/
Network Science (and Service) Research Group
http://www.nsrg.fml.org/

Ishizaki Showta
zakinko%snowrabbit.org@localhost



Home | Main Index | Thread Index | Old Index