cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: configure warning

From: Mark Wattier <mark.wattier_at_gmail.com>
Date: Wed, 8 Nov 2006 10:09:57 -0800

Hoping to dredge up another clue, I re-ran configure --without-zlib,
after making sure my modified curl.h was still there ( doing the
include <sys/time.h> ), and this is the first error of this type to
show up in the config.log:

configure:32448: checking for curl_off_t
configure:32482: gcc -c -ansi conftest.c >&5
In file included from conftest.c:66:
include/curl/curl.h:101: error: parse error before "curl_off_t"
include/curl/curl.h:101: warning: data definition has no type or storage class
In file included from include/curl/curl.h:1597,
                 from conftest.c:66:
include/curl/multi.h:132: error: parse error before "fd_set"
conftest.c:69: error: parse error before "ac__type_new_"
conftest.c:69: warning: data definition has no type or storage class
conftest.c: In function `main':
conftest.c:73: error: parse error before ')' token
configure:32488: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list =>
http://curl.haxx.se/mail/"
| #define PACKAGE "curl"
| #define VERSION "7.16.0"
| #define OS "hppa2.0w-hp-hpux11.00"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_GETHOSTBYNAME 1
| #define DL_LDAP_FILE "libldap.sl"
| #define DL_LBER_FILE "liblber.sl"
| #define HAVE_DISABLED_NONBLOCKING 1
| #define HAVE_WRITABLE_ARGV 1
| #define HAVE_LOCALTIME_R 1
| #define NEED_REENTRANT 1
| #define HAVE_GMTIME_R 1
| #define STDC_HEADERS 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_TIME_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_LIBGEN_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_ARPA_TFTP_H 1
| #define HAVE_SETJMP_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| /* end confdefs.h. */
|
| #include <stdio.h>
| #include "./include/curl/curl.h"
|
|
| typedef curl_off_t ac__type_new_;
| int
| main ()
| {
| if ((ac__type_new_ *) 0)
| return 0;
| if (sizeof (ac__type_new_))
| return 0;
| ;
| return 0;
| }
configure:32520: result: no
configure:32527: checking size of curl_off_t
configure:32944: gcc -o conftest -ansi conftest.c >&5
In file included from conftest.c:66:
include/curl/curl.h:101: error: parse error before "curl_off_t"
include/curl/curl.h:101: warning: data definition has no type or storage class
In file included from include/curl/curl.h:1597,
                 from conftest.c:66:
include/curl/multi.h:132: error: parse error before "fd_set"
conftest.c:69: error: parse error before "ac__type_sizeof_"
conftest.c:69: warning: data definition has no type or storage class
configure:32947: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list =>
http://curl.haxx.se/mail/"
| #define PACKAGE "curl"
| #define VERSION "7.16.0"
| #define OS "hppa2.0w-hp-hpux11.00"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_GETHOSTBYNAME 1
| #define DL_LDAP_FILE "libldap.sl"
| #define DL_LBER_FILE "liblber.sl"
| #define HAVE_DISABLED_NONBLOCKING 1
| #define HAVE_WRITABLE_ARGV 1
| #define HAVE_LOCALTIME_R 1
| #define NEED_REENTRANT 1
| #define HAVE_GMTIME_R 1
| #define STDC_HEADERS 1
| #define HAVE_MALLOC_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_TIME_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_LIBGEN_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_ARPA_TFTP_H 1
| #define HAVE_SETJMP_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| /* end confdefs.h. */
|
| #include <stdio.h>
| #include "./include/curl/curl.h"
|
|
| typedef curl_off_t ac__type_sizeof_;
|
| static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
| static unsigned long int ulongval () { return (long int) (sizeof
(ac__type_sizeof_)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| return 1;
| if (((long int) (sizeof (ac__type_sizeof_))) < 0)
| {
| long int i = longval ();
| if (i != ((long int) (sizeof (ac__type_sizeof_))))
| return 1;
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long int i = ulongval ();
| if (i != ((long int) (sizeof (ac__type_sizeof_))))
| return 1;
| fprintf (f, "%lu\n", i);
| }
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:32979: result: 0

On 11/7/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 7 Nov 2006, Mark Wattier wrote:
>
> > I did compile a trivial program that defines a variable of type fd_set. This
> > compiled without errors:
>
> [...]
>
> > Since the error I get says :Parse error before "fd_set" , and I tried
> > changing the include in curl.h to use sys/time.h, and that made no
> > difference, could it be something on the previous line?
>
> I thought about that too, but then I checked the configure check errors you
> also got with fd_set and it said the exact same thing with a very simple line
> before that.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2006-11-08