php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #154 functions/gd parse errors and many warnings
Submitted: 1998-03-09 14:50 UTC Modified: 1998-03-10 13:07 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Brian dot Craigie at necs dot demon dot co dot uk Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0 Latest CVS OS: Solaris 2.5.1
Private report: No CVE-ID: None
 [1998-03-09 14:50 UTC] Brian dot Craigie at necs dot demon dot co dot uk
Hi.  I can't compile the latest CVS.  Is someone working on the GD part of it?

gcc -v 
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)


gcc -O2 -I.   -I/utils/downloaded/apache/apache_1.3a1/src   -I/usr/local/sybase/include  -I/usr/local/include/mysql -g -Wall   -c functions/gd.c -o functions/gd.o
functions/gd.c:698: parse error before `<'
functions/gd.c:707: parse error before `if'
functions/gd.c:713: warning: type defaults to `int' in declaration of `convert_to_long'
functions/gd.c:713: warning: parameter names (without types) in function declaration
functions/gd.c:713: conflicting types for `convert_to_long'
operators.h:68: previous declaration of `convert_to_long'
functions/gd.c:713: warning: data definition has no type or storage class
functions/gd.c:714: warning: type defaults to `int' in declaration of `convert_to_long'
functions/gd.c:714: warning: parameter names (without types) in function declaration
functions/gd.c:714: warning: data definition has no type or storage class

...
snip.  Goes on for several pages...

functions/gd.c:800: warning: initialization makes integer from pointer without a cast
functions/gd.c:800: initializer element is not constant
functions/gd.c:800: warning: data definition has no type or storage class
functions/gd.c:801: parse error before `if'
functions/gd.c:806: warning: type defaults to `int' in declaration of `gdImageRectangle'
functions/gd.c:806: warning: parameter names (without types) in function declaration
functions/gd.c:806: conflicting types for `gdImageRectangle'
/usr/local/include/gd.h:98: previous declaration of `gdImageRectangle'
functions/gd.c:806: warning: data definition has no type or storage class
functions/gd.c:807: parse error before `{'
*** Error code 1
make: Fatal error: Command failed for target `functions/gd.o'



Or am I doing something silly?

Cheers!

Brian


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-10 13:07 UTC] rasmus
local problem
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 06:01:28 2024 UTC