-   Programming (
-   -   hacking php (interpreter): undefined reference to `ap_log_error' (

eantoranz 07-31-2012 10:06 AM

hacking php (interpreter): undefined reference to `ap_log_error'
I'm hacking PHP (the interpreter) 5.2.17 and I want to send some error messages for debugging. When I try to build I get this from the linker:


undefined reference to `ap_log_error'
What -l do I have to add in EXTRA_LIBS in the Makefile so that it can build correctly?

Thanks in advance.

eantoranz 07-31-2012 10:12 AM

perhaps there's a php utility function that could wrap sending messages to stderr or apache's error log depending on if it's cli or apache module?

eantoranz 07-31-2012 10:20 AM


NevemTeve 07-31-2012 10:39 AM

ap_log_error should come from the executable (/usr/local/bin/php or /usr/local/sbin/httpd) Your platform? The complete command line? The complete error message?

PS: 5.2.17 is way too old. Use 5.3.15.

All times are GMT -5. The time now is 08:05 AM.