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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 13:01:33 2025 UTC