php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #780 Failure to compile basic_functions.c on SGI IRIX
Submitted: 1998-09-24 14:33 UTC Modified: 1998-09-25 14:51 UTC
From: jcaesar at losangeles dot sgi dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.4 OS: IRIX 6.5
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: jcaesar at losangeles dot sgi dot com
New email:
PHP Version: OS:

 

 [1998-09-24 14:33 UTC] jcaesar at losangeles dot sgi dot com
3.0.3 will compile on my system.  3.0.4, the new feature (user_keys?) has a compile problem in the functions dir.  This also happens with the new configure script posted recently, regarding AIX and BSD.  From the compiler output:

cc -O2 -pca -woff all -n32 -Xcpluscomm -g   -I. -I.   -I/usr/local/src/apache_1.3.1/src/include -I/usr/local/src/apache_1.3.1/src/os/unix      -I/usr/local/include/mysql                -c functions/basic_functions.c -o functions/basic_functions.o
"functions/basic_functions.c", line 871: error(1028): expression must have a
          constant value
        pval *args[2] = {&key1, &key2};
                          ^

"functions/basic_functions.c", line 871: error(1028): expression must have a
          constant value
        pval *args[2] = {&key1, &key2};
                                 ^

2 errors detected in the compilation of "functions/basic_functions.c".
*** Error code 2 (bu21)


**********
My Configuration (which works on 3.0.3)
(Compilers used were SGI's v. 7.2.1 with auto-parallelization).

CC="cc -O2 -pca -woff all -n32 -Xcpluscomm" \
CXX="CC -O2 -pca -n32 -Xcpluscomm" \
LDFLAGS="-n32 -mp" \
./configure \
--with-apache=/usr/local/src/apache_1.3.1 \
--with-mysql \
--enable-debug=no \
--enable-track-vars=yes \
--with-exec-dir=/www/cgi-bin \
--enable-memory-limit=no \
--enable-safe-mode=yes 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-25 14:51 UTC] zeev
Ok, my bad.  That assignment statement wasn't ANSI C conforming.
You can get a fixed basic_functions.c at
http://il.php.net/basic_functions.c.gz

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 09 06:01:32 2024 UTC