a perl -V dump returns something like this :
Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include', Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldl -lm -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl. +a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynami +c' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
When I run the code you provided, I still get an error :)
Had problems bootstrapping Inline module 'derby_pl_e0f6' Can't load '/path/derby/_Inline/lib/auto/derby_pl_e0f6/derby_pl_e0f6.s +o' for module derby_pl_e0f6: /home/beatnik/code/cstuff/gd/derby/_Inli +ne/lib/auto/derby_pl_e0f6/derby_pl_e0f6.so: undefined symbol: jpeg_de +stroy at /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206. etc
I'm using Perl 5.6.1 on RH7.2 and Inline 0.43.
gd.h is at
/usr/include/gd.h /usr/local/include/gd.h
and libgd is at
/usr/lib/libgd.so.1 /usr/lib/libgd.so.1.8 /usr/lib/libgd.so.1.8.4 /usr/lib/libgdk.so.1.0.6 /usr/lib/libgdk.so.1 /usr/lib/libgd.a /usr/lib/libgd.so /usr/local/lib/libgd.a
If this helps somewhat...

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.

In reply to Re: Re: Inline::C and gd by Beatnik
in thread Inline::C and gd by Beatnik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.