PHP 4.0 Bug #6464 Updated: Compilation w/ curl support fails with _gd_parse error (?)
| From: | Bug Database | Date: | Sun, 10 Sep 2000 22:31:57 +0000 |
| Subject: | PHP 4.0 Bug #6464 Updated: Compilation w/ curl support fails with _gd_parse error (?) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32847@lists.php.net to get a copy of this message | ||
ID: 6464
Updated by: sterling
Reported By: cahagn_o@epita.fr
Status: Feedback
Bug Type: Compile Failure
Assigned To:
Comments:
Try updating bison to the latest version and seeing whether it still happens
Previous Comments:
---------------------------------------------------------------------------
[2000-09-04 19:10:41] cahagn_o@epita.fr
I just tested snapshot php4-200009041145 and it's not
related to GD support. It's rather a parser (bison) issue.
This only appears when compiling Curl support though.
Now that #line lines got removed from current snapshot (it
used to complain with gcc 2.7.2.2), I now get these final
warnings and failure:
parsedate.c:619: Definition of symbol `_gd_parse' (multiply
defined)
/usr/local/share/bison.simple:249: Definition of symbol
`_gd_parse' (multiply defined)
*** Error code 1
Stop.
*** Error code 1
Stop.
I still can't find any reference to
/usr/local/share/bison.simple in the current PHP code. (of
couse, I don't have this file).
I think that's again a #line somewhere or something that gcc
2.7.2.2 don't appreciate.
Don't know about parsedate.c warning and why it only happens
when compiling curl support.
I still have another curl-specifc warning but it's not
relevant here I think:
In file included from
/nfs/s5/space/users/guest/www/compil/php-4.0.2/ext/curl/php_curl.h:31,
from internal_functions.c:47:
/u/guest/www/mbin/i386-NetBSD/include/curl/curl.h:175:
warning: `T' redefined
---------------------------------------------------------------------------
[2000-08-31 08:55:58] cahagn_o@epita.fr
Hi,
OS: NetBSD 1.3.3 x86
gcc: 2.7.2.2+myc2
PHP: 4.0.2
Here's the configure line:
./configure --without-gd --with-curl=/u/guest/www/mbin/i386-NetBSD/
Compiling with or without GD provokes the same failure.
Curl is v.7.1.1 (I also tried v.7.1) and is installed with default parameters (m
ake install) so I guess every include and lib file are present.
GD support works fine when I configure it (GD 1.8.3+png+jpeg)
I'd be happy to see a more detailed config.log about curl support:
configure:9238: checking for CURL support
Here's a little warning:
In file included from /nfs/s5/space/users/guest/www/compil/php-4.0.2/ext/curl/php_curl.h:31, from
internal_functions.c:47:
/u/guest/www/mbin/i386-NetBSD/include/curl/curl.h:175: warning: `T' redefined
Here're the warnings that make the compilation fail, this is the final linking step:
/usr/lib/bison.simple:249: Definition of symbol `_gd_parse' (multiply defined)
/usr/local/share/bison.simple:249: Definition of symbol `_gd_parse' (multiply defined)
Even though I do not have bison and do not have this file /usr/lib/bison.simple neither the other
one.
There seems to be other problems (similar warnings) with this version of gcc (see next bug report :)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6464