|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17143 make install fails with --disable-cli
Submitted: 2002-05-10 14:14 UTC Modified: 2002-05-10 14:39 UTC
From: colin at easydns dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2002-05-10 OS: Linux / Debian
Private report: No CVE-ID: None
 [2002-05-10 14:14 UTC] colin at easydns dot com
Using --disable-cli in the configure line causes "make install" to fail with:

    /usr/lib/crt1.o: In function `_start':
    /usr/lib/crt1.o(.text+0x18): undefined reference to `main'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1

Taking that out of the configure line solves it (but, of course, makes the CLI).

- Colin


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-10 14:27 UTC] colin at easydns dot com
FWIW, the full configure line is:

./configure \
--with-mysql=/usr/local \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-track-vars \
--disable-magic-quotes \
--disable-debug \
--with-gettext \
--with-xml \
--with-xmlrpc \
--with-dom \
--with-curl \
--with-zlib \
--with-mcrypt \
--enable-ftp \
--with-imap \
[ --disable-cli ]
 [2002-05-10 14:39 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at 
Thank you for the report.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 25 06:03:33 2022 UTC