php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52408 Configure script incorrectly assumes that all HP-UX OS's use .sl extensions
Submitted: 2010-07-22 17:21 UTC Modified: 2016-07-01 15:04 UTC
Votes:52
Avg. Score:4.2 ± 0.9
Reproduced:17 of 35 (48.6%)
Same Version:17 (100.0%)
Same OS:17 (100.0%)
From: dmhilker at gmail dot com Assigned:
Status: Analyzed Package: Compile Failure
PHP Version: 5.3.3 OS: HP-UX 11.31
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-07-22 17:21 UTC] dmhilker at gmail dot com
Description:
------------
The php configure script assumes that all hp-ux os's use .sl extension for shared libraries.  HP-UX 11.31 now uses .so extension for shared libraries.  If the configure script is used on HP-UX 11.31, it will not find the shared libraries because it is always looking for the .sl extension.  The configure script will have to test what version of hpux is being used in order to set the configure shlib suffix name variables correctly.



Test script:
---------------
Snip from configure:
 *hpux*)
   SHLIB_SUFFIX_NAME=sl
   SHLIB_DL_SUFFIX_NAME=sl

I changed to this to get it to work:


 *hpux*)
   SHLIB_SUFFIX_NAME=so
   SHLIB_DL_SUFFIX_NAME=so




Patches

sdtivjbl (last revision 2015-01-05 04:52 UTC) by sample at email dot tst)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-07 21:22 UTC] kalle@php.net
Hi

I belive we should have a check for the newer versions of HPUX and override those values to keep BC with older versions, however Im not familiar with the Unix build system, but if you can provide such a patch one of us will commit it
 [2010-08-07 21:23 UTC] kalle@php.net
-Status: Open +Status: Analyzed
 [2016-07-01 15:04 UTC] cmb@php.net
According to a StackOverflow answer, .so is in use as of HP-UX
11.20. According to Wikipedia[2] HP-UX 11.20 has been released in
2001. If both statements are true, we certainly could simply
change the extension without fallback.

[1] <http://stackoverflow.com/questions/1691734/what-is-the-difference-between-a-sl-and-a-so-on-hpux>
[2] <https://en.wikipedia.org/wiki/HP-UX#Release_history>
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC