cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HP-UX 11.00 problems with make

From: ope <ope557_at_yahoo.com>
Date: Thu, 21 Aug 2003 09:50:57 -0700 (PDT)

> > (I know that this used to work)
>
> Recently? These lines your compiler complains on are
> very old. They've been
> like this for ages.

I last compiled curl maybe 4 months ago or so. I am
trying to compile the same code again (same directory,
path, files, etc.).

> > struct timeval {
> This is funny. Didn't the configure script detect a
> gettimeofday() function in
> your system? This struct is only meant to be
> declared if not, and I was under
> the impression that all (well, most) unixes have
> this function.

checking for gettimeofday... no
checking deeper for gettimeofday... but still no

This is what leads me think that something is funny
with my environment. I vaguely remember that I had
problems with the fact the there are two time.h files,
one in /usr/include and one in /usr/include/sys. I
also remember similar problems with size_t
 

> Anyway, try renaming the 'struct FILE' to 'struct
> CURLFILE' in all places it
> is used. I guess 'FILE' is a stupid name to use like
> this.

The changes you suggest all work and get me past the
errors but it does not take long before I get now
ones. I have pasted the new ones below. Something is
screwy around here...

Error 203: "hostip.c", line 147 # Cannot assign 'char
*' with 'void *'.
      id = malloc(*entry_len + 1);
           ^^^^^^^^^^^^^^^^^^^^^^
Error 212: "hostip.c", line 221 # Argument type 'int
*' does not match
    expected parameter type 'long *'.
      entry_id = create_hostcache_id(hostname, port,
&entry_len);
                                                     ^
Error 203: "hostip.c", line 302 # Cannot assign
'Curl_dns_entry *' with 'void
    *'.
      dns = Curl_hash_pick(data->hostcache, entry_id,
entry_len+1);
           
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
Received on 2003-08-22