When build 2.6.4 without modification, I got:
g++-2.95.3 -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-I/auto/insbu-cnstools/include -O2 -Wall -Wwrite-strings
-Woverloaded-virtual -fno-exceptions -fno-rtti
-fno-implement-inlines -Winline -c -o resource.o
`test -f 'resource.cc' || echo './'`resource.cc
resource.cc:246: `IPv6AddrValidate' is not a member of type `ResMgr'
resource.cc:246: warning: `class ResDecl ResDecl42b' defined but not used
make[1]: *** [resource.o] Error 1
This is because of a missing INET6 define, (patch applied below).
After this fix, I hit the next block:
/bin/bash ../libtool --silent --mode=compile g++-2.95.3
-DHAVE_CONFIG_H -I. -I. -I../include -I../include
-I/auto/insbu-cnstools/include -O2 -Wall -Wwrite-strings
-Woverloaded-virtual -fno-exceptions -fno-rtti
-fno-implement-inlines -Winline -c -o NetAccess.lo
`test -f 'NetAccess.cc' || echo'./'`NetAccess.cc
NetAccess.cc: In method `int NetAccess::SocketCreate(int, int, int)':
NetAccess.cc:209: implicit declaration of function `int
inet_aton(...)'
make[1]: *** [NetAccess.lo] Error 1
Any one have a fix for this? Thanks.
> uname -a
SunOS cns-build3 5.6 Generic_105181-28 sun4u sparc
patch for the 1st problem:
--- resource.cc.orig 2002-12-25 05:44:32.000000000 -0800
+++ resource.cc 2003-01-08 07:29:43.015000000 -0800
@@ -243,7 +243,9 @@
ResDecl41 ("net:socket-buffer", "0", ResMgr::UNumberValidate,0),
ResDecl42 ("net:socket-maxseg", "0", ResMgr::UNumberValidate,0),
ResDecl42a("net:socket-bind-ipv4", "", ResMgr::IPv4AddrValidate,0),
+#if INET6
ResDecl42b("net:socket-bind-ipv6", "", ResMgr::IPv6AddrValidate,0),
+#endif
ResDecl43 ("net:timeout", "300", ResMgr::UNumberValidate,0),
ResDecl44 ("net:connection-limit", "0", ResMgr::UNumberValidate,0),
ResDecl45 ("net:connection-takeover", "yes", ResMgr::BoolValidate,0),