[netperf-dev] netperf4 commit notice r123 - in branches/glib_migration: . src

raj at netperf.org raj at netperf.org
Tue Apr 4 14:16:59 PDT 2006


Author: raj
Date: 2006-04-04 14:16:57 -0700 (Tue, 04 Apr 2006)
New Revision: 123

Modified:
   branches/glib_migration/README.aix
   branches/glib_migration/src/nettest_dns.c
Log:
Oh frabjous day, callou, callay I chortle in my joy for netperf
now compiles on AIX, oh my, oh boy! :) Of course, while netserver
seems fat dumb and happy thusfar, netperf dies in one of the 
nettest_bsd formatting/results routines at the end of a measurement.
Details about AIX compilation can be found in the RAEDME.aix file.


Modified: branches/glib_migration/README.aix
===================================================================
--- branches/glib_migration/README.aix	2006-04-01 08:02:42 UTC (rev 122)
+++ branches/glib_migration/README.aix	2006-04-04 21:16:57 UTC (rev 123)
@@ -1,3 +1,49 @@
 Pseudo-random things about netperf on AIX:
 
-Netperf4 has yet to be compiled on any version of AIX
\ No newline at end of file
+Netperf4 can be compiled under AIX 5.3 at least, using rpms from:
+
+http://gnome.bullfreeware.com/new_index.html
+
+to satisfy the dependencies on pkg-config, libxml2 and glib.  The
+versions used were:
+
+pkg-config-0.19-2
+gettext-0.10.40-5
+glib2-2.8.1-2
+glib2-devel-2.8.1-2
+intltool-0.34.1-1
+zlib-1.2.3-1
+libxml2-2.6.21-1
+zlib-devel-1.2.3-1
+libxml2-devel-2.6.21-1
+
+To successfully compile netperf, one should set "CC" to xlc prior
+to running the configure script:
+
+CC=xlc ./configure
+
+otherwise, there will be problems with some of the glib include 
+files.  Also, it will be necessary to copy "netlib_none.c" and 
+"netsysstats_none.c" to "perfstat" versions or make will become cross.
+At least until AIX-specific versions of those files are produced.
+
+The version of the compiler used was:
+
+# what `which xlc`
+/usr/vac/bin/xlc:
+        61      1.14  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos510 7/11/00 12:04:14
+         IBM XL C/C++ Enterprise Edition V7.0 
+         5724-I11 
+         Licensed Materials - Property of IBM 
+         IBM XL C/C++ Enterprise Edition V7.0 
+         5724-I11 
+         (C) Copyright IBM Corp. 1990, 2004, and by others. All Rights Reserved. 
+         IBM is a trademark or registered trademark of International Business Machines Corp. in the U.S., 
+         other countries or both. 
+         US Government Users Restricted Rights - Use, duplication or disclosure 
+         restricted by GSA ADP Schedule Contract with IBM Corp. 
+         Version: 07.00.0000.0000  
+         Level: 040805, 2004/08/05 18:40:13 
+
+As of this writing, netperf was generating a core file when trying 
+to process the results of a BSD test.

Modified: branches/glib_migration/src/nettest_dns.c
===================================================================
--- branches/glib_migration/src/nettest_dns.c	2006-04-01 08:02:42 UTC (rev 122)
+++ branches/glib_migration/src/nettest_dns.c	2006-04-04 21:16:57 UTC (rev 123)
@@ -92,7 +92,7 @@
 #endif
 
 #ifdef HAVE_ARPA_NAMESER_COMPAT_H
-#include <arpa/nameser_compat.h>
+#include <arpa/onameser_compat.h>
 #endif
 
 #ifdef HAVE_RESOLV_H
@@ -124,6 +124,10 @@
 
 #include "nettest_dns.h"
 
+#ifndef C_NONE
+#define C_NONE ns_c_none
+#endif
+
 #ifdef WIN32
 #define CHECK_FOR_INVALID_SOCKET (temp_socket == INVALID_SOCKET)
 #define CHECK_FOR_RECV_ERROR(len) (len == SOCKET_ERROR)
@@ -662,8 +666,12 @@
   else if (!strcasecmp(type_string,"T_RT")) return(T_RT);
   else if (!strcasecmp(type_string,"T_NSAP")) return(T_NSAP);
   else if (!strcasecmp(type_string,"T_NSAP_PTR")) return(T_NSAP_PTR);
+#ifdef T_ATMA
   else if (!strcasecmp(type_string,"T_ATMA")) return(T_ATMA);
+#endif
+#ifdef T_NAPTR
   else if (!strcasecmp(type_string,"T_NAPTR")) return(T_NAPTR);
+#endif
 #ifdef T_A6
   else if (!strcasecmp(type_string,"T_A6")) return(T_A6);
 #endif



More information about the netperf-dev mailing list