From: Operating system: Linux PHP version: 5.3.8 Package: Dynamic loading Bug Type: Bug Bug description:Cross Compiling turns of Dynamic Library support at all
Description:
------------
Hallo,
while trying to cross compile PHP via a bitbake recipe (openembedded.org),
I discovered, that somehow the build system of PHP turns of the Dynamic
Loading support if it detects that PHP is being cross compiled.
See configure-Script of PHP:
[...]
if test "$found" = "yes"; then
ac_libs=$LIBS
LIBS="$LIBS -ldl"
if test "$cross_compiling" = yes; then :
found=no
else
[...]
As you can see, the configure script sets "found" to no for
libdl/dlopen-tests, if cross_compiling is enabled.
In my opinion (and according to my tests) there is no reason to do this, as
overriding this manually by setting -DHAVE_LIBDL as CFLAGS and adding -ldl
to LDFLAGS leads to a PHP build that is Dynamic-Loading-enabled and works
without problems on the target machine.
--
Edit bug report at https://bugs.php.net/bug.php?id=60109&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60109&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60109&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60109&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60109&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60109&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60109&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60109&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60109&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60109&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60109&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60109&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60109&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60109&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60109&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60109&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60109&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60109&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60109&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60109&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60109&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60109&r=mysqlcfg
