Bug #66592 [NEW]: relative paths in PHP_NEW_EXTENSION soruces
From: investfund2007 at yandex dot ru
Operating system: MacOsX 10.9.1
PHP version: Irrelevant
Package: *Compile Issues
Bug Type: Bug
Bug description:relative paths in PHP_NEW_EXTENSION soruces
Description:
------------
I'm developing php extension and I need to include some cpp sources
outside php dir.
...
PHP_NEW_EXTENSION(module,file1.cpp ../../../Common/file2.cpp
../../../Common/file3.cpp, $ext_shared)
...
After running ./configure Makefile contains
...
shared_objects_module = file1.lo .lo .lo
...
I think the bug is somewhere inside acinclude.m4 in function
PHP_ADD_SOURCES_X
Test script:
---------------
PHP_ARG_ENABLE(test, test,
[ --enable-test ])
if test "$PHP_TEST" != "no"; then
PHP_NEW_EXTENSION(test, file1.cpp ../../../Common/file2.cpp
../../../Common/file3.cpp, $ext_shared)
AC_DEFINE(HAVE_TEST, 1, [Whether you have test])
fi
Expected result:
----------------
Makefile contains
...
shared_objects_module = file1.lo ../../../Common/file2.lo
../../../Common/file3.lo
...
Actual result:
--------------
shared_objects_module = file1.lo .lo .lo
--
Edit bug report at https://bugs.php.net/bug.php?id=66592&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66592&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66592&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66592&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66592&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66592&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66592&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66592&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66592&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66592&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66592&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66592&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66592&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66592&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66592&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66592&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66592&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66592&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66592&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66592&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66592&r=mysqlcfg
Thread (4 messages)
- investfund2007 at yandex dot ru