Subject: pkg/21876: lang/python15 not building; missing -lnet
To: None <gnats-bugs@gnats.netbsd.org>
From: None <reed@reedmedia.net>
List: netbsd-bugs
Date: 06/13/2003 14:19:35
>Number: 21876
>Category: pkg
>Synopsis: lang/python15 not building; missing -lnet
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jun 13 21:20:00 UTC 2003
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: