From: [email protected]
Operating system: Ubuntu 8.10 (32bit)
PHP version: 5.3CVS-2009-07-16 (CVS)
PHP Bug Type: Compile Failure
Bug description: vcsclean should remove .lo and .la files
Description:
------------
The files removed by vcsclean are only a subset of the files removed by
'make clean'. File extensions .lo .la .gcno .gcda are not removed by
vcsclean.
Using the sequence 'cd php53; svn up; ./vcsclean; ./configure ...;
make' fails to find some .o files.
Some .o's get built but link fails with a bunch of errors of the form:
gcc: ext/<ext>/.libs/<file>.o: No such file or directory
The vcsclean command removes the ext/*/.libs directories but doesn't
remove ext/*.lo files. This causes C files to be skipped for recompilation
and no .libs/*.o files are created.
A patch is to add .lo to the extension list in build/build.mk.
Index: build.mk
===================================================================
--- build.mk (revision 284190)
+++ build.mk (working copy)
@@ -67,12 +67,12 @@
cvsclean-work:
@for i in `find . -name .cvsignore`; do \
- (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep
-v
config.nice | sed 's/[[:space:]]/ /g'` *.o *.a .libs || true); \
+ (cd `dirname $$i` 2>/dev/null && rm -rf `cat .cvsignore | grep
-v
config.nice | sed 's/[[:space:]]/ /g'` *.lo *.o *.a .libs || true); \
done
svnclean-work:
@for i in `find . -type d -not -path '*/.svn/*' | grep -v '.svn'`; do \
- (cd `dirname $$i` 2>/dev/null && rm -rf `svn propget svn:ignore
. |
grep -v config.nice` *.o *.a .libs || true); \
+ (cd `dirname $$i` 2>/dev/null && rm -rf `svn propget svn:ignore
. |
grep -v config.nice` *.o *.lo *.a .libs || true); \
done
gitclean-work:
Also, adding '.la .gcno .gcda' in addition to '.lo' would make
vcsclean consistent with 'make clean'.
A secondary bug is that .o files are not recreated from existing .lo
files.
--
Edit bug report at http://bugs.php.net/?id=48947&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48947&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48947&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48947&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48947&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48947&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48947&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48947&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48947&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48947&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48947&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48947&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48947&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48947&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48947&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48947&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48947&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48947&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48947&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48947&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48947&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48947&r=mysqlcfg