cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem compiling with msys/mingw

From: Andres Garcia <fandom_at_retemail.es>
Date: Mon, 22 Nov 2004 19:41:19 +0100

Hi,

When I tried to run the test script for the auto page for msys/mingw, it
failed to compile, saying:

../../curl/lib/select.c:38:2: #error "We can't compile without select()
support!"

The weird thing is that when I did 'configure' and 'make' by hand to
locate the problem, it worked.

Doesn't the test script work the same way as doing it by hand?.

The log of the test can be found:

http://curl.haxx.se/auto/log.cgi?id=20041122175207-2642

And in case it helps, the diff between it and running configure is:

--- test.txt Mon Nov 22 16:31:06 2004
+++ Test/conf.txt Mon Nov 22 18:39:23 2004
@@ -202,6 +170,7 @@
 checking for zlib.h... yes
 configure: found both libz and libz.h header
 checking whether to build with libidn... yes
+checking for idna_to_ascii_4i in -lidn... no
 checking for idna_to_ascii_lz in -lidn... no
 checking AIX 4.3 or later... no
 checking for gethostbyname_r... no
@@ -209,6 +178,10 @@
 checking for localtime_r... no
 checking for strerror_r... no
 checking for gmtime_r... no
+checking winsock2.h usability... yes
+checking winsock2.h presence... yes
+checking for winsock2.h... yes
+checking for ftruncate... yes
 checking for ANSI C header files... (cached) yes
 checking for sys/types.h... (cached) yes
 checking for sys/time.h... yes
@@ -235,7 +208,6 @@
 checking for dlfcn.h... (cached) no
 checking for alloca.h... no
 checking for winsock.h... yes
-checking for winsock2.h... yes
 checking for time.h... yes
 checking for io.h... yes
 checking for pwd.h... no
@@ -254,8 +226,6 @@
 checking size of size_t... 4
 checking for long... yes
 checking size of long... 4
-checking for time_t... yes
-checking size of time_t... 4
 checking for long long... yes
 checking if numberLL works... yes
 checking for ssize_t... yes
@@ -320,9 +290,6 @@
 checking for basename... no
 checking deeper for basename... but still no
 checking for setlocale... yes
-checking for ftruncate... yes
-checking for pipe... no
-checking deeper for pipe... but still no
 checking for poll... no
 checking deeper for poll... but still no
 checking for sigsetjmp defined as macro... no
@@ -330,11 +297,8 @@
 checking for perl... /bin/perl
 checking for gnroff... no
 checking for nroff... no
-configure: WARNING: disabling built-in manual
 checking whether to enable ares... no
-checking whether to enable verbose strings... yes
 checking whether to enable debug options... no
-checking whether to enable cryptographic authentication methods... yes
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating docs/Makefile
@@ -363,6 +327,7 @@
 config.status: creating curl-config
 config.status: creating lib/config.h
 config.status: creating src/config.h
+config.status: src/config.h is unchanged
 config.status: executing depfiles commands
 configure: Configured to build curl/libcurl:
 
@@ -372,1268 +337,12 @@
   Compiler: gcc
   SSL support: enabled
   zlib support: enabled
- krb4 support: no (--with-krb4*)
- GSSAPI support: no (--with-gssapi)
- SPNEGO support: no (--with-spnego)
- c-ares support: no (--enable-ares)
- ipv6 support: no (--enable-ipv6)
- IDN support: no (--with-libidn)
+ krb4 support: no (--with-krb4*)
+ GSSAPI support: no (--with-gssapi)
+ SNPEGO support: no (--with-spnego)
+ c-ares support: no (--enable-ares)
+ ipv6 support: no (--enable-ipv6)
+ IDN support: no (--with-libidn)
   Build libcurl: Shared=yes, Static=yes
- Built-in manual: no (--enable-manual)
- Verbose errors: enabled (--disable-verbose)
+ Built-in manual: no (--enable-manual)
 
