Message forwarded to ports@ after no response from port owner.

---------- Forwarded message ----------
From: Walter Goulet <[EMAIL PROTECTED]>
Date: Nov 4, 2007 7:29 PM
Subject: IPerf port build error on 4.2
To: [EMAIL PROTECTED]


Hi,

While building the iperf port, I received the following build error:

/usr/include/stdint.h:96: error: conflicting types for `uintmax_t'
../include/headers.h:183: error: previous declaration of `uintmax_t'
*** Error code 1

I looked at the original definition for uintmax_t and found it here:
./inttypes.h:uintmax_t  strtoumax(const char *, char **, int);

So I commented out the additional declaration for uintmax_t in the
headers.h iperf include file and built the port successfully. It seems
to be working so far in my tests.

If this is the right solution to the problem, I've included a diff
below that removes the redefinition.

Thanks,
Walter

--- headers.h.orig      Sun Nov  4 19:20:16 2007
+++ headers.h_patch     Sun Nov  4 19:28:27 2007
@@ -179,10 +179,6 @@
 // Rationalize stdint definitions and sizeof, thanks to ac_create_stdint_h.m4
 // from the gnu archive

-#if defined( __OpenBSD__ )
-       typedef unsigned long uintmax_t;
-#endif
-
 #include <iperf-int.h>
 typedef uintmax_t max_size_t;

Reply via email to