bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] wget1.14: warc.c: compilation fails due to C++ comments


From: John Cornes
Subject: [Bug-wget] wget1.14: warc.c: compilation fails due to C++ comments
Date: Thu, 9 Aug 2012 14:59:55 +1000

Dear Maintainers,
I'd like to report a minor issue: when compiling wget 1.14 on AIX 7.1
configured with --disable-ssl, using V12.1 of IBM's XL C for AIX
compiler, compilation failed in warc.c due to the presence of C++
style comments (//):

"warc.c", line 535.3: 1506-046 (S) Syntax error.
"warc.c", line 535.24: 1506-045 (S) Undeclared identifier digest.
"warc.c", line 536.3: 1506-277 (S) Syntax error: possible missing ';' or ','?
"warc.c", line 537.49: 1506-045 (S) Undeclared identifier sha1_base32.
"warc.c", line 620.3: 1506-046 (S) Syntax error.
"warc.c", line 620.6: 1506-045 (S) Undeclared identifier RFC.
"warc.c", line 625.5: 1506-045 (S) Undeclared identifier uuid_data.
"warc.c", line 627.3: 1506-046 (S) Syntax error.
"warc.c", line 627.6: 1506-045 (S) Undeclared identifier Set.
"warc.c", line 632.49: 1506-045 (S) Undeclared identifier respectively.
make: 1254-004 The error code from the last command is 1.

warc.c:
  +535    // length: "sha1:" + digest + "\0"

  +620    // RFC 4122, a version 4 UUID with only random numbers

  +627    // Set the four most significant bits (bits 12 through 15) of the
  +628    // time_hi_and_version field to the 4-bit version number

  +631    // Set the two most significant bits (bits 6 and 7) of the
  +632    // clock_seq_hi_and_reserved to zero and one, respectively.

Changing to c-style comments allowed compilation to succeed.

Apologies in advance if this has already been reported.

Regards,
John



reply via email to

[Prev in Thread] Current Thread [Next in Thread]