|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6868 undefined symbol: zendtext
Submitted: 2000-09-23 23:56 UTC Modified: 2000-12-07 11:42 UTC
From: mrsizer at home dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.2 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mrsizer at home dot com
New email:
PHP Version: OS:


 [2000-09-23 23:56 UTC] mrsizer at home dot com
Newly downloaded php-4.0.2
( ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql )
warned me that I had neither bison nor byacc.
make install
both clean

Apache 1.3.12
( ./configure --enable-module=most --enable-shared=max )
make install
both clean - served pages fine before the php make install

/usr/local/apache/bin/apachectl configtest
generates the undefined symbol: zendtext error.

grepping the Zend directory, it appears to be a valid error, although why it didn't show up in the link I have no idea.

zend_indent.c and zend_highlight.c both contain an "extern zendtext char*;" declaration and a "#define zendtext ((char *) zend_get_zendtext(CLS_C))"

All other references are usage, not declarations or definitions (there is one "zendtext[i]++" in zend_indent.c which makes no sense, given the #define)

That extern char* is not, according to grep, defined anywhere.

 - Mark R. Sizer


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-26 16:09 UTC] mrsizer at home dot com
Further research:

It appears that libtool is not working.

The zendtext symbol is in zend_indent.lo and 
zend_highlight.lo but not in

I found this out by modifying the code to have a zendtext in 
it. That just resulted in other symbols which were not 
defined. Adding to the generated Makefile 
helped, but undefined symbols still kept cropping up.

BTW: this happens with 4.0.0, too. I thought falling back a 
version might help - it didn't.
 [2000-10-02 13:06 UTC] mrsizer at home dot com
Further Research:

It's the .la files. They aren't working (and I have no clue 
what they are).

If I type the link line for the /Zend make, ld says it 
doesn't understand the format of the .la files. If I replace 
the .la files with the .lo files they were created with, ld 
is happy.

Continuing the php make from this point gets rid of all zend 
undefined symbols when starting apache, but now prce_malloc 
is undefined at that time. You use .la files A LOT. I'd 
rather not build php one directory at a time by hand.

I'm using gcc-2.95.2. I started with binutils-, 
but rolled back to - no change.

 [2000-11-01 11:02 UTC]
Please try a snapshot from

 [2000-12-07 11:42 UTC]
Reopen, if this still happens when using latest snapshot

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 23:01:30 2024 UTC