`XtOffsetOf' redefined messing up 4.1.2 build

From: Date: Fri, 15 Mar 2002 05:19:02 +0000
Subject: `XtOffsetOf' redefined messing up 4.1.2 build
Groups: php.general 
Request: Send a blank email to php-general+get-88625@lists.php.net to get a copy of this message
I'm trying to build PHP 4.1.2 with an existing static Apache 1.3.23 installation, and am having some resolution problems I haven't seen before. This is on a dusty old Free BSD 2.2.2 system, but I was able to build 4.1.1 with no problems with the same configuration. It uses gcc version 2.7.2.1 --- yes, I know I should upgrade the OS, but since it was able to make 4.1.1 ok a few weeks ago, I'm guessing that isn't the problem. I'm compiling in postgres and gd support, but have the same problem with them out. I followed the steps (minimal apache, php, fuill apache), running configure each time and doing a make clean. During the PHP make I see: gcc -I. -I/usr/local/src/php-4.1.2/sapi/apache -I/usr/local/src/php-4.1.2/main -I/usr/local/src/php-4.1.2 -I/usr/local/src/apache_1.3.23/src/include -I/usr/local/src/apache_1.3.23/src/os/unix -I/usr/local/src/php-4.1.2/Zend -I/usr/local/src/php-4.1.2/ext/xml/expat -I/usr/local/src/apache_1.3.23/src/include -I/usr/local/src/apache_1.3.23/src/os/unix -I/usr/local/src/php-4.1.2/TSRM -g -O2 -c mod_php4.c && touch mod_php4.lo In file included from /usr/local/src/apache_1.3.23/src/include/httpd.h:72,
                 from mod_php4.c:32:
/usr/local/src/apache_1.3.23/src/include/ap_config.h:1386: warning: `XtOffsetOf' redefined
/usr/local/src/php-4.1.2/main/php.h:342: warning: this is the location of the previous definition
I tried an Apache build, but it gave me: ===> src/modules/php4 gcc -c -I../../os/unix -I../../include -funsigned-char -I/usr/local/src/php-4.1.2 -I/usr/local/src/php-4.1.2/main -I/usr/local/src/php-4.1.2/main -I/usr/local/src/php-4.1.2/Zend -I/usr/local/src/php-4.1.2/Zend -I/usr/local/src/php-4.1.2/TSRM -I/usr/local/src/php-4.1.2/TSRM -I/usr/local/src/php-4.1.2 -DUSE_EXPAT -I../../lib/expat-lite ../../apaci -fpic -DSHARED_MODULE mod_php4.c && mv mod_php4.o mod_php4.so-o In file included from ../../include/httpd.h:72,
                 from mod_php4.c:32:
../../include/ap_config.h:1386: warning: `XtOffsetOf' redefined /usr/local/src/php-4.1.2/main/php.h:342: warning: this is the location of the previous definition rm -f libphp4.so gcc -shared -o libphp4.so mod_php4.so-o libmodphp4.a -L/usr/local/src/gd-1.8.4/ -L/usr/local/postgres/lib -L/usr/local/src/gd-1.8.4/ -L/usr/local/postgres/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpq -lgd -lcrypt -lbind -lm -lcrypt -lcrypt ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1cd9 for "_zend_unblock_interruptions" ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1ccd for "_alloc_globals" ld: libmodphp4.a(zend_alloc.o): RRS text relocation at 0x1cc0 for "_alloc_globals" followed by hundreds of similar errors... thanks

« previous php.general (#88625) next »