NetBSD Problem Report #22860

Received: (qmail 850 invoked by uid 605); 19 Sep 2003 16:01:08 -0000
Message-Id: <20030919160105.532C111152@narn.netbsd.org>
Date: Fri, 19 Sep 2003 16:01:05 +0000 (UTC)
From: jonathan@perkin.org.uk
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jonathan@perkin.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: Fix benchmarks/netpipe on SunOS
X-Send-Pr-Version: www-1.0

>Number:         22860
>Category:       pkg
>Synopsis:       Fix benchmarks/netpipe on SunOS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 19 16:02:00 +0000 2003
>Closed-Date:    Fri Sep 19 18:14:16 +0000 2003
>Last-Modified:  Fri Sep 19 18:15:01 +0000 2003
>Originator:     Jonathan Perkin
>Release:        N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build1 5.9 Generic_112233-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
More -lsocket -lnsl Solaris fixes.

While here, tidy up hardcoded cc, and move -DHAVE_GETRUSAGE into
pkgsrc Makefile so that any operating systems which don't have it
can do the necessary .ifdef rather than spamming the package one.
>How-To-Repeat:

>Fix:
http://www.perkin.org.uk/projects/netbsd/netpipe.diff

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/benchmarks/netpipe/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	2003/07/17 21:24:32	1.2
+++ Makefile	2003/09/19 15:56:58
@@ -8,6 +8,14 @@
 HOMEPAGE=	http://www.scl.ameslab.gov/netpipe/
 COMMENT=	TCP/PVM/MPI testing and performance measuring tool

+.include "../../mk/bsd.prefs.mk"
+
+CFLAGS+=	-DHAVE_GETRUSAGE
+
+.if ${OPSYS} == "SunOS"
+MAKE_ENV+=	EXTRA_LIBS="-lsocket -lnsl"
+.endif
+
 do-install:
 	cd ${WRKSRC} ; \
 	${INSTALL_PROGRAM} NPtcp ${PREFIX}/bin/NPtcp ; \
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/benchmarks/netpipe/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	2001/07/28 00:15:12	1.2
+++ distinfo	2003/09/19 15:56:58
@@ -2,4 +2,4 @@

 SHA1 (netpipe-2.4.tar.gz) = 1d5c795c912dfbf9b48c0a7fc0e751ed521a760b
 Size (netpipe-2.4.tar.gz) = 23009 bytes
-SHA1 (patch-aa) = 2fd35e18c315571f93e8c05b4db974c5593b6680
+SHA1 (patch-aa) = 0cbb01a8fb5efb8d14bbeb7f47a456cce758a8e9
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/benchmarks/netpipe/patches/patch-aa,v
retrieving revision 1.2
diff -u -r1.2 patch-aa
--- patches/patch-aa	2001/07/28 00:15:13	1.2
+++ patches/patch-aa	2003/09/19 15:56:58
@@ -1,18 +1,31 @@
 $NetBSD: patch-aa,v 1.2 2001/07/28 00:15:13 thorpej Exp $

---- Makefile.orig	Tue Apr 27 14:03:25 1999
-+++ Makefile	Fri Jul 27 16:20:10 2001
+--- Makefile.orig	Tue Apr 27 22:03:25 1999
++++ Makefile	Fri Sep 19 16:47:27 2003
+@@ -4,7 +4,7 @@
+ #
+ 
+ # Default C compiler: must be an ANSI C compiler
+-CC         = cc
++#CC         = cc
+ # File names for the main source files
+ DRIV_SRC   = netpipe.c
+ DRIV_OBJ   = netpipe.o
 @@ -13,7 +13,7 @@
  TARGETS    = NPtcp
  # If you have TCP, MPI and PVM
  #TARGETS    = NPtcp NPmpi NPpvm
 -CFLAGS	   = -O
-+CFLAGS	   = -O -DHAVE_GETRUSAGE
++#CFLAGS    = -O
  # Adjust these for MPI (only used if you have MPI)
  MPI_HOME   = /home/mpich
  MPI_ARCH   = IRIX
-@@ -25,7 +25,7 @@
- EXTRA_LIBS = 
+@@ -22,10 +22,10 @@
+ PVM_HOME   = /home/pvm3
+ PVM_ARCH   = SUN4SOL2
+ # Any extra libraries needed
+-EXTRA_LIBS = 
++#EXTRA_LIBS = 
  #EXTRA_LIBS = -lgcc

 -targets:    $(TARGETS)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Fri Sep 19 14:14:09 EDT 2003 
State-Changed-Why:  
Committed, thanks. 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22860 CVS commit: pkgsrc/benchmarks/netpipe
Date: Fri, 19 Sep 2003 18:14:05 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Fri Sep 19 18:14:04 UTC 2003

 Modified Files:
 	pkgsrc/benchmarks/netpipe: Makefile distinfo
 	pkgsrc/benchmarks/netpipe/patches: patch-aa

 Log Message:
 Make compile on Solaris. From Jonathan Perkin in PR 22860.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/benchmarks/netpipe/Makefile \
     pkgsrc/benchmarks/netpipe/distinfo
 cvs rdiff -r1.2 -r1.3 pkgsrc/benchmarks/netpipe/patches/patch-aa

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

>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.