NetBSD Problem Report #21876

Received: (qmail 22364 invoked by uid 605); 13 Jun 2003 21:19:34 -0000
Message-Id: <19649-1055539175@rainier.reedmedia.net>
Date: Fri, 13 Jun 2003 14:19:35 -0700
From: reed@reedmedia.net
Sender: gnats-bugs-owner@netbsd.org
Reply-To: reed@reedmedia.net
To: gnats-bugs@gnats.netbsd.org
Subject: lang/python15 not building; missing -lnet
X-Send-Pr-Version: 3.95

>Number:         21876
>Category:       pkg
>Synopsis:       lang/python15 not building; missing -lnet
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 13 21:20:00 +0000 2003
>Closed-Date:    Mon Jun 16 17:41:28 +0000 2003
>Last-Modified:  Mon Jun 16 17:41:28 +0000 2003
>Originator:     
>Release:        NetBSD 1.6
>Organization:
http://bsd.reedmedia.net/
>Environment:


System: NetBSD rainier.reedmedia.net 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 reed@rainier.reedmedia.net:/usr/src/sys/arch/i386/compile/JCR-20020927 i386
Architecture: i386
Machine: i386
>Description:
finance/emma wants python 1.5.
lang/python15 won't build:

cc -g -O2 pgenmain.o acceler.o grammar1.o  listnode.o node.o parser.o  parsetok.
o tokenizer.o bitset.o  metagrammar.o firstsets.o grammar.o pgen.o printgrammar.
o -lnet -o pgen
/usr/bin/ld: cannot find -lnet
collect2: ld returned 1 exit status

For some reason, LDFLAGS is not included in that Makefile.
>How-To-Repeat:
cd pkgsrc/lang/python15
make
>Fix:
Using buildlink2 with libnet didn't help either.

If -lnet is libnet, then a dependency or the buildlink2 for it should be used.

My workaround was to change Python-1.5.2/Parser/Makefile
so LIBS include LDFLAGS.

I don't know why it was not included in first place.
>Release-Note:
>Audit-Trail:

From: Matthias Drochner <M.Drochner@fz-juelich.de>
To: reed@reedmedia.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/21876: lang/python15 not building; missing -lnet 
Date: Mon, 16 Jun 2003 17:50:18 +0200

 reed@reedmedia.net said:
 > cc -g -O2 pgenmain.o acceler.o grammar1.o  listnode.o node.o parser.o
 > parsetok. o tokenizer.o bitset.o  metagrammar.o firstsets.o grammar.o
 > pgen.o printgrammar. o -lnet -o pgen
 > /usr/bin/ld: cannot find -lnet 

 The -lnet shouldn't be there, at least on NetBSD.
 Can you have a look at the "configure" process and find out why
 it gets picked up?
 If there is a /usr/pkg/lib/libnet.*, where does it come from?

 > If -lnet is libnet, then a dependency or the buildlink2 for it should be used.

 As said, this should be unnecessary.
 I don't see this problem on -current.

 best regards
 Matthias



From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Matthias Drochner <M.Drochner@fz-juelich.de>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/21876: lang/python15 not building; missing -lnet 
Date: Mon, 16 Jun 2003 09:07:52 -0700 (PDT)

 On Mon, 16 Jun 2003, Matthias Drochner wrote:

 > The -lnet shouldn't be there, at least on NetBSD.

 This is NetBSD/i386 1.6 (with security updates).

 > Can you have a look at the "configure" process and find out why
 > it gets picked up?

 checking for socket in -lnet... yes

 So then -lnet is added to LIBS.

 I have:
 $ ls -l /usr/pkg/lib/libnet.*
 -rw-r--r--  1 root  wheel  39952 Apr 23 09:36 /usr/pkg/lib/libnet.a
 -rw-r--r--  1 root  wheel    751 Apr 23 09:36 /usr/pkg/lib/libnet.la
 lrwxr-xr-x  1 root  wheel     13 Apr 23 09:36 /usr/pkg/lib/libnet.so ->
 libnet.so.1.0
 lrwxr-xr-x  1 root  wheel     13 Apr 23 09:36 /usr/pkg/lib/libnet.so.1 ->
 libnet.so.1.0
 -rw-r--r--  1 root  wheel  28704 Apr 23 09:36 /usr/pkg/lib/libnet.so.1.0

 > If there is a /usr/pkg/lib/libnet.*, where does it come from?

 Mine is libnet-1.0.1bnb1 (devel/libnet). It was previously installed
 because required by libnids-1.14, dsniff-2.3, and pakemon-0.3.1.

 > > If -lnet is libnet, then a dependency or the buildlink2 for it should
 > > be used.

    Jeremy C. Reed
    http://bsd.reedmedia.net/


From: Matthias Drochner <drochner@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:  
Subject: pr/21876 CVS commit: pkgsrc/lang/python15
Date: Mon, 16 Jun 2003 16:33:35 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	drochner
 Date:		Mon Jun 16 16:33:35 UTC 2003

 Modified Files:
 	pkgsrc/lang/python15: distinfo
 	pkgsrc/lang/python15/patches: patch-aa

 Log Message:
 Don't check for socket() in libnet.* - this will give a false hit
 if pkgsrc/devel/libnet is installed.
 Should fix PR pkg/21876 by Jeremy C. Reed.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/lang/python15/distinfo
 cvs rdiff -r1.2 -r1.3 pkgsrc/lang/python15/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Matthias Drochner <M.Drochner@fz-juelich.de>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/21876: lang/python15 not building; missing -lnet 
Date: Mon, 16 Jun 2003 18:36:37 +0200

 A diff to a diff would be messy, so I just went forward.
 Can you test what I've just committed (patch-aa rev. 1.3)?
 It removes the check in question.

 best regards
 Matthias



From: "Jeremy C. Reed" <reed@reedmedia.net>
To: Matthias Drochner <M.Drochner@fz-juelich.de>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/21876: lang/python15 not building; missing -lnet 
Date: Mon, 16 Jun 2003 10:04:26 -0700 (PDT)

 On Mon, 16 Jun 2003, Matthias Drochner wrote:

 > Can you test what I've just committed (patch-aa rev. 1.3)?
 > It removes the check in question.

 This configured and built fine under NetBSD where my problem was at. (I
 didn't check under Linux.)

 You may close this PR.

 Thank you,

    Jeremy C. Reed
    http://bsd.reedmedia.net/

State-Changed-From-To: open->closed 
State-Changed-By: drochner 
State-Changed-When: Mon Jun 16 17:40:56 UTC 2003 
State-Changed-Why:  
issue fixed 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.