[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#53472: package tunnelv depends on old stdc++ library



On Sat, Dec 25, 1999 at 02:13:46PM +0100, Christian Kurz wrote:
> I tried to recompile the package with the an up-to-date potato but it
> bails out with a lot of error-message. So I would say an C++-Programmer
> should take a look at the source first and fix it.

It has a bunch of things stopping it from compiling.

wvtcp.cc and wvudp.cc don't bother including the header files sys/socket.h
and sys/types.h, even though they need them. Recent g++ is much more
strict about this, and missing prototypes are an error. (This is even
more strict than gcc, I think.)

There's bugs in the Makefile too, and the compiler flags don't get passed
correctly to the sub-makefiles, so it can't find the openssl include files.
Actually, I don't know how this ever worked (unless make's behaviour
has changed).

After all that, it still doesn't compile. It seems to have some overriden
functions in wvconf.cc which differ only by return type; I didn't know
this was actually possible/allowed. When when these functions are used
it seems to die.

I'll include a patch for what I've got working so far.. but somebody else
needs to fix the rest, since I can't work it out. Perhaps we should dump it?

Hamish


diff -urN tunnelv-1.00/ipstreams/wvtcp.cc tunnelv-1.00.fixed/ipstreams/wvtcp.cc
--- tunnelv-1.00/ipstreams/wvtcp.cc	Mon Feb 15 20:39:27 1999
+++ tunnelv-1.00.fixed/ipstreams/wvtcp.cc	Mon Dec 27 12:31:00 1999
@@ -7,6 +7,8 @@
 #include "wvstreamlist.h"
 #include "wvtcp.h"
 #include <errno.h>
+#include <sys/types.h>
+#include <sys/socket.h>
 
 WvStreamList WvTCPListener::all_listeners;
 
diff -urN tunnelv-1.00/ipstreams/wvudp.cc tunnelv-1.00.fixed/ipstreams/wvudp.cc
--- tunnelv-1.00/ipstreams/wvudp.cc	Tue Nov  3 13:58:30 1998
+++ tunnelv-1.00.fixed/ipstreams/wvudp.cc	Mon Dec 27 12:31:26 1999
@@ -6,6 +6,8 @@
  * See wvudp.h for details.
  */
 #include "wvudp.h"
+#include <sys/types.h>
+#include <sys/socket.h>
 
 
 WvUDPStream::WvUDPStream(const WvIPPortAddr &_local, const WvIPPortAddr &_rem)
diff -urN tunnelv-1.00/rules.mk tunnelv-1.00.fixed/rules.mk
--- tunnelv-1.00/rules.mk	Sun Nov 15 08:13:24 1998
+++ tunnelv-1.00.fixed/rules.mk	Mon Dec 27 12:42:04 1999
@@ -76,10 +76,10 @@
 export _R_CFLAGS
 export _R_CXXFLAGS
 %.o: %.c
-	$(CC) $$_R_CFLAGS -c $<
+	$(CC) $(_R_CFLAGS) -c $<
 
 %.o: %.cc
-	$(CXX) $$_R_CXXFLAGS -c $<
+	$(CXX) $(_R_CXXFLAGS) -c $<
 	
 ../%.a:
 	@echo "Library $@ does not exist!"; exit 1
diff -urN tunnelv-1.00/tunnelv/Makefile tunnelv-1.00.fixed/tunnelv/Makefile
--- tunnelv-1.00/tunnelv/Makefile	Wed Nov 18 13:59:29 1998
+++ tunnelv-1.00.fixed/tunnelv/Makefile	Mon Dec 27 12:42:15 1999
@@ -7,7 +7,7 @@
 # List of include directories for SSLeay.  If none of these is yours, add
 # it to the list.
 SSLINC= /usr/include/ssl /usr/include/ssleay /usr/local/include/ssl \
-	/usr/local/ssl/include /usr/local/ssleay/include
+	/usr/local/ssl/include /usr/local/ssleay/include /usr/include/openssl
 
 # List of library directories for SSLeay.  Add yours to the list.
 # Don't forget the -L before each directory name!
-- 
Hamish Moffatt VK3SB. CCs of replies on mailing lists are welcome.


Reply to: