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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
10 + 50 = ?
Subscribe to this entry?

 
 [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)

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 22:01:28 2024 UTC