php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4364 Bus Error when compiling 64-bit with Sun WorkShop 5.0 cc
Submitted: 2000-05-09 18:39 UTC Modified: 2000-05-15 14:50 UTC
From: ptheod at dsclab dot ntua dot gr Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0 Release Candidate 1 OS: SunOS 5.7 (Solaris 7)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ptheod at dsclab dot ntua dot gr
New email:
PHP Version: OS:

 

 [2000-05-09 18:39 UTC] ptheod at dsclab dot ntua dot gr
When compiling 64-bit with Sun WorkShop 5.0 cc the httpd binary aborts with 'Bus Error'.
To correct the problem you must change all 'int' variable declarations to 'long'
for 'struct php_assert_globals'  in lines 27-34 of file 'ext/standard/assert.c':

   typedef struct {
=>        long active;
=>        long bail;
=>        long warning;
=>        long quiet_eval;
             char *default_callback;
             char *callback;
  } php_assert_globals;

There is also a configuration problem. While in 32-bit the 'configure' script sets '#define PHP_STD_DES_CRYPT 1' in file 'php_config.h' it does not do the same in 64-bit. You must change the value by hand in order to make a successful compilation.
I have successfully build PHP4RC1 with apache_1.3.12 under Solaris 7 in both the 32-bit and 64-bit environment and both statically and dynamically as a dso without other problems.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-15 14:50 UTC] sas at cvs dot php dot net
The first issue has been addressed. The second issue is part of a larger investigation. Thanks for your report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 16:01:29 2024 UTC