GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20) 
Author Message
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)

Like Will, I've encountered a make error when trying to
get GD.pm compiled. I'm clueless what to do about it.
This is the relevant error message that rolls out:
----------------------------------------------------------------------------
cc -c -I/usr/local/include -Dbool=char -DHAS_BOOL -I/usr/local/include -O2  
  -D
VERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fpic -I/usr/lib/perl5/5.00503/i386-l
inux
/CORE  GD.c
GD.xs: In function `XS_GD__Image__newFromGd2':
GD.xs:320: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image__newFromGd2Part':
GD.xs:354: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image_gd':
GD.xs:390: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image_gd2':
GD.xs:405: `GD2_FMT_COMPRESSED' undeclared (first use in this function)
GD.xs:405: (Each undeclared identifier is reported only once
GD.xs:405: for each function it appears in.)
GD.xs:405: warning: assignment makes pointer from integer without a cast
GD.xs: In function `XS_GD__Image_stringTTF':
GD.xs:1014: warning: assignment makes pointer from integer without a cast
make: *** [GD.o] Error 1
----------------------------------------------------------------------------
-------
Thanks very much!

Bud Hovell



Wed, 17 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)
Drat -- I failed to mention the Perl version is
 "5.005_03 built for i386-linux" -- sorry for the
omission.

bh



Wed, 17 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)
On Sat, 29 Jan 2000 15:30:44 -0800,

Quote:
> Like Will, I've encountered a make error when trying to
> get GD.pm compiled. I'm clueless what to do about it.
> This is the relevant error message that rolls out:
> ----------------------------------------------------------------------------
> cc -c -I/usr/local/include -Dbool=char -DHAS_BOOL -I/usr/local/include -O2  
>   -D
> VERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fpic -I/usr/lib/perl5/5.00503/i386-l
> inux
> /CORE  GD.c
> GD.xs: In function `XS_GD__Image__newFromGd2':
> GD.xs:320: warning: assignment makes pointer from integer without a cast

Do you maybe have an old version of libgd installed? Or only half a
version or something? I know RedHat has some odd ideas about how to
split up packages in a 'development' and 'normal' part.

I'm not sure which version of libgd is necessary (I believe at least
1.63, but I may be off, lok it up yourself), but that may be all that's
wrong.

Martien
--
Martien Verbruggen              |
Interactive Media Division      | If it isn't broken, it doesn't have
Commercial Dynamics Pty. Ltd.   | enough features yet.
NSW, Australia                  |



Thu, 18 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)
Hi Bud,
    Your problem is exactly the same as mine..and if you're using redhat 6.1
...
I suggest you go get the source code for PERL Version 5.00503 ...from CPAN..
and then remove the RPM Perl used by REDHAT..
then compile/install the source from CPAN.

now, you also have to get the source for GD ..from www.boutell.com/gd ..
sad to say..they are only left with the latest version of GD library that is
able to produce only PNG..not GIF..
so if you're using GIF..you have to use the wrapper created by Martin...
But I have not tested the PNG TO GIF part.. ..but it's on my TODO List..

regards.

Quote:
> Like Will, I've encountered a make error when trying to
> get GD.pm compiled. I'm clueless what to do about it.
> This is the relevant error message that rolls out:
> /CORE  GD.c
> GD.xs: In function `XS_GD__Image__newFromGd2':
> GD.xs:320: warning: assignment makes pointer from integer without a cast
> GD.xs: In function `XS_GD__Image__newFromGd2Part':
> GD.xs:354: warning: assignment makes pointer from integer without a cast
> GD.xs: In function `XS_GD__Image_gd':
> GD.xs:390: warning: assignment makes pointer from integer without a cast
> GD.xs: In function `XS_GD__Image_gd2':
> GD.xs:405: `GD2_FMT_COMPRESSED' undeclared (first use in this function)
> GD.xs:405: (Each undeclared identifier is reported only once
> GD.xs:405: for each function it appears in.)
> GD.xs:405: warning: assignment makes pointer from integer without a cast
> GD.xs: In function `XS_GD__Image_stringTTF':
> GD.xs:1014: warning: assignment makes pointer from integer without a cast
> make: *** [GD.o] Error 1



Thu, 18 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)

Quote:
> Do you maybe have an old version of libgd installed? Or only half a
> version or something? I know RedHat has some odd ideas about how to
> split up packages in a 'development' and 'normal' part.

Yes, they do. And you got it right -- that was the crux of the problem,
now fixed.

Thanks very much!|



Fri, 19 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)
Hi, Will...

Quote:
> I suggest you go get the source code for PERL Version 5.00503 ...from
CPAN..
> and then remove the RPM Perl used by REDHAT..
> then compile/install the source from CPAN.

Done long ago. :-) We tend to dropkick the RPM versions of anything that is
important, and that certainly includes perl, gcc and friends. And apache, of
course.

