cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: configure warning

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 3 Nov 2006 22:55:08 +0100 (CET)

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-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET