|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68313 During configuration default-path is added to the flags before specific dirs
Submitted: 2014-10-27 22:27 UTC Modified: -
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: dvanadrichem at hotmail dot com Assigned:
Status: Open Package: *Configuration Issues
PHP Version: 5.5.18 OS: Linux Ubuntu 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-10-27 22:27 UTC] dvanadrichem at hotmail dot com
On an Ubuntu 12.04 machine there is a default Curl 7.22 version. Due to some troubles, this one needs to be replaced by a newer version for PHP.

Curl version 7.38 is built to a specific directory and PHP is reconfigured with the commant as in the testscript-box.

In the generated Makefile the Library-flags first point to the system folders, and only later to the specified directories. It looks like this is the reason the system-version of the Curl-library is linked and not the specific-version.

Manually changing the Makefile after the ./configure command fixed this problem.
As the configure scripts are not recently updated this problem is probably still in the latest releases.

Test script:
./configure --prefix /usr/local/php5.5.11 --enable-zip --with-openssl --enable-exif --enable-calendar --with-gd --with-mcrypt --with-mssql --with-mysql --with-mysqli --enable-soap --with-unixODBC=/usr --with-pear --with-curl=/usr/local/curl-7.38.0 --with-zlib --enable-mbstring

Expected result:
EXTRA_LDFLAGS = -L/usr/local/curl-7.38.0/lib -L/usr/lib/i386-linux-gnu
EXTRA_LDFLAGS_PROGRAM = -L/usr/local/curl-7.38.0/lib -L/usr/lib/i386-linux-gnu
NATIVE_RPATHS = -Wl,-rpath,/usr/local/curl-7.38.0/lib -Wl,-rpath,/usr/lib/i386-linux-gnu
PHP_LDFLAGS = -L/usr/local/curl-7.38.0/lib -L/usr/lib/i386-linux-gnu
PHP_RPATHS = -R /usr/local/curl-7.38.0/lib -R /usr/lib/i386-linux-gnu

Actual result:
EXTRA_LDFLAGS = -L/usr/lib/i386-linux-gnu -L/usr/local/curl-7.38.0/lib
EXTRA_LDFLAGS_PROGRAM = -L/usr/lib/i386-linux-gnu -L/usr/local/curl-7.38.0/lib
NATIVE_RPATHS = -Wl,-rpath,/usr/lib/i386-linux-gnu -Wl,-rpath,/usr/local/curl-7.38.0/lib
PHP_LDFLAGS = -L/usr/lib/i386-linux-gnu -L/usr/local/curl-7.38.0/lib
PHP_RPATHS = -R /usr/lib/i386-linux-gnu -R /usr/local/curl-7.38.0/lib


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 23:01:28 2024 UTC