|  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
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:
Solve the problem:
4 + 21 = ?
Subscribe to this entry?

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


Add a Patch

Pull Requests

Add a Pull Request


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-2024 The PHP Group
All rights reserved.
Last updated: Sat Mar 02 01:01:28 2024 UTC