From:             
Operating system: ubuntu server 64bit
PHP version:      trunk-SVN-2011-09-11 (SVN)
Package:          Dynamic loading
Bug Type:         Feature/Change Request
Bug description:compile is ok, but can not run it

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/



-- 
Edit bug report at https://bugs.php.net/bug.php?id=55669&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55669&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55669&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55669&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55669&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55669&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55669&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55669&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55669&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55669&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55669&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55669&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55669&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55669&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55669&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55669&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55669&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55669&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55669&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55669&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55669&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55669&r=mysqlcfg

Reply via email to