cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Curl 7.0.8 configure troubles

From: Rich Gray <RichGray_at_PlusTechnologies.com>
Date: Thu, 13 Jul 2000 12:01:33 -0400

> -----Original Message-----
> From: Bjorn Reese [mailto:breese_at_mail1.stofanet.dk]
> Sent: Wednesday, July 12, 2000 3:07 PM
> To: curl_at_contactor.se
> Subject: Re: Curl 7.0.8 configure troubles
>
>
> Rich Gray wrote:
>
> > cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src
> -I../include -Aa -DA1.0
> > -D_HPUX_SOURCE -c file.c
> > cpp: "", line 0: warning 2003: Illegal argument to '-D' option.
> >
> > (yeah, it complains about the -D_HPUX_SOURCE, but requires
> it to work... :-\
>
> Maybe the old cc has a different option to define macros from
> the command-line.
> Fortunately, I do not have easy access to a HP-UX 9 cc
> anylonger, so I cannot
> check this for you.
>
> Another thing you should consider is to use -Ae instead of
> -Aa (AFAICR, -Aa is
> strictly ANSI C89 compliant, whereas -Ae allows extensions).
> Another possibility
> is to use aCC, if available.

-Aa with -D_HPUX_SOURCE was the result of a bunch of fooling around some
weeks back with 6.5.2. Seems like I did fool with -Ae, but it took the
above combination to work, if I remember correctly. Don't remember whether
or not I played with aCC. A month is a long time ago, (so many platforms,
so little time.... ;)

> > Seems like CFLAGS is just broken somehow.
>
> Try changing the hardcoded "CFLAGS= ..." line in lib/Makefile.in to
> "CFLAGS=@CFLAGS@" and rerun configure.

Ah, just tried it on NCR, that fixed compilation... still have to get the
-lnsl -lsocket fix back in.

NCR High Performance C Compiler R2.0a
(c) Copyright 1994-95, AT&T Global Information Solutions
(c) Copyright 1987-95, MetaWare Incorporated
***Preprocessor user error: "We can't compile without socket() support!"
1 user error No warnings
*** Error code 8 (bu21)

The main goal of my post was to notify the developers that something which
did work on multiple platforms in 6.5.2 seems to have broken. I'm ok with
6.5.2, although I'd like to see the package get to where it compiles on all
platforms without doing anything more exotic than
setting some configure flags as had to be done on HP.

Thanks!
Rich
Received on 2000-07-13