php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65722 syntax error in configure: -r: command not found
Submitted: 2013-09-20 09:53 UTC Modified: 2013-09-20 17:21 UTC
From: johan dot ekenberg at gmail dot com Assigned:
Status: Duplicate Package: Compile Failure
PHP Version: 5.4.20 OS: Linux
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: johan dot ekenberg at gmail dot com
New email:
PHP Version: OS:

 

 [2013-09-20 09:53 UTC] johan dot ekenberg at gmail dot com
Description:
------------
This bug also exists in php 5.5.4

configure --with-imap fails with:

./configure: line 51014: -r: command not found
checking whether rfc822_output_address_list function present... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

Fix: the word "test" is missing after &&, in two places. Like this:

    if test ! -r "$IMAP_DIR/c-client/libc-client.a" && -r "$IMAP_DIR/c-client/c-client.a" ; then

  change to:

    if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then


Test script:
---------------
./configure --with-imap


Expected result:
----------------
clean configure

Actual result:
--------------
./configure: line 51014: -r: command not found
checking whether rfc822_output_address_list function present... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

Patches

imap_config-fix-syntax-error.txt (last revision 2013-09-20 09:59 UTC by johan dot ekenberg at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-20 17:21 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 [2013-09-20 17:21 UTC] requinix@php.net
#65721 just barely beat you to this :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 14:01:27 2024 UTC