-testcurl: configure seems to have finished fine
-testcurl: display lib/config.h
-#define HAVE_ASSERT_H 1
-#define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
-#define HAVE_FCNTL_H 1
-#define HAVE_FTRUNCATE 1
-#define HAVE_GETHOSTBYNAME 1
-#define HAVE_INTTYPES_H 1
-#define HAVE_IOCTLSOCKET 1
-#define HAVE_IO_H 1
-#define HAVE_LIBCRYPTO 1
-#define HAVE_LIBSSL 1
-#define HAVE_LIBZ 1
-#define HAVE_LIMITS_H 1
-#define HAVE_LL 1
-#define HAVE_LOCALE_H 1
-#define HAVE_LONGLONG 1
-#define HAVE_MALLOC_H 1
-#define HAVE_MEMORY_H 1
-#define HAVE_OPENSSL_CRYPTO_H 1
-#define HAVE_OPENSSL_ENGINE_H 1
-#define HAVE_OPENSSL_ERR_H 1
-#define HAVE_OPENSSL_PEM_H 1
-#define HAVE_OPENSSL_RSA_H 1
-#define HAVE_OPENSSL_SSL_H 1
-#define HAVE_OPENSSL_X509_H 1
-#define HAVE_PERROR 1
-#define HAVE_RAND_EGD 1
-#define HAVE_RAND_SCREEN 1
-#define HAVE_RAND_STATUS 1
-#define HAVE_SETJMP_H 1
-#define HAVE_SETLOCALE 1
-#define HAVE_SIGNAL 1
-#define HAVE_STDINT_H 1
-#define HAVE_STDLIB_H 1
-#define HAVE_STRCASECMP 1
-#define HAVE_STRCMPI 1
-#define HAVE_STRDUP 1
-#define HAVE_STRFTIME 1
-#define HAVE_STRICMP 1
-#define HAVE_STRINGS_H 1
-#define HAVE_STRING_H 1
-#define HAVE_STRSTR 1
-#define HAVE_STRTOLL 1
-#define HAVE_SYS_PARAM_H 1
-#define HAVE_SYS_STAT_H 1
-#define HAVE_SYS_TIME_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_SYS_UTIME_H 1
-#define HAVE_TIME_H 1
-#define HAVE_UNISTD_H 1
-#define HAVE_UTIME 1
-#define HAVE_UTIME_H 1
-#define HAVE_WINSOCK2_H 1
-#define HAVE_WINSOCK_H 1
-#define HAVE_WRITABLE_ARGV 1
-#define HAVE_ZLIB_H 1
-#define NEED_BASENAME_PROTO 1
-#define OS "i686-pc-mingw32"
-#define PACKAGE "curl"
-#define PACKAGE_BUGREPORT "a suitable curl mailing list =>
http://curl.haxx.se/mail/"
-#define PACKAGE_NAME "curl"
-#define PACKAGE_STRING "curl -"
-#define PACKAGE_TARNAME "curl"
-#define PACKAGE_VERSION "-"
-#define RANDOM_FILE "/dev/urandom"
-#define RETSIGTYPE void
-#define SELECT_TYPE_ARG1 int
-#define SELECT_TYPE_ARG234 (int *)
-#define SELECT_TYPE_ARG5 (struct timeval *)
-#define SIZEOF_CURL_OFF_T 8
-#define SIZEOF_LONG 4
-#define SIZEOF_SIZE_T 4
-#define SIZEOF_TIME_T 4
-#define STDC_HEADERS 1
-#define TIME_WITH_SYS_TIME 1
-#define VERSION "7.12.3-CVS"
-#ifndef _ALL_SOURCE
-#endif
-#define in_addr_t unsigned long
-#define socklen_t int
-testcurl: display src/config.h
-#define OS "i686-pc-mingw32"
-#define HAVE_UNISTD_H 1
-#define HAVE_IO_H 1
-#define HAVE_STRDUP 1
-#define HAVE_UTIME 1
-#define HAVE_UTIME_H 1
-#define HAVE_SYS_UTIME_H 1
-#define HAVE_SYS_TYPES_H 1
-#define HAVE_WRITABLE_ARGV 1
-#define HAVE_SYS_TIME_H 1
-#define HAVE_TIME_H 1
-#define TIME_WITH_SYS_TIME 1
-#define HAVE_STRTOLL 1
-#define SIZEOF_CURL_OFF_T 8
-#define SIZEOF_LONG 4
-#define HAVE_LIBZ 1
-#define HAVE_LIMITS_H 1
-#define HAVE_LOCALE_H 1
-#define HAVE_SETLOCALE 1
-#define socklen_t int
-#define HAVE_FTRUNCATE 1

Andres
Received on 2004-11-22