php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3860 4.0b4pl1/Apache 1.3.12/gd/ttf/mysql: Several compiler warnings, got it running
Submitted: 2000-03-17 13:44 UTC Modified: 2000-03-17 16:44 UTC
From: ime at iae dot nl Assigned:
Status: Closed Package: Compile Warning
PHP Version: Earlier? Upgrade first! OS: Linux 2.2.5/i686
Private report: No CVE-ID: None
 [2000-03-17 13:44 UTC] ime at iae dot nl
Bug on bugs.php.net: in the list of php versions, there is no 4.0...

I tried to install php-4.0b4pl1 with Apache 1.3.12, mod_perl 1.22 and Apache::ASP on a Linux 2.2.5-15 i686 which once used to be RedHat 6.0, but has been patched a lot. I got things running correctly without any errors, but php4 gave several compiler warnings.

Ime 

--

[ime@fatbird php-4.0b4pl1]$ ./configure --with-ttf --with-exec=/www --enable-safe-mode --with-gd --enable-track-vars --with-config-file-path=/etc --with-mysql --enable-memory-limit --with-apache=../apache_1.3.12
loading cache ./config.cache

Running system checks
...
Generating files

All ok.

[ime@fatbird php-4.0b4pl1]$ make

Making all in Zend
make[1]: Entering directory `/home/ime/uranus1312/php-4.0b4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -D_REENTRANT  -g -O2  -Wall -c zend-scanner.c
zend-scanner.c:5728: warning: `yy_fatal_error' defined but not used
zend-scanner.c:5713: warning: `yy_top_state' defined but not used

...

Making all in gd
make[2]: Entering directory `/home/ime/uranus1312/php-4.0b4pl1/ext/gd'
make[3]: Entering directory `/home/ime/uranus1312/php-4.0b4pl1/ext/gd'
gcc -DHAVE_CONFIG_H -I. -I/home/ime/uranus1312/php-4.0b4pl1/ext/gd -I../.. -I../../Zend -I/home/ime/uranus1312/php-4.0b4pl1 -I/home/ime/uranus1312/apache_1.3.12/src/include -I/home/ime/uranus1312/apache_1.3.12/src/os/unix -I/usr/include/mysql  -D_REENTRANT -g -O2 -Wall  -c gd.c && touch gd.lo
gd.c: In function `php_if_imagecreatefromgif':
gd.c:537: warning: implicit declaration of function `gdImageCreateFromGif'
gd.c:537: warning: assignment makes pointer from integer without a cast
gd.c: In function `php_if_imagegif':
gd.c:589: warning: implicit declaration of function `gdImageGif'

...

Making all in mysql
...

gcc -DHAVE_CONFIG_H -I. -I/home/ime/uranus1312/php-4.0b4pl1/ext/pcre/pcrelib -I../../.. -I../../../Zend -I/home/ime/uranus1312/php-4.0b4pl1 -I/home/ime/uranus1312/apache_1.3.12/src/include -I/home/ime/uranus1312/apache_1.3.12/src/os/unix -I/usr/include/mysql  -D_REENTRANT -g -O2 -Wall  -c pcre.c && touch pcre.lo
pcre.c: In function `compile_branch':
pcre.c:657: warning: `c' might be used uninitialized in this function

...

Making all in standard

gcc -DHAVE_CONFIG_H -I. -I/home/ime/uranus1312/php-4.0b4pl1/ext/standard -I../.. -I../../Zend -I/home/ime/uranus1312/php-4.0b4pl1 -I/home/ime/uranus1312/apache_1.3.12/src/include -I/home/ime/uranus1312/apache_1.3.12/src/os/unix -I/usr/include/mysql  -D_REENTRANT -g -O2 -Wall  -c image.c && touch image.lo
image.c: In function `php_handle_jpeg':
image.c:215: warning: `marker' might be used uninitialized in this function

...


Making all in apache
...

gcc -DHAVE_CONFIG_H -I. -I/home/ime/uranus1312/php-4.0b4pl1/sapi/apache -I../.. -I../../Zend -I/home/ime/uranus1312/php-4.0b4pl1 -I/home/ime/uranus1312/apache_1.3.12/src/include -I/home/ime/uranus1312/apache_1.3.12/src/os/unix -I/usr/include/mysql -I/home/ime/uranus1312/apache_1.3.12/src/include -I/home/ime/uranus1312/apache_1.3.12/src/os/unix -D_REENTRANT -g -O2 -Wall  -c mod_php4.c && touch mod_php4.lo
mod_php4.c: In function `send_php':
mod_php4.c:403: warning: argument `filename' might be clobbered by `longjmp' or `vfork'

...

Making all in regex

...

Making all in .

...

gcc -DHAVE_CONFIG_H -I. -I/home/ime/uranus1312/php-4.0b4pl1/. -I. -I./Zend -I/home/ime/uranus1312/php-4.0b4pl1 -I/home/ime/uranus1312/apache_1.3.12/src/include -I/home/ime/uranus1312/apache_1.3.12/src/os/unix -I/usr/include/mysql  -D_REENTRANT -g -O2 -Wall  -c configuration-scanner.c && touch configuration-scanner.lo
configuration-scanner.c:652: warning: return-type defaults to `int'
configuration-scanner.c: In function `cfglex':
configuration-scanner.c:720: warning: label `find_rule' defined but not used
configuration-scanner.c: At top level: 
configuration-scanner.c:1790: warning: `yy_flex_realloc' defined but not used
configuration-scanner.c:1273: warning: `yyunput' defined but not used

...

[ime@fatbird php-4.0b4pl1]$ 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-17 16:44 UTC] rasmus at cvs dot php dot net
No bug, the PHP 4 bug database is at http://bugs.php.net/version4
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC