cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: compiling curl on AIX 5.3

From: Everett, Marty <MEverett_at_IKON.com>
Date: Mon, 25 Jun 2007 17:01:52 -0400

  I did not change the config options from 7.15 to 7.16. I have tried
other version of 7.16 with the same results but with different line
numbers.

  +530 #else
  +531 /* The macro "##" is ISO C, we assume pre-ISO C doesn't support
it. */
  +532 #define LONG CURLOPTTYPE_LONG
  +533 #define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT
  +534 #define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT
  +535 #define OFF_T CURLOPTTYPE_OFF_T
  +536 #define CINIT(name,type,number) CURLOPT_/**/name = type + number
  +537 #endif
  +538
  +539 /*
  +540 * This macro-mania below setups the CURLOPT_[what] enum, to be
used with
  +541 * curl_easy_setopt(). The first argument in the CINIT() macro
is the [what]
  +542 * word.
  +543 */
  +544
  +545 typedef enum {
  +546 /* This is the FILE * or void * the regular output should be
written to. */
  +547 CINIT(FILE, OBJECTPOINT, 1),
  +548
  +549 /* The full URL to get/put */
  +550 CINIT(URL, OBJECTPOINT, 2),
  +551
  +552 /* Port number to connect to, if other than default. */
  +553 CINIT(PORT, LONG, 3),
  +554
  +555 /* Name of proxy to use. */
  +556 CINIT(PROXY, OBJECTPOINT, 4),
  +557
  +558 /* "name:password" to use when fetching. */
  +559 CINIT(USERPWD, OBJECTPOINT, 5),
  +560
  +561 /* "name:password" to use with proxy. */
  +562 CINIT(PROXYUSERPWD, OBJECTPOINT, 6),
  +563
  +564 /* Range to get, specified as an ASCII string. */
  +565 CINIT(RANGE, OBJECTPOINT, 7),

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: Monday, June 25, 2007 4:29 PM
To: the curl tool
Subject: Re: compiling curl on AIX 5.3

On Mon, 25 Jun 2007, Everett, Marty wrote:

> I can build 7.15.5 with no issue but 7.16 will not compile. Does
anyone have
> an answer to below error?

> cc -qlanglvl=extc89 -DHAVE_CONFIG_H -I../include -I../lib -I../lib
> -I/opt/freeware/include/openssl -I/opt/freeware/include -g -qthreaded
> -qnoansialias -c -M file.c -DPIC -o .libs/file.o
>
> "../include/curl/curl.h", line 547.9: 1506-277 (S) Syntax error:
> possible missing ',' or '}'?

I don't see how this has changed between 7.15.5 and the following
releases...

What version are you trying, I mean what's on line 547 in
include/curl/curl.h
for you?

Is that -qlanglvl=extc89 option making cc truly ANSI C C89 compliant?

-- 
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
Received on 2007-06-25