php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64553 Cross-compile fails during configuration with postgreSQL
Submitted: 2013-03-30 22:55 UTC Modified: 2013-06-28 20:13 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: olivier dot antheaume at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.4.13 OS: Linux
Private report: No CVE-ID: None
 [2013-03-30 22:55 UTC] olivier dot antheaume at gmail dot com
Description:
------------
When I cross-compile PHP for ARM target with PostgreSQL support, it fails during 
configuration because configure script try to execute pg_config to get PostgreSQL 
installation information.

This fails because pg_config has been compiled for the ARM target and can't be 
executed on the Host (x86_64).

Expected result:
----------------
It compiles with PostgreSQL support.

Actual result:
--------------
checking for PostgreSQL support... yes
checking for pg_config... /opt/cross/armel/sysroot/usr/bin/pg_config

/php-5.4.13/configure: line 97209: /opt/cross/armel/sysroot/usr/bin/pg_config: 
cannot execute binary file
/php-5.4.13/configure: line 97210: /opt/cross/armel/sysroot/usr/bin/pg_config: 
cannot execute binary file
configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL 
installation path
make[1]: *** [config] Erreur 1


Patches

PHP_Cross_compile_PGSQL.patch (last revision 2013-03-30 22:56 UTC by olivier dot antheaume at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-28 20:13 UTC] yohgaki@php.net
-Status: Open +Status: Not a bug
 [2013-06-28 20:13 UTC] yohgaki@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Use of fixed path removes configuration flexibility.

If you would like not to use pg_config, then remove pg_config from your path.

Then configure will try to find "include" and "lib" dirs.

Have a look at ext/pgsql/config.m4 for details.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 21:01:30 2024 UTC