cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Install curl in home directory

From: <rmitchell_at_eds.com>
Date: Fri, 11 Oct 2002 06:56:42 -0500

Looks like the definition of z_stream is missing. This is part of the zlib
package.

At the top of urldata.h is this:

    #ifdef HAVE_ZLIB_H
    #include <zlib.h> /* for content-encoding 08/28/02 jhrg */
    #endif

and down near line 260 is this:

    #ifdef HAVE_LIBZ
      bool zlib_init; /* True if zlib already initialized;
                                       undefined if Content-Encdoing header.
*/
      z_stream z; /* State structure for zlib. */
    #endif

So, maybe configure found libz someplace and set the HAVE_LIBZ flag, but
didn't find zlib.h and so didn't set HAVE_ZLIB_H???

Try telling configure where zlib is:

    ./configure --prefix=$HOME --with-zlib=XXXX

Where XXXX is likely either /usr (if you find /usr/include/zlib.h &
/usr/lib/libz.a) or /usr/local (if you find /usr/local/include/zlib.h &
/usr/local/lib/libz.a).

If you find libz.a and don't find zlib.h, you may need to install your own
copy of zlib. Or possibly rerun configure with --without-zlib, but I don't
know what functionality you'd lose...

Daniel, if I'm reading configure.in correctly, the libz check is not tied to
the zlib.h check. Is this how it should be? A RedHat system (for example)
could have the library, but not have the headers if zlib-devel.xxx.rpm was not
installed. Of course, configure is probably doing a whole lot of stuff I have
no clue about, so what I just said might be complete twaddle... :)

Ralph Mitchell

"Michael J. Salo" wrote:

> Hello
> Just trying to install Curl in my home directory on a Linux ISP, for use of
> some PHP scripts I have that require it.
>
> I unzipped the files and I'm following these steps to install:
>
> ./configure --prefix=$HOME
> (this appears to go ahead fine)
>
> make
> (this dies with errors)
>
> make install
> (this dies with more errors)
>
> Here is the output from "make" at the point where it appears to go wrong:
>
> make[2]: Entering directory `/home/salo/temp/curl-7.10/lib'
> source='file.c' object='file.lo' libtool=yes \
> depfile='.deps/file.Plo' tmpdepfile='.deps/file.TPlo' \
> depmode=gcc /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=compile
> gcc -DHAVE_CONFIG_H -I../include -I../lib -I.
> ./lib -I/include -g -O2 -c -o file.lo `test -f file.c || echo './'`file.c
> gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/include -g -O2 -c
> file.c -
> Wp,-MD,.deps/file.TPlo -o file.o
> In file included from file.c:81:
> urldata.h:260: parse error before `z_stream'
> urldata.h:260: warning: no semicolon at end of struct or union
> urldata.h:283: parse error before `}'
> urldata.h:431: field `keep' has incomplete type
> make[2]: *** [file.lo] Error 1
> make[2]: Leaving directory `/home/salo/temp/curl-7.10/lib'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/salo/temp/curl-7.10/lib'
> make: *** [all-recursive] Error 1
>
> Script stops here.
>
> Why does this look like a syntax error? I haven't altered any files.
>
> Michael J. Salo
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-11