ID: 11043
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Operating system: Linux (severely modified Redhat
PHP Version: 4.0 Latest CVS (2001-05-23)
Description: apache2 build fails: undefined symbol: tsrm_error

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

Previous Comments:
---------------------------------------------------------------------------

[2001-05-23 03:19:07] [EMAIL PROTECTED]
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:01:21] [EMAIL PROTECTED]
And you did checkout the TSRM too? 
Or did you do cvs update in that dir?
Did you try ./cvsclean?

--Jani


---------------------------------------------------------------------------

[2001-05-23 02:54:02] [EMAIL PROTECTED]
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 02:25:58] [EMAIL PROTECTED]
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


---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=11043


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to