cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: configure warning

From: Mark Wattier <mark.wattier_at_gmail.com>
Date: Mon, 6 Nov 2006 12:36:14 -0800

In the output from configure I just get:
checking for select... yes

In the config.log, I see it trying various parameter lists for select,
getting the same error each time:
configure:35510: gcc -c -ansi conftest.c >&5
conftest.c: In function `main':
conftest.c:118: error: parse error before "fd_set"

Then it appears to succeed with this one:
| int
| main ()
| {
| extern int select (unsigned int,
| fd_set *, fd_set *, fd_set *,
| const struct timeval *);
| ;
| return 0;
| }
configure:35510: gcc -c -ansi conftest.c >&5
conftest.c: In function `main':
conftest.c:119: warning: `struct timeval' declared inside parameter list
conftest.c:119: warning: its scope is only this definition or
declaration, which is probably not what you want
configure:35516: $? = 0

dolly(markw)> grep SELECT_TYPE lib/config.h
#define SELECT_TYPE_ARG1 int
#define SELECT_TYPE_ARG234 (int *)
#define SELECT_TYPE_ARG5 (struct timeval *)

fd_set is defined in sys/_fd_macros.h, which is included in sys/time.h .

On 11/3/06, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Fri, Nov 03, 2006 at 12:52:29PM -0800, Mark Wattier wrote:
> > Before I added the ansi flag, configure would fail to find
> > gethostbyname. Now, configure gets this warning, and make fails with
> > the message at the bottom.
> >
> > configure: WARNING: zlib.h: present but cannot be compiled
> > configure: WARNING: zlib.h: check for missing prerequisite headers?
> > configure: WARNING: zlib.h: see the Autoconf documentation
> > configure: WARNING: zlib.h: section "Present But Cannot Be Compiled"
> > configure: WARNING: zlib.h: proceeding with the preprocessor's result
> > configure: WARNING: zlib.h: in the future, the compiler will take precedence
> > configure: WARNING: ##
> > ------------------------------------------------------------------------
> > ##
> > configure: WARNING: ## Report this to a suitable curl mailing list
> > => http://curl.haxx.se/mail/ ##
> > configure: WARNING: ##
> > ------------------------------------------------------------------------
>
> --without-zlib should stop this warning. If you want zlib support, then
> you'll have to figure out why it can't be compiled. Could it be that
> you don't have a 64-bit version of zlib installed?
>
> > ../include/curl/multi.h:132: error: parse error before "fd_set"
>
> What does the configure output say when it comes to select()? What does
> 'grep SELECT_TYPE lib/config.h' show? Finally, what header file defines
> the fd_set struct on your system, and is it included in <sys/types.h>?
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
Received on 2006-11-06