linking voodoo

Elan Ruusamäe glen at delfi.ee
Tue Apr 4 22:30:49 CEST 2006


hi

i've created patch [1] for versioning php symbols, for later loading both php 
modules (php4,php5) into same apache instance.

it works so far when php extensions aren't loaded. the problem is that 
extensions are right now linked so they don't have version info on undefined 
symbols [2]. the result is crash [3]

after debugging with arekm i've found that there's way to force the version in 
php extensions is linking php extensions with libphp_common.la

so is  there, 
1. other way
2. problems when linking php extensions with libphp_common.la

[1]  http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/php4-versioning.patch
[2]
$ objdump -T /usr/lib/apache1/libphp4.so |grep ts_allocate_id
00000000      DF *UND*  00000196  php4        ts_allocate_id
$ objdump -T /usr/lib/php4/zlib.so |grep ts_allocate_id
00000000      D  *UND*  00000000              ts_allocate_id
[3] http://pastebin.com/639611

-- 
glen


More information about the pld-devel-en mailing list