php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1153 configure doesn't set -fpic, but -KPIC
Submitted: 1999-02-16 03:34 UTC Modified: 1999-06-26 16:43 UTC
From: hendrik at sdn dot co dot za Assigned:
Status: Closed Package: Compile Warning
PHP Version: 3.0.6 OS: Solaris 2.6
Private report: No CVE-ID: None
 [1999-02-16 03:34 UTC] hendrik at sdn dot co dot za
I also have SunPRO C available in my path, which could
influence the choice of compiler options.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-24 09:25 UTC] sas at cvs dot php dot net
Set CC to your compiler of choice. The configure script should find the right option then (e.g. CC=/opt/gnu/bin/gcc ./configure ...)
 [1999-06-26 16:43 UTC] sas at cvs dot php dot net
Just for the record, this happens when you use a different compiler for PHP as you used for compiling Perl. PHP3 uses Perl to find out about the compiler options for creating shared libraries.

In this situation, the Solaris compiler might need -KPIC to create position independent code while gcc wants to have -fpic.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jan 18 11:01:24 2019 UTC