Received: (qmail 29613 invoked by uid 501); 25 Jun 2000 07:32:35 -0000 Message-Id: <20000625073235.29611.qmail@locus.apache.org> Date: 25 Jun 2000 07:32:35 -0000 From: Zalman Stern Reply-To: zalman@netcom.com To: submit@bugz.apache.org Subject: Apache header files do not compile with C++ compiler. X-Send-Pr-Version: 3.110 >Number: 6229 >Category: apache-api >Synopsis: Apache header files do not compile with C++ compiler. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jun 25 00:40:00 PDT 2000 >Closed-Date: Sun Jun 25 06:18:25 PDT 2000 >Last-Modified: Sun Jun 25 06:18:25 PDT 2000 >Originator: zalman@netcom.com >Release: 2.0a4 >Organization: >Environment: Linux RedHat 6.1 etc. gcc version egcs-2.91.66 (egcs-1.1.2 release) >Description: The ap_config.h gile currently has a bug where the #ifdef __cplusplus extern "C" #endif is not blanaced with a similarly conditionalized close brace. (I did not have this problem with 2.0a3 .) Also, the header files use the identifier "new", mostly to delcare formal parameters in prototypes. "new" is a reserved word in C++ and hence this does not compile with a C++ compiler. This happens with both 2.0a3 and 2.0a4 but did not happen with 1.3.x versions. >How-To-Repeat: Compile the following two one line programs with a C++ compiler: #include "ap_config.h" and #include "httpd.h" >Fix: The ap_config.h problem is just a typo. Add an apropriate C++ bracket closer to the end of the file. The "new" identifier problem can be fixed easily by changing these to some other name. (There is no dependency on the name of a formal paramter from a header anywhere in the code.) >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: wrowe State-Changed-When: Sun Jun 25 06:18:25 PDT 2000 State-Changed-Why: The problem was identified and the development tree has been corrected on 19 June. Look for this to be fixed with the release of the next 2.0 alpha. Thanks for supporting Apache 2.0 development and participating in its Alpha! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]