Package: netperf
Version: 2.4.0-2
Severity: normal
Tags: patch

When building 'netperf' on amd64/unstable with gcc-4.0,
I get the following error:

checking for size_t... yes
checking for socklen_t equivalent... unsigned
checking for in_port_t... no
configure: error: Failed to get size of sin_port in struct sockaddr_in.
make: *** [config.status] Error 1

With the attached patch 'netperf' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/netperf-2.4.0/configure ./configure
--- ../tmp-orig/netperf-2.4.0/configure 2005-05-11 18:57:24.000000000 +0200
+++ ./configure 2005-06-15 22:19:35.000000000 +0200
@@ -4195,7 +4195,7 @@
          # "void *" as the second argument to getpeername
          curl_cv_socklen_t_equiv=
          for arg2 in "struct sockaddr" void; do
-            for t in int size_t unsigned long "unsigned long" socklen_t; do
+            for t in int socklen_t size_t unsigned long "unsigned long"; do
                cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
diff -urN ../tmp-orig/netperf-2.4.0/src/missing/m4/socklent.m4 
./src/missing/m4/socklent.m4
--- ../tmp-orig/netperf-2.4.0/src/missing/m4/socklent.m4        2005-05-11 
18:41:52.000000000 +0200
+++ ./src/missing/m4/socklent.m4        2005-06-15 22:18:56.000000000 +0200
@@ -45,7 +45,7 @@
          # "void *" as the second argument to getpeername
          curl_cv_socklen_t_equiv=
          for arg2 in "struct sockaddr" void; do
-            for t in int size_t unsigned long "unsigned long" socklen_t; do
+            for t in int socklent_t size_t unsigned long "unsigned long"; do
                AC_TRY_COMPILE([
                   #ifdef HAVE_SYS_TYPES_H
                   #include <sys/types.h>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to