www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zalman Stern <zal...@netcom.com>
Subject apache-api/6229: Apache header files do not compile with C++ compiler.
Date Sun, 25 Jun 2000 07:32:35 GMT

>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:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Jun 25 00:40:00 PDT 2000
>Originator:     zalman@netcom.com
>Release:        2.0a4
Linux RedHat 6.1 etc. gcc version egcs-2.91.66 (egcs-1.1.2 release)
The ap_config.h gile currently has a bug where the
    #ifdef __cplusplus
    extern "C"
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.
Compile the following two one line programs with a C++ compiler:
    #include "ap_config.h"
    #include "httpd.h"
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
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> 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!     ]

View raw message