ID: 25183
User updated by: yiwakiri at st dot rim dot or dot jp
Reported By: yiwakiri at st dot rim dot or dot jp
Status: Open
-Bug Type: PECL related
+Bug Type: Compile Failure
Operating System: All of Unix like system
PHP Version: 4.3.2
New Comment:
Sorry. The category was mistaken.
Previous Comments:
------------------------------------------------------------------------
[2003-08-20 21:00:24] yiwakiri at st dot rim dot or dot jp
Description:
------------
When creating the extension module of C / C++ mixture,
It seems that scan_makefile_in.awk which is not correctly
changed into PHP_NEW_EXTENSION macro from PHP_EXTENSION macro
e.g.
Makefile.in is
LTLIBRARY_SOURCES = example1.c
LTLIBRARY_SOURCES_CPP = example2.cxx
Makefile
-- snip --
.NOEXPORT:
example2.lo: /home/iwakiri/swig/class/example2.cxx
$(phplibdir)/example.la: ./example.la
$(LIBTOOL) --mode=install cp ./example.la $(phplibdir)
The first line's makerule is lost.
Please change as follows:
--- php-4.3.2/scan_makefile_in.awk Thu Mar 7 23:17:47 2002
+++ scan_makefile_in.awk Thu Aug 21 10:48:57 2003
@@ -5,7 +5,7 @@
mode == 0 && /^LTLIBRARY_SOURCES.*\\$/ {
if (match($0, "[^=]*$")) {
- sources=substr($0, RSTART, RLENGTH-1)
+ sources=sources substr($0, RSTART, RLENGTH-1)
}
mode=1
next
@@ -13,7 +13,7 @@
mode == 0 && /^LTLIBRARY_SOURCES.*/ {
if (match($0, "[^=]*$")) {
- sources=substr($0, RSTART, RLENGTH)
+ sources=sources substr($0, RSTART, RLENGTH)
}
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25183&edit=1