Bug #60109 [NEW]: Cross Compiling turns of Dynamic Library support at all

From: Date: Fri, 21 Oct 2011 17:25:22 +0000
Subject: Bug #60109 [NEW]: Cross Compiling turns of Dynamic Library support at all
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-164495@lists.php.net to get a copy of this message
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



Thread (6 messages)

« previous php.bugs (#164495) next »