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 10:41:15 -0800

I tried adding #include <sys/select.h> as suggested below, and indeed,
this header file does not exist. I configured it with --without-zlib,
and the zlib warning is gone. I am still getting the same failure in
make, but I am using gcc for the compiler, having seen that it can do
64-bit:

 make
Making all in lib
make[1]: Entering directory `/home/markw64/curl-7.16.0/lib'
echo "/* This file is generated automatically */" > ../lib/ca-bundle.h
echo '#undef CURL_CA_BUNDLE /* unknown */' >> ../lib/ca-bundle.h
make all-am
make[2]: Entering directory `/home/markw64/curl-7.16.0/lib'
if /usr/bin/posix/sh ../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I../include -I../lib -I../lib -ansi -MT file.lo
-MD -MP -MF ".deps/file.Tpo" -c -o file.lo file.c; \
then mv -f ".deps/file.Tpo" ".deps/file.Plo"; else rm -f
".deps/file.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -ansi -MT file.lo
-MD -MP -MF .deps/file.Tpo -c file.c -fPIC -DPIC -o .libs/file.o
In file included from ../include/curl/curl.h:1597,
                 from cookie.h:35,
                 from urldata.h:49,
                 from file.c:79:
../include/curl/multi.h:132: error: parse error before "fd_set"
make[2]: *** [file.lo] Error 1
make[2]: Leaving directory `/home/markw64/curl-7.16.0/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/markw64/curl-7.16.0/lib'
make: *** [all-recursive] Error 1
dolly(markw64)> gcc -v
Reading specs from /usr/local/pa20_64/lib/gcc-lib/hppa64-hp-hpux11.00/3.2/specs
Configured with: ../gcc/configure --prefix=/usr/local/pa20_64
--enable-languages=c,c++ --host=hppa64-hp-hpux11.00
--target=hppa64-hp-hpux11.00 --with-ld=/usr/ccs/bin/ld --with-gnu-as
--enable-libstdcxx-v3 --disable-checking
Thread model: single
gcc version 3.2 20020708 (experimental)
dolly(markw64)>

On 11/3/06, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Fri, 3 Nov 2006, Mark Wattier wrote:
>
> > I got the following warning while running configure for curl-7.16.0 on HP UX
> > 11. I am trying to do this with a 64-bit compiler
> >
> > configure: WARNING: zlib.h: present but cannot be compiled
> > configure: WARNING: zlib.h: check for missing prerequisite headers?
>
> While strange, this should not cause any major problems. It should just
> disable the use of zlib in the build. If you want to fix it, investigate the
> config.log and see what test program that failed and then try to see why it
> fails.
>
> > /usr/local/pa20_64/bin/gcc -DHAVE_CONFIG_H -I../include -I../lib
> > -I../lib -ansi -MT file.lo -MD -MP -MF .deps/file.Tpo -c file.c -DPIC
> > -o .libs/file.o
> > In file included from ../include/curl/curl.h:1596,
> > from cookie.h:35,
> > from urldata.h:49,
> > from file.c:79:
> > ../include/curl/multi.h:132: error: parse error before "fd_set"
>
> Clearly lib/file.c is not including the correct system header for the fd_set
> type for you. I'm a bit surprised, since (lib)curl has built on HPUX for ages.
>
> Currently my HPUX test server is inaccessible so I can't verify that it still
> builds.
>
> Can you try editing the include/curl/curl.h header at around line 154 to make
> sure it includes <sys/select.h> for you and see if it helps? The comment there
> says you shouldn't have thad header...
>
> I googled on this, and found indications that <sys/time.h> would be the one to
> use for select() on HP-UX 11, and as far as I can see that is already
> included!
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2006-11-06