ID: 45636
User updated by: Fedora at FamilleCollet dot com
Reported By: Fedora at FamilleCollet dot com
Status: Open
Bug Type: Compile Failure
Operating System: Linux (Fedora 9)
PHP Version: 5.3CVS-2008-07-27 (snap)
New Comment:
ok, thanks for the information about system lib.
So, error occur with bundled lib.
Previous Comments:
------------------------------------------------------------------------
[2008-07-27 15:30:26] [EMAIL PROTECTED]
FYI: This extension only compiles with the bundled library. There is no
way to use external libmagic anymore.
------------------------------------------------------------------------
[2008-07-27 15:26:11] Fedora at FamilleCollet dot com
First try with --enable-fileinfo=shared
Second try with --enable-fileinfo=shared,/usr
In fact, "file-devel" is installed, which provides libmagic.so and was
used by PECL extension Fileinfo 1.0.4.
The bundled extension doesn't seem tu use the system library.
Regards
------------------------------------------------------------------------
[2008-07-27 09:13:46] [EMAIL PROTECTED]
Compiles fine for me in Linux. What was the full configure line you
used?
------------------------------------------------------------------------
[2008-07-27 07:14:07] Fedora at FamilleCollet dot com
Description:
------------
Fileinfo extention is now enabled by default but doesn't compile
because it use "strndup" with is provided both by the system and the
source (softmagic.c)
Source code of softmagic.c contain a test arround is local defined
fonction :
#ifndef HAVE_STRNDUP
char * strndup(const char *, size_t);
...
#endif
But nothing set this macro.
I don't find anything in the .m4 files
Perhaps it should better use the zend_strndup ?
Reproduce code:
---------------
make
Expected result:
----------------
Build succed
Actual result:
--------------
/home/rpmbuild/BUILD/php5.3-200807270630/ext/fileinfo/libmagic/softmagic.c:305:
error: expected identifier or '(' before '__extension__'
/home/rpmbuild/BUILD/php5.3-200807270630/ext/fileinfo/libmagic/softmagic.c:308:
error: expected identifier or '(' before '__extension__'
make: *** [ext/fileinfo/libmagic/softmagic.lo] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45636&edit=1