Operating System - HP-UX
1838683 Members
16277 Online
110128 Solutions
New Discussion

Can't compile PHP module, unresolved externals

 
Alexey Korobkin
New Member

Can't compile PHP module, unresolved externals

Hi, All.

I'm trying to compile PHP with MySQL support for Apache. I have HP-UX 11.00.

Both Apache 1.3.34 and 2.2.0 compiled well, and MySql too.

The problem is with PHP and unresolved externals. Apache doesn't want to load libphp5.so and ldd -r libphp5.so shows unresolved externals:

symbol not found: _SYSTEM_ID (/usr/lib/libc.2)
symbol not found: _end (/usr/lib/libc.2)
symbol not found: __dld_loc (/usr/lib/libdld.2)
symbol not found: ap_loaded_modules (/usr/local/apache2/modules/libphp5.so)
symbol not found: unixd_config (/usr/local/apache2/modules/libphp5.so)
symbol not found: ap_server_root (/usr/local/apache2/modules/libphp5.so)
symbol not found: _SYSTEM_ID (/usr/lib/libcl.2)
symbol not found: __dld_loc (/usr/lib/libcl.2)

I compiled everything with LDFLAGS='-lcl', CFLAGS='-fPIC'. I have GCC 4.1.0, gnu make 3.80, hp native ld. I already tried both PHP 4.4.2 and PHP 5.1.2, all the same.

Without -lcl switch there are many more unresolved externals, and now it's only 8. How can I make it 0?

I don't want to use HP-compiled Apache, and I already managed to make as little unresolved externals as I can. According to answers on these forums I replaced 'file_magic' line in libtool with pass_all, and tried other tweaks.

If anybody has some experience in that, please advise me something.