You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/11/10 09:57:12 UTC

DO NOT REPLY [Bug 50243] New: parameter "new" in ap_merge_log_config prototype cause errors while compiling C++ module

https://issues.apache.org/bugzilla/show_bug.cgi?id=50243

           Summary: parameter "new" in ap_merge_log_config prototype cause
                    errors while compiling C++ module
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: simcha.churaroo@optier.com


Detected in 2.3.8.

I am building my C++ apache module (which was built fine with 2.0.* and 2.2.*).
I get the following error:

/mybuild/apache/httpd/include/http_config.h:989: syntax error before `new'

I managed to workaround this error by modifying my module code as follows:

#define new _new_
#include "http_config.h"
#undef new


However, I think apache core header files should compile fine out-of-the-box.


gcc version:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50243] parameter "new" in ap_merge_log_config prototype cause errors while compiling C++ module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50243

--- Comment #3 from Jeff Trawick <tr...@apache.org> 2010-11-10 07:19:02 EST ---
oops, race condition :)  I didn't think to look for a commit failure since I
had updated  moments before

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50243] parameter "new" in ap_merge_log_config prototype cause errors while compiling C++ module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50243

--- Comment #2 from Jeff Trawick <tr...@apache.org> 2010-11-10 07:13:59 EST ---
line numbers have changed quite a bit since 2.3.8, but I assume this is the
issue you found:


Index: include/http_config.h
===================================================================
--- include/http_config.h    (revision 1033417)
+++ include/http_config.h    (working copy)
@@ -1000,10 +1000,10 @@
  * Merge old ap_logconf into new ap_logconf.
  * old and new must have the same life time.
  * @param old The ap_logconf to merge from
- * @param new The ap_logconf to merge into
+ * @param new_logconf The ap_logconf to merge into
  */
 AP_DECLARE(void) ap_merge_log_config(const struct ap_logconf *old,
-                                     struct ap_logconf *new);
+                                     struct ap_logconf *new_logconf);


(I didn't see any other problems remaining in that file)

fixed in trunk, will be in 2.3.9

thanks!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50243] parameter "new" in ap_merge_log_config prototype cause errors while compiling C++ module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50243

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2010-11-10 07:10:52 EST ---
Fixed in r1033427 and only affects trunk.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org