NetBSD Problem Report #45566

From www@NetBSD.org  Fri Nov  4 15:00:24 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1F71663CC0B
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  4 Nov 2011 15:00:24 +0000 (UTC)
Message-Id: <20111104150023.16A1063C56E@www.NetBSD.org>
Date: Fri,  4 Nov 2011 15:00:23 +0000 (UTC)
From: frederic@fauberteau.org
Reply-To: frederic@fauberteau.org
To: gnats-bugs@NetBSD.org
Subject: CUPS build fails with kerberos support
X-Send-Pr-Version: www-1.0

>Number:         45566
>Category:       pkg
>Synopsis:       CUPS build fails with kerberos support
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    sbd
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 04 15:05:00 +0000 2011
>Last-Modified:  Wed Dec 21 09:05:02 +0000 2011
>Originator:     Frédéric Fauberteau
>Release:        5.1.0_PATCH
>Organization:
>Environment:
NetBSD trashware 5.1.0_PATCH NetBSD 5.1.0_PATCH (TRASHWARE) #1: Sam oct 15 11:08:36 CEST 2011  root@trashware:/usr/src/sys/arch/i386/compile/TRASHWARE i386
>Description:
Since I have installed heimdal, cups build fails when the kerberos support is activated.

The build fails at this line :
"""
Linking bannertops...
libtool: link: cc -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R7/lib -fPIE -pie -Wall -Wno-format-y2k -fPIC -Os -g -o .libs/bannertops bannertops.o pstext.o common.o  -L/usr/pkgsrc/print/cups/work/cups-1.4.8/cups/.libs -L/usr/pkgsrc/print/cups/work/cups-1.4.8/cgi-bin -L/usr/pkgsrc/print/cups/work/cups-1.4.8/cups -L/usr/pkgsrc/print/cups/work/cups-1.4.8/filter -L/usr/pkgsrc/print/cups/work/cups-1.4.8/ppdc -L/usr/pkgsrc/print/cups/work/cups-1.4.8/scheduler -L/usr/pkgsrc/print/cups/work/.buildlink/lib -L/usr/pkgsrc/print/cups/work/.x11-buildlink/lib ../filter/.libs/libcupsimage.so /usr/pkgsrc/print/cups/work/.buildlink/lib/libtiff.so -lc /usr/pkgsrc/print/cups/work/.buildlink/lib/libpng15.so /usr/pkgsrc/print/cups/work/.buildlink/lib/libjpeg.so /usr/pkgsrc/print/cups/work/cups-1.4.8/cups/.libs/libcups.so ../cups/.libs/libcups.so -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lasn1 -lwind -lroken -lz -lssl -lcrypto -ldns_sd -lm -lcrypt -Wl,-rpath -Wl,/usr/pkg/lib -Wl,-rpath -Wl,/usr/pkgsrc/p
 rint/cups/work/.buildlink/lib
ld: cannot find -lwind
gmake[1]: *** [bannertops] Error 1
"""

I don't understand how the package is build because the Makefile which is supposed to be used to generate this compilation line is not. I have manually added -L/usr/pkg/lib to the rule bannertops.o in filter/Makefile whithout any changes.

One another surprising thing in config.log:
"""
configure:8758: cc -o conftest -I/usr/pkg/include/krb5  -O2 -mtune=pentium -mfpmath=sse -msse3 -march=nocona -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include/krb5 -I/usr/include -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/pkg/include/krb5  -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include/krb5 -I/usr/include -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib conftest.c -lm -lcrypt  -L/usr/pkg/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lwind -lroken -lcrypt >&5
ld: cannot find -lwind
"""

But cc -L/usr/pkg/lib -lwind in my term does not produce ld error:
trashware# cc -L/usr/pkg/lib -lwind
/usr/lib/crt0.o: In function `___start':
: undefined reference to `main'
>How-To-Repeat:
Install security/heimdal
Install print/cups with kerberos support activated (default)
>Fix:
No idea to patch yet...

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->sbd
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 04 Nov 2011 21:55:15 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45566: CUPS build fails with kerberos support
Date: Wed, 21 Dec 2011 22:02:18 +1300 (NZDT)

 On Fri, 4 Nov 2011, frederic@fauberteau.org wrote:
 > >Environment:
 > NetBSD trashware 5.1.0_PATCH NetBSD 5.1.0_PATCH (TRASHWARE) #1: Sam oct 15 11:08:36 CEST 2011  root@trashware:/usr/src/sys/arch/i386/compile/TRASHWARE i386
 > >Description:
 > Since I have installed heimdal, cups build fails when the kerberos support is activated.


 Have you tried building cups with NetBSD builtin heimdal?

 -- 
 Steven

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.