cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HP-UX 11.00 problems with make

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 21 Aug 2003 14:51:10 +0200 (CEST)

On Wed, 20 Aug 2003, ope wrote:

> I am trying to compile on HP-UX 11.00 using the aCC compiler. I had this
> whole process worked out a few months ago and documented what I did but it I
> can't get it to compile. I would get something is funny in my environment
> but am drawing a blank and was hoping someone might have an idea.
>
> Configure completes without problems when I run the
> following:
> CC=aCC ./configure --disable-shared --without-ssl
>
> (I know that this used to work)

Recently? These lines your compiler complains on are very old. They've been
like this for ages.

> -c file.c -o file.o
> Error (future) 503: "/usr/include/string.h", line 180
> # A function declaration without a linkage specifier may not precede the
> first linkage specification for that function. Previous
> definition was at ["setup.h",
> line 174].
> extern int strcasecmp(const char *, const char *);
> ^^^^^^^^^^

I don't quite understand "without a linkage specifier", but try removing those
lines from the setup.h file. The only C file that uses strcasecmp() and family
is the lib/strequal.c file anyway so those prototypes should be in the setup.h
file in the first place.

> Error 173: "timeval.h", line 38 # Redefined symbol
> 'timeval'; previously
> defined at ["/usr/include/sys/time.h", line 147].
> 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.

> Error 486: "urldata.h", line 259 # A typedef-name
> naming a struct is a
> class-name, but the synonym cannot be used after a struct prefix.
> struct FILE {
> ^^^^^^^^^^^

"class-name" ? What is a class in good old traditional C?

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.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
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-21