|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-09-12 03:14 UTC] laruence@php.net
-Status: Open
+Status: Bogus
[2011-09-12 03:14 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 14:00:01 2025 UTC |
Description: ------------ Hi phper, There's a trouble with my extension, I just make a sample extension. compile is ok, but when i use ld() function to load my extension, it tells me that 'php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/tintin.so: undefined symbol: init_array'. I don't know why, can you help me? My php version is 5.2.17 and system is Ubuntu Server 64 Test script: --------------- PHP_FUNCTION(tintin_split){ zval *new_chars; init_array(new_chars); } I use this command to compile as follow: cc -fpic -DCOMPILE_DL_TINTIN=1 -I/usr/local/include -I. -I../.. -I../../Zend -I../../main -I../../TSRM -c -o tintin.o tintin.c cc -shared -L/usr/local/lib -L/usr/local/lib/php -L/usr/lib -L. -rdynamic -o tintin.so tintin.o cp tintin.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613/