#25183 [NEW]: scan_makefile_in.awk problem
| From: | yiwakiri at st dot rim dot or dot jp | Date: | Thu, 21 Aug 2003 02:00:24 +0000 |
| Subject: | #25183 [NEW]: scan_makefile_in.awk problem | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-20203@lists.php.net to get a copy of this message | ||
From: yiwakiri at st dot rim dot or dot jp
Operating system: All of Unix like system
PHP version: 4.3.2
PHP Bug Type: PECL related
Bug description: scan_makefile_in.awk problem
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 bug report at http://bugs.php.net/?id=25183&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25183&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25183&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25183&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25183&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25183&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25183&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25183&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25183&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25183&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25183&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25183&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25183&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25183&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25183&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25183&r=gnused