Re: 533: error: syntax error before "void"



Hmmm ... I replied to this and it went to c.l.p.misc - because that's where
the followups were set to go. Not sure that's what the OP intended so I'll
post another copy here.

"Ken Rich" <kenr@xxxxxxxxxxxxxxxxxxxxx> wrote in message
..
..
GD.c

GD.c:533: error: syntax error before "void"
GD.xs: In function `XS_GD__Image_trueColor':
GD.xs:545: error: `dMY_CXT' undeclared (first use in this function)
GD.xs:545: error: (Each undeclared identifier is reported only once
GD.xs:545: error: for each function it appears in.)
GD.xs:549: error: `MY_CXT' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image__new':
GD.xs:564: error: `dMY_CXT' undeclared (first use in this function)
GD.xs:565: error: `MY_CXT' undeclared (first use in this function)
...and a bunch more like that...


Set-up:

Sun V880
solaris 8
perl v5.6.1
GD-2.32
GD-2.31 tried too.

No Sun compiler, but I am considering installing one and
going back and compiling perl and libs and EVERYthing using Sun C.


Try GD-2.30. It doesn't use those (perl) macros - which are defined in
perl.h on perl 5.8, but apparently missing in perl 5.6.

I'm not sure when they first appeared - probably with 5.8.0. Imho if the
author wants to write code that works only on perl 5.8, he should make that
fact clear - eg by placing code in the Makefile.PL that dies with an
appropriate error message if 5.6 or earlier is used.

Or update to perl 5.8 :-)

Cheers,
Rob



.



Relevant Pages

  • Re: Solaris taking over Perl ownership
    ... > Solaris ISP has 2 versions of Perl currently installed. ... > idea if the second one is from Sun or simply compiled on Sun. ... Solaris 9 gets 5.6.1. ...
    (comp.lang.perl.misc)
  • building perl modules on Solaris 9
    ... I'm working on Sun Sparc 9. ... I could get most perl modules to install OK ... I ran into an error getting DBI compiled/installed. ...
    (SunManagers)
  • Re: How to enhance /usr/perl5 on Solaris 10?
    ... I'd like Sun to maintain perl, ... You should be able to install ordinary perl modules as part ... Expressed in this posting are my opinions. ...
    (comp.unix.solaris)
  • Re: 533: error: syntax error before "void"
    ... Sun V880 ... No Sun compiler, but I am considering installing one and ... going back and compiling perl and libs and EVERYthing using Sun C. ... fact clear - eg by placing code in the Makefile.PL that dies with an ...
    (comp.lang.perl.misc)
  • Re: Develop an ASP website under Fedora
    ... > If you are really inclined there is a software that Sun has called Sun ... >> I believe this project uses perl as the embedded language. ... >> I'm not sure if the syntax is the same between the two. ...
    (Fedora)