Quote:
> now, you also have to get the source for GD ..from www.boutell.com/gd ..
> sad to say..they are only left with the latest version of GD library that
is
> able to produce only PNG..not GIF..
> so if you're using GIF..you have to use the wrapper created by Martin...
> But I have not tested the PNG TO GIF part.. ..but it's on my TODO List.

Thanks for the tip......I'm actually installing all this stuff preparatory
for
bugzilla, and they give fairly clear instructions on what is needed. GD
is the only piece-part that didn't install cleanly using 'cpan', and the
libs
were seriously{*filter*} me up. Hopefully, everything will be ready to
go when I get back to finish it in the next few days.

Thanks to you and all for your help,

bh



Fri, 19 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)


Quote:
> Hi Bud,
>     Your problem is exactly the same as mine..and if you're using redhat 6.1
> ...
> I suggest you go get the source code for PERL Version 5.00503 ...from CPAN..
> and then remove the RPM Perl used by REDHAT..
> then compile/install the source from CPAN.

SuSE 6.0, kernel 2.0.36 - got exactly the same
trouble in GD, installed 5.00503 ( had 5.00502)
and still have the exact same problem compiling
GD.xs

Obviously it's the GD2_FMT_COMPRESSED that is
the problem. Anyone know where it's defined?

Bj?rn


Yes, I did make clean, perl Makefile.PL , make

Quote:
> But I have not tested the PNG TO GIF part.. ..but it's on my TODO List..

Forget it, Unisys won't license it anyway :-(

Quote:


> > Like Will, I've encountered a make error when trying to
> > get GD.pm compiled. I'm clueless what to do about it.
> > This is the relevant error message that rolls out:
> > /CORE  GD.c
> > GD.xs: In function `XS_GD__Image__newFromGd2':
> > GD.xs:320: warning: assignment makes pointer from integer without a cast
> > GD.xs: In function `XS_GD__Image__newFromGd2Part':
> > GD.xs:354: warning: assignment makes pointer from integer without a cast
> > GD.xs: In function `XS_GD__Image_gd':
> > GD.xs:390: warning: assignment makes pointer from integer without a cast
> > GD.xs: In function `XS_GD__Image_gd2':
> > GD.xs:405: `GD2_FMT_COMPRESSED' undeclared (first use in this function)
> > GD.xs:405: (Each undeclared identifier is reported only once
> > GD.xs:405: for each function it appears in.)
> > GD.xs:405: warning: assignment makes pointer from integer without a cast
> > GD.xs: In function `XS_GD__Image_stringTTF':
> > GD.xs:1014: warning: assignment makes pointer from integer without a cast
> > make: *** [GD.o] Error 1

Sent via Deja.com http://www.deja.com/
Before you buy.


Mon, 29 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)


Quote:
> Hi Bud,
>     Your problem is exactly the same as mine..and if you're using

redhat 6.1
[snip]

Quote:
> now, you also have to get the source for GD ..from

www.boutell.com/gd ..

That was it. I had exactly the same problem using SuSE 6.0,
its perl version was 5.00502 and might have worked - but by the time
I realized the problem was libgd I had already installed the 5.00503
version. Smooth sailing - I _like_ the CPAN module :-)

Quote:
> sad to say..they are only left with the latest version of GD library
that is
> able to produce only PNG..not GIF..
> so if you're using GIF..you have to use the wrapper created by

Martin...

Hah - I have "burned" all my gifs anyway

This shows the real problem:

Quote:
> > GD.xs: In function `XS_GD__Image_gd2':
> > GD.xs:405: `GD2_FMT_COMPRESSED' undeclared (first use in this

function)

everything else was just warnings - and with libgd 1.7.3 it compiles.

Bj?rn the catman

Sent via Deja.com http://www.deja.com/
Before you buy.



Mon, 29 Jul 2002 03:00:00 GMT  
 GD.pm (ver 1.23) compile fails on Linux RedHat 6.1 (2.2.12-20)
On Thu, 10 Feb 2000 19:22:55 GMT,

Quote:

> Hah - I have "burned" all my gifs anyway

\begin{offtopic}
*applause*
\end{offtopic}

Martien
--
Martien Verbruggen              |
Interactive Media Division      | 42.6% of statistics is made up on the
Commercial Dynamics Pty. Ltd.   | spot.
NSW, Australia                  |



Mon, 29 Jul 2002 03:00:00 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. Cant get GD-1.2x to compile in Redhat 6.1

2. GD.pm compile woes Linux RedHat 6.2 (2.2.1)

3. compiling module pgsql_perl5-1.8.1 on redhat 6.1

4. Please help install GD.pm 1.23

5. problem with DBD v1.12 for Oracle 9i on Redhat linux 8.0

6. GD::Graph 1.23 / GD 1.19 question

7. GD.pm Module installation on Linux Redhat

8. Tk800.12 compile closer Linux but.....

9. How to create GIFs with GD 1.23?

10. Sys::Syslog and stdarg.ph and Redhat 6.1

11. Sys::Syslog and stdarg.ph and Redhat 6.1

12. crash during build of x2p on RedHat 6.1

 

 
Powered by phpBB® Forum Software