Subject: pkg/22295: Fix games/lbreakout2 on SunOS
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 07/29/2003 12:53:02
>Number: 22295
>Category: pkg
>Synopsis: Fix games/lbreakout2 on SunOS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 29 12:54:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jonathan Perkin
>Release: N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build0 5.8 Generic_108528-15 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
The usual socket lib problem on Solaris:
[...]
Undefined first referenced
symbol in file
socket ../common/libcommon.a(net.o) (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
getpeername ../common/libcommon.a(net.o) (symbol belongs to implicit dependency /usr/lib/libsocket.so.1)
Add -lsocket -lnsl and all is fine
[...]
===> Registering installation for lbreakout2-2.4.1nb4
===> Packaging lbreakout2-2.4.1nb4
>How-To-Repeat:
>Fix:
http://www.perkin.org.uk/projects/netbsd/lbreakout2.patch
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/games/lbreakout2/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile 2003/07/26 21:41:18 1.9
+++ Makefile 2003/07/29 12:48:12
@@ -16,6 +16,12 @@
CONFIGURE_ARGS+= --with-highscore-path=${LOCALBASE}/share/games/ \
--with-doc-path=${LOCALBASE}/share/doc/html/
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+LDFLAGS+= -lsocket -lnsl
+.endif
+
.include "../../graphics/png/buildlink2.mk"
.include "../../audio/SDL_mixer/buildlink2.mk"
.include "../../devel/SDL/buildlink2.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: