php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: colin at easydns dot com
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

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] edink@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/. 
Thank you for the report.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 17:01:33 2025 UTC