NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/43320: build.sh fails on Cygwin 1.7.2



> > gcc4 gcc4-4.3.4-3.tar.bz2 0
> > gcc4-core gcc4-core-4.3.4-3.tar.bz2 0
> > gcc4-g++ gcc4-g++-4.3.4-3.tar.bz2 0
> 
> Hmm, probably host's gcc4 problem?
> I'm always using gcc-3.4.4 on Cygwin. (it's enough for build.sh)
> 
> I'll check how both versions work on Cygwin-1.7.7.

I've confirmed "error: two or more data types in declaration specifiers"
in src/tools/rpcgen occurs only when Cygwin is setup to use gcc-4.3.4.
It doesn't happen with gcc-3.4.4. (gcc3 doesn't check it?)

Probably it's enough to include <rpc/types.h> in u_quad_t check
if we can assume u_quad_t is historically used only around rpc sources?

Index: configure.ac
===================================================================
RCS file: /cvsroot/src/tools/compat/configure.ac,v
retrieving revision 1.71
diff -u -p -r1.71 configure.ac
--- configure.ac        15 Jan 2010 11:26:25 -0000      1.71
+++ configure.ac        26 Sep 2010 16:08:55 -0000
@@ -95,7 +95,13 @@ AC_CHECK_HEADERS(rpc/types.h netconfig.h
 
 # Typedefs.
 AC_TYPE_SIZE_T
-AC_CHECK_TYPES([id_t, long long, u_long, u_char, u_short, u_int, u_quad_t])
+AC_CHECK_TYPES([id_t, long long, u_long, u_char, u_short, u_int])
+AC_CHECK_TYPE(u_quad_t, [AC_DEFINE([HAVE_QUAD_T], 1,
+                         [Define if you have the u_quad_t type.])],,
+[#ifdef HAVE_RPC_TYPES_H
+#include <rpc/types.h>
+#endif])
+
 AC_CHECK_TYPE(socklen_t, [AC_DEFINE([HAVE_SOCKLEN_T], 1,
                          [Define if you have the socklen_t type.])],,
 [#include <sys/types.h>


---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index