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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 23:00:01 2026 UTC