Subject: Re: benchmarks/postal (2004Q4) fails to build on 1.6.2_STABLE (i386)
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-pkg
Date: 01/16/2005 02:34:25
[ On Friday, January 14, 2005 at 19:34:42 (-0500), Greg A. Woods wrote: ]
> Subject: benchmarks/postal (2004Q4) fails to build on 1.6.2_STABLE (i386)
>
> FYI, benchmarks/postal (2004Q4) fails to build on 1.6.2_STABLE (i386):
> 
> c++ -O2 -march=pentiumpro -g -pipe -I/usr/include -I/usr/pkg/include -O2 -g -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Woverloaded-virtual -pedantic -ffor-scope postal.cpp expand.o userlist.o thread.o results.o address.o tcp.o cmd5.o mutex.o logit.o  smtp.o -o postal -lstdc++  -lssl -lcrypto -lpthread
> In file included from /usr/include/g++/vector:31,
>                  from userlist.h:9,
>                  from postal.cpp:5:
> /usr/include/g++/stl_alloc.h:1055: warning: ANSI C++ forbids the use of `extern' on explicit instantiations
> /usr/include/g++/stl_alloc.h:1056: warning: ANSI C++ forbids the use of `extern' on explicit instantiations
> /usr/include/g++/stl_alloc.h:1056: warning: ANSI C++ forbids the use of `extern' on explicit instantiations
> /usr/include/g++/stl_alloc.h:1056: warning: ANSI C++ forbids the use of `extern' on explicit instantiations
> In file included from /usr/include/g++/hash_map.h:31,
>                  from smtp.h:12,
>                  from postal.cpp:6:
> /usr/include/g++/stl_hashtable.h: In method `void hashtable<_Val,_Key,_HashFcn,_ExtractKey,_EqualKey,_Alloc>::_M_copy
> _from(const hashtable<_Val,_Key,_HashFcn,_ExtractKey,_EqualKey,_Alloc> &)':
> /usr/include/g++/stl_hashtable.h:1017: warning: declaration of `__copy' shadows global declaration
> postal.cpp: In function `int main(int, char **)':
> postal.cpp:115: `struct sigaction' has no member named `sa_sigaction'
> gmake: *** [postal] Error 1
> *** Error code 2


This gets the compile to work -- but I haven't run it yet...  :-)

cvs diff: Diffing benchmarks/postal
Index: benchmarks/postal/distinfo
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/benchmarks/postal/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- benchmarks/postal/distinfo	3 Dec 2003 18:40:33 -0000	1.1.1.1
+++ benchmarks/postal/distinfo	15 Jan 2005 22:25:08 -0000
@@ -2,3 +2,5 @@
 
 SHA1 (postal-0.62.tgz) = 6379ac223964921963389c8c600a1ba4b24a6ab3
 Size (postal-0.62.tgz) = 84506 bytes
+SHA1 (patch-za) = fa3ae2009a8764b5d90ca41d7789f69cbed4163e
+SHA1 (patch-zz) = 9c0b842af7bceecf5fa8aaf2b05a84f033f9dc40
cvs diff: Diffing benchmarks/postal/patches
Index: benchmarks/postal/patches/patch-za
===================================================================
RCS file: benchmarks/postal/patches/patch-za
diff -N benchmarks/postal/patches/patch-za
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ benchmarks/postal/patches/patch-za	15 Jan 2005 22:25:03 -0000
@@ -0,0 +1,34 @@
+--- Makefile.in.orig	Wed Oct 31 08:22:55 2001
++++ Makefile.in	Sat Jan 15 17:24:36 2005
+@@ -7,8 +7,8 @@
+ eprefix=@exec_prefix@
+ WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual -Woverloaded-virtual -pedantic -ffor-scope
+ 
+-CXX=@CXX@ $(CFLAGS) -O2 -g $(WFLAGS)
+-CC=@CC@ $(CFLAGS) -O2 -g $(WFLAGS)
++CXX=@CXX@ $(CFLAGS) $(WFLAGS)
++CC=@CC@ $(CFLAGS) $(WFLAGS)
+ 
+ INSTALL=@INSTALL@
+ 
+@@ -20,16 +20,16 @@
+ ALLOBJS=$(BASEOBJS) smtp.o client.o
+ 
+ postal: postal.cpp $(BASEOBJS) postal.h smtp.o
+-	$(CXX) postal.cpp $(BASEOBJS) smtp.o -o postal $(LFLAGS)
++	$(CXX) postal.cpp $(BASEOBJS) smtp.o $(LDFLAGS) -o postal $(LFLAGS)
+ 
+ rabid: rabid.cpp $(BASEOBJS) postal.h client.o
+-	$(CXX) rabid.cpp $(BASEOBJS) client.o -o rabid $(LFLAGS)
++	$(CXX) rabid.cpp $(BASEOBJS) client.o $(LDFLAGS) -o rabid $(LFLAGS)
+ 
+ ex-test: ex-test.cpp expand.o
+-	$(CXX) ex-test.cpp expand.o -o ex-test $(LFLAGS)
++	$(CXX) ex-test.cpp expand.o $(LDFLAGS) -o ex-test $(LFLAGS)
+ 
+ postal-list: postal-list.cpp expand.o
+-	$(CXX) postal-list.cpp expand.o -o postal-list $(LFLAGS)
++	$(CXX) postal-list.cpp expand.o $(LDFLAGS) -o postal-list $(LFLAGS)
+ 
+ install-bin: $(EXE)
+ 	mkdir -p $(eprefix)/sbin
Index: benchmarks/postal/patches/patch-zz
===================================================================
RCS file: benchmarks/postal/patches/patch-zz
diff -N benchmarks/postal/patches/patch-zz
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ benchmarks/postal/patches/patch-zz	15 Jan 2005 22:22:06 -0000
@@ -0,0 +1,20 @@
+--- postal.cpp.orig	Tue Jan 14 06:33:27 2003
++++ postal.cpp	Sat Jan 15 17:20:27 2005
+@@ -112,7 +112,6 @@ int main(int argc, char **argv)
+   }
+   struct sigaction sa;
+   sa.sa_handler = SIG_IGN;
+-  sa.sa_sigaction = NULL;
+   sa.sa_flags = 0;
+   if(sigaction(SIGPIPE, &sa, NULL))
+   {
+--- rabid.cpp.orig	Tue Jan 14 06:33:02 2003
++++ rabid.cpp	Sat Jan 15 17:21:47 2005
+@@ -112,7 +112,6 @@ int main(int argc, char **argv)
+ 
+   struct sigaction sa;
+   sa.sa_handler = SIG_IGN;
+-  sa.sa_sigaction = NULL;
+   sa.sa_flags = 0;
+   if(sigaction(SIGPIPE, &sa, NULL))
+   {

-- 
						Greg A. Woods

H:+1 416 218-0098  W:+1 416 489-5852 x122  VE3TCP  RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>          Secrets of the Weird <woods@weird.com>