[netperf-talk] Trying to compile Netperf4 (svn snapshot) on Solaris
Simon Leinen
simon at limmat.switch.ch
Fri Mar 17 06:12:06 PST 2006
Rick & all,
after more than ten years, I have started to look closely at Netperf
again. I checked out the Netperf4 sources from Subversion and tried
to compile them on a Solaris 9 machine. I found that the following
patch was necessary to avoid a compilation error because of an
undefined symbol "MAX_PATH":
: leinen at arenal[netperf-4-svn-20060317]; svn diff src/netlib.c
Index: src/netlib.c
===================================================================
--- src/netlib.c (revision 83)
+++ src/netlib.c (working copy)
@@ -52,6 +52,10 @@
#include <sys/uio.h>
#endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
However, now I'm running into the problem that some files are missing
- apparently they belong to a kstat-based implementation of system
resource statistics. Are those just missing from SVN for some reason,
or should I start writing them? :-)
make -k
make: *** No rule to make target `netsysstats_kstat.c', needed by `netsysstats_kstat.lo'.
source='netlib.c' object='netlib.o' libtool=no \
depfile='.deps/netlib.Po' tmpdepfile='.deps/netlib.TPo' \
depmode=none /bin/sh ../depcomp \
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR="\"/usr/local/lib/sparcv9\"" -DNETPERFDIR="\"/usr/local/share/netperf\"" -I/usr/local/include/libxml2 -c `test -f 'netlib.c' || echo './'`netlib.c
"netlib.c", line 864: warning: implicit function declaration: strtok_r
"netlib.c", line 864: warning: improper pointer/integer combination: op "="
make: *** No rule to make target `netlib_kstat.c', needed by `netlib_kstat.o'.
source='missing/get_expiration_time.c' object='missing/get_expiration_time.o' libtool=no \
depfile='.deps/missing/get_expiration_time.Po' tmpdepfile='.deps/missing/get_expiration_time.TPo' \
depmode=none /bin/sh ../depcomp \
/opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -DLIBDIR="\"/usr/local/lib/sparcv9\"" -DNETPERFDIR="\"/usr/local/share/netperf\"" -I/usr/local/include/libxml2 -c `test -f 'missing/get_expiration_time.c' || echo './'`missing/get_expiration_time.c
make: Target `all' not remade because of errors.
Compilation exited abnormally with code 2 at Fri Mar 17 11:09:58
Regards,
--
Simon.
More information about the netperf-talk
mailing list