LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 07-31-2012, 11:06 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
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:

Code:
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.
 
Old 07-31-2012, 11:12 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
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?
 
Old 07-31-2012, 11:20 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
php_error_docref?
 
Old 07-31-2012, 11:39 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,934

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
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.
 
  


Reply

Tags
apache, ap_error_log, gcc, linker, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another undefined reference CollieJim Linux - General 2 12-18-2010 12:08 AM
undefined reference to... dimah Programming 3 12-27-2006 10:57 AM
Undefined reference to: ashlesha Programming 5 11-08-2006 02:07 PM
undefined reference? Sharky01252 Programming 3 11-07-2006 12:36 PM
undefined reference vkmgeek Programming 1 05-11-2006 07:37 AM


All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration