Subject: pkg/14564: irssi w/buildlink build fails
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/12/2001 19:49:16
>Number:         14564
>Category:       pkg
>Synopsis:       irssi w/buildlink build fails
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 12 19:50:01 PST 2001
>Originator:     Tom Spindler
>Release:        <NetBSD-current source date>NetBSD 1.5.2
System: NetBSD 1.5.2 NetBSD 1.5.2 (RAIDVEAL) #0: Sun Oct 28 19:58:20 PST 2001 root@:/usr/src/sys/arch/i386/compile/RAIDVEAL i386

attempting to build irssi from pkgsrc fails as follows:

Making all in fe-text
make: don't know how to make -L/usr/obj/pkgsrc/chat/irssi/work/.buildlink/lib. Stop
*** Error code 1

I believe this happens because in fe-text Makefile has the following
generated line:

COMMON_LIBS = ../fe-common/irc/libfe_common_irc.a ../fe-common/irc/dcc/.libs/libfe_irc_dcc.a ../fe-common/irc/notifylist/.libs/libfe_irc_notifylist.a ../fe-common/core/libfe_common_core.a  ../irc/libirc.a ../irc/core/libirc_core.a ../irc/dcc/.libs/libirc_dcc.a ../irc/flood/.libs/libirc_flood.a ../irc/notifylist/.libs/libirc_notifylist.a ../core/libcore.a ../lib-config/libirssi_config.a ../lib-popt/libpopt.a -L/usr/obj/pkgsrc/chat/irssi/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lintl

And it thus parses the link flags as a dependency.

cd /usr/pkgsrc/chat/irssi; make
If you remove the -L and -R bits from the COMMON_LIBS line, it builds.
Why the build fails for just that Makefile and not the others, I dunno.