The comiler failed with following error when compiling
mod_cplusplus:
++ -DHAVE_CONFIG_H -I. -I. -I../..
-DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/include/apache2
-g -I/tmp/mod_cplusplus/mod_cplusplus/include -g -O2 -c
test_auth.cpp -MT test_auth.lo -MD -MP -MF
.deps/test_auth.TPlo -fPIC -DPIC -o .libs/test_auth.o
test_auth.cpp: In member function `virtual int
AuthHandler::check_user_id(ApacheRequestRec*)':
test_auth.cpp:28: error: invalid conversion from `const
char*' to `char*'
make[3]: *** [test_auth.lo] Error 1
make[3]: Leaving directory
`/tmp/mod_cplusplus/mod_cplusplus/example/handler'
In order to fix it I added the const keyword to
test_auth.cpp line 25:
- char *sent_user = pRequest->user();
+ const char *sent_user = pRequest->user();
regards,
Arno
patch for fixed const keyword in test_auth.cpp
Logged In: YES
user_id=457654
Hi Arno -
I think these are all fixed now in 1.5. Do you want to try
again and let me know?
John