PHP 4.0 Bug #2224: main.c

From: Date: Thu, 02 Sep 1999 18:28:19 +0000
Subject: PHP 4.0 Bug #2224: main.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-10464@lists.php.net to get a copy of this message
From: tm@blom.co.id Operating system: HPUX 10.20 PHP version: 4.0 Beta 2 PHP Bug Type: Compile Failure Bug description: main.c cc -Ae -Ae -D_HPUX_SOURCE -g -I. -I. -I./libzend -I./TSRM -I./libzend -I./TSRM -I/store/store/bise04/apache/src-1.3.9-hp700ux10//src/include -I/store/store/bise04/apache/src-1.3.9-hp700ux10//src/os/unix -g -c main.c -o main.o cc: "main.c", line 230: error 1536: Cannot evaluate initialization expression, please initialize dynamically. cc: "main.c", line 1098: warning 604: Pointers are not assignment-compatible. cc: "main.c", line 1098: warning 563: Argument #1 is not the correct type. cc: "main.c", line 1104: warning 604: Pointers are not assignment-compatible. cc: "main.c", line 1104: warning 563: Argument #1 is not the correct type. *** Error exit code 1 Stop. -------------------------- Compiler docs says: ======== Error 1536 Cannot evaluate initialization expression, please initialize dynamically. The expression used for initializing a variable is too complex to be determined at link time. Usually this is due to using an expression involving an address minus an address or an address plus an address. For example: int i = 0,j = 0; int a = (int) &i - (int) &j; main() { } Initialize (assign) the variable dynamically. For example: int i = 0,j = 0; int a; main() { a = (int) &i - (int) &j; } ANSI 3.4 ========== Looked at main.c and php_ini.h for a few minutes and decided that it's time to go home to bed. Terje Marthinussen tm@blom.co.id

« previous php.dev (#10464) next »