php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11043 apache2 build fails: undefined symbol: tsrm_error
Submitted: 2001-05-23 02:25 UTC Modified: 2001-10-23 07:32 UTC
From: vlad@php.net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (2001-05-23) OS: Linux (severely modified Redhat
Private report: No CVE-ID: None
 [2001-05-23 02:25 UTC] vlad@php.net
Got the latest CVS of apache2 and php (May 22, 2001). Both built fine. however, `apachectl start` caused this:

Syntax error on line 186 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: undefined symbol: tsrm_error

Configure line was:
./configure --prefix=/usr/local/apache2 --with-apxs2=/usr/local/apache2/bin/apxs --with-imap --with-mcrypt=/usr --with-mysql=/usr --with-pspell --with-gd --with-ttf=/usr/include/freetype --with-jpeg-dir=/usr --enable-debug

Where did tsrm_error go? I am not familiar with TSRM at all, and I was just playing with apache2, so I might be missing something trivial, but I can't see it. And I won't have time to look into that for at least a couple of days, so I just decided to submit this so it does not get lost.

Vlad

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-23 02:54 UTC] vlad@php.net
after poking around with the source, I found that omitting '--enable-debug' fixes that problem. However, it starts spitting out segfaults after that, but I think that is a different issue...

Anyway, there is clearly a problem when '--enable-debug' is specified.
 [2001-05-23 03:01 UTC] sniper@php.net
And you did checkout the TSRM too? 
Or did you do cvs update in that dir?
Did you try ./cvsclean?

--Jani

 [2001-05-23 03:19 UTC] vlad@php.net
Yes, I did check out TSRM (it would never have built otherwise in the first place, right?)

It was a fresh clean check-out, so I would assume I do not need to run ./cvs-clean. I did it anyway (just in case, since you asked), and the result is exactly the same.

Well, I'm taking off work in 10 minutes so unless you have any more suggestions, Jani, I'll read the list tomorrow and see if I get any feedback, and maybe poke around some more.
 [2001-05-23 03:34 UTC] vlad@php.net
ok, last thing. It looks like TSRM_DEBUG is not defined when it should be, so if I just explicitly #define it somewhere at the beginning of TSRM/TSRM.h file, everything works like a charm (still with segfaults, of course, but that's irrelevant).

I don't have the time to track down why TSRM_DEBUG does not get #defined. Maybe later.

Vlad
 [2001-05-24 23:48 UTC] sniper@php.net
Do you still get this error?
 [2001-05-25 12:43 UTC] vlad@php.net
With yesterday's CVS, yes. (I just #define TSRM_DEBUG
 as a temporary fix). I couldn't get to CVS for a while
though, so I am not sure about the latest source.
 [2001-05-29 15:50 UTC] sniper@php.net
latest CVS of both Zend and TSRM (and PHP) work just fine
for me with apache 1.3.20..but I haven't tried Apache 2 yet.

--Jani

 [2001-05-29 16:36 UTC] vlad@php.net
Oh, I probably did not make that clear - I have a few CVS builds that work flawlessly with Apache 1.3.x (1.3.14, I think). The builds for Apache 2 cause the problem. I tried the latest CVS (checked out just before the CVS went down), and Friday's morning CVS snapshot of Apache 2, and the problem is still there.

I kinda wonder if I could blame libtool though - I updated libtool to 1.4-2 and automake to 1.4p1-1 so I could compile the latest php and apache, and it broke some earlier builds; it appears to be totally broken. I had to revert to older versions of libtool and automake so my co-workers won't kill me. I won't be able to test it until I can find libtool that works and doesn't break my old stuff.

Jani, if you can test it again apache 2, and prove it wrong, please, close the bug report and tell me what version of libtool and which snapshot of apache2 you used. Otherwise, I will probably suspend this report until I can test it again.

Vlad

 [2001-05-29 16:37 UTC] vlad@php.net
can't suspend from "User Modify", only from "Dev Modify"... suspending now...
 [2001-10-18 15:21 UTC] sander@php.net
Any news on this yet?
 [2001-10-23 07:32 UTC] sniper@php.net
Other people are able to get latest CVS work with Apache2.
(latest CVS of that too I think)

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 30 07:01:27 2024 UTC