lighttpd forum XCache > undefined symbol: zend_vspprintf

Posted by Mauro C.
on 12.03.2008 16:35
Hi to all,

a month ago start to have problem with xcache, extension won't load.

I got an undefined symbol: zend_vspprintf

I'm using php 5.3 cvs on debian linux AMD64

try to compile many times php and xcache with different gcc version and 
with --disable-versioning, but it doesn't exists in php-5.3.


Mauro
Posted by moo XCache
on 14.03.2008 09:15
Mauro C. wrote:
> Hi to all,
> 
> a month ago start to have problem with xcache, extension won't load.
> 
> I got an undefined symbol: zend_vspprintf
> 
> I'm using php 5.3 cvs on debian linux AMD64
> 
> try to compile many times php and xcache with different gcc version and 
> with --disable-versioning, but it doesn't exists in php-5.3.
> 
> 
> Mauro
maybe you have 2 version of devel installed?
$ updatedb
$ locate phpize

$ /usr/local/bin/phpize
$ ./configure --with-php-config=/usr/local/bin/php-config 
--enable-xcache
$ make all install

see http://xcache.lighttpd.net/wiki/Faq
Posted by Mauro C.
on 14.03.2008 15:41
moo XCache wrote:
> Mauro C. wrote:
>> Hi to all,
>> 
>> a month ago start to have problem with xcache, extension won't load.
>> 
>> I got an undefined symbol: zend_vspprintf
>> 
>> I'm using php 5.3 cvs on debian linux AMD64
>> 
>> try to compile many times php and xcache with different gcc version and 
>> with --disable-versioning, but it doesn't exists in php-5.3.
>> 
>> 
>> Mauro
> maybe you have 2 version of devel installed?

more than 2 version, but I always use abs path when call phpize

> $ updatedb
> $ locate phpize
> 
> $ /usr/local/bin/phpize
> $ ./configure --with-php-config=/usr/local/bin/php-config 
> --enable-xcache

abs path for php-config too.
> $ make all install
> 
> see http://xcache.lighttpd.net/wiki/Faq

More info about env:

gcc version 4.2.3 (Debian 4.2.3-2)

Linux 2.6.22-3-amd64 #1 SMP Tue Feb 12 09:22:35 UTC 2008 x86_64

php 5.3-dev configuration:

'./configure'  '--with-apxs2=/usr/local/apache-2.2/bin/apxs' 
'--with-config-file-path=/etc/php-5.3/apache-2.2' '--with-zlib=/usr' 
'--prefix=/usr/local/php-5.3' '--without-pear' '--enable-calendar' 
'--enable-inline-optimization' '--disable-debug' '--disable-bcmath' 
'--enable-sockets' '--with-libxml-dir=/usr' '--with-xsl=/usr' 
'--enable-exif' '--disable-pdo' '--without-sqlite' '--disable-xmlreader' 
'--disable-xmlwriter' '--disable-json' '--disable-filter' 
'--without-iconv' '--with-mysqli=mysqlnd'

error output:
/usr/local/php-5.3/bin/php -i

Failed loading 
/usr/local/php-5.3/lib/php/extensions/no-debug-non-zts-20071006/xcache.so: 
/usr/local/php-5.3/lib/php/extensions/no-debug-non-zts-20071006/xcache.so: 
undefined symbol: zend_vspprintf

it seems a link problem.

thanks


Mauro Casciari
Posted by moo XCache
on 15.03.2008 01:14
sorry, xcache/trunk? i'm checking... what cflags r u using for building 
php?
thanks

why do u use php5.3-dev and xcache/trunk btw?
Posted by moo XCache
on 15.03.2008 02:00
moo XCache wrote:
> sorry, xcache/trunk? i'm checking... what cflags r u using for building 
> php?
> thanks
> 
> why do u use php5.3-dev and xcache/trunk btw?

fixed in trunk r545, but i still want to know what cflags were used
Posted by Mauro C.
on 17.03.2008 01:44
moo XCache wrote:
> sorry, xcache/trunk? i'm checking... what cflags r u using for building 
> php?

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 
-fomit-frame-pointer"

> thanks
> 
> why do u use php5.3-dev and xcache/trunk btw?

Should I have to use other?


thanks,

Mauro Casciari
Posted by Mauro C.
on 17.03.2008 01:46
moo XCache wrote:
> moo XCache wrote:
>> sorry, xcache/trunk? i'm checking... what cflags r u using for building 
>> php?
>> thanks
>> 
>> why do u use php5.3-dev and xcache/trunk btw?
> 
> fixed in trunk r545, but i still want to know what cflags were used

Thanks, try it!


Mauro Casciari
Posted by Mauro C.
on 17.03.2008 02:03
Mauro C. wrote:
> moo XCache wrote:
>> moo XCache wrote:
>>> sorry, xcache/trunk? i'm checking... what cflags r u using for building 
>>> php?
>>> thanks
>>> 
>>> why do u use php5.3-dev and xcache/trunk btw?
>> 
>> fixed in trunk r545, but i still want to know what cflags were used
> 
> Thanks, try it!

It works!

thanks


Mauro Casciari