Upgrade binutils?

Stephano Mariani

> -----Original Message-----
> From: Phil Glatz [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 16 March 2002 10:30 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] problems with 4.1.2 build
> 
> 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 was able to fix this by editing main/php.h and removing the extra
> spaces,
> so the definition was the same as in the other files.
> 
> 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
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to