From:             B dot Candler at pobox dot com
Operating system: FreeBSD-4.8
PHP version:      4.3.1
PHP Bug Type:     Compile Warning
Bug description:  Corrected error display for problems running APXS

If there was a problem running APXS at configure time, it is re-run to
generate a visible error message. However the script forgets to add the
correct command-line parameters; as a result you always get the default
APXS usage page instead of a report of what the error actually was.

The following patch fixes it:

--- php-4.3.1/sapi/apache/config.m4.orig        Thu Jul 25 19:37:16 2002
+++ php-4.3.1/sapi/apache/config.m4     Wed May 28 13:51:44 2003
@@ -26,7 +26,7 @@
     AC_MSG_RESULT([2.  Apache was not compiled with DSO support
(--enable-module=so);])
     AC_MSG_RESULT([3.  'apxs' is not in your path.  Try to use
--with-apxs=/path/to/apxs])
     AC_MSG_RESULT([The output of $APXS follows])
-    $APXS
+    $APXS -q CFLAGS
     AC_MSG_ERROR([Aborting]) 
   fi 

Without this patch, all you see is:
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-S <var>=<val>] <query> ...
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...

which is not very helpful.
-- 
Edit bug report at http://bugs.php.net/?id=23850&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23850&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23850&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23850&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23850&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23850&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23850&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23850&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23850&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23850&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23850&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23850&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23850&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23850&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23850&r=gnused

Reply via email to