Avesena has asked for the wisdom of the Perl Monks concerning the following question:

Some one please help!

I am using FC6 on AMD64x86 (Dell inspiron 1501) processor i386


here is the code
Code: #!/usr/bin/perl -w use Prima;


here is the out put
Output:
root@stone-age ~# perl primainfo.pl
perl: symbol lookup error:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Prima/Prima.so:
undefined symbol: XShapeQueryExtension
root@stone-age ~#
  • Comment on Perl use prima; Prima(perl) (image processing software))error

Replies are listed 'Best First'.
Re: Perl use prima; Prima(perl) (image processing software))error
by erroneousBollock (Curate) on Sep 12, 2007 at 03:38 UTC
    perl: symbol lookup error:
    /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Prima/Prima.so:
    undefined symbol: XShapeQueryExtensio
    Looks like Prima is trying to use the X11 Shape extension, but could not link to it.

    Could you run ldd /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Prima/Prima.so and post the output?

    -David

      Thanks for your input David,
      I did ldd as you said

      Command
      root@stone-age ~# ldd /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Prima/Prima.so


      Output ldd: warning: you do not have execution permission for
      `/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Prima/Prima.so'
      linux-gate.so.1 => (0x00c9d000)
      libresolv.so.2 => /lib/libresolv.so.2 (0x0072c000)
      libnsl.so.1 => /lib/libnsl.so.1 (0x00948000)
      libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x00f86000)
      libdb-4.3.so => /lib/libdb-4.3.so (0x00e75000)
      libdl.so.2 => /lib/libdl.so.2 (0x00df7000)
      libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0x00294000)
      libcrypt.so.1 => /lib/libcrypt.so.1 (0x00645000)
      libutil.so.1 => /lib/libutil.so.1 (0x00110000)
      libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0x008fd000)
      libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0x00114000)
      libX11.so.6 => /usr/lib/libX11.so.6 (0x002bb000)
      libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00257000)
      libpng12.so.0 => /usr/lib/libpng12.so.0 (0x003bd000)
      libtiff.so.3 => /usr/lib/libtiff.so.3 (0x003e3000)
      libungif.so.4 => /usr/lib/libungif.so.4 (0x009c7000)
      /lib/ld-linux.so.2 (0x43b2f000)
      libXau.so.6 => /usr/lib/libXau.so.6 (0x00279000)
      libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00cbf000)
      libz.so.1 => /usr/lib/libz.so.1 (0x00788000)
      libgif.so.4 => /usr/lib/libgif.so.4 (0x0027c000)
      root@stone-age ~#
Re: Perl use prima; Prima(perl) (image processing software))error
by dk (Chaplain) on Sep 20, 2007 at 13:02 UTC
    XShapeQueryExtension resides in libXext.so, but judging by your output Prima either wasn't linked with it (because X11/Xext.h wasn't found by Makefile.PL), or you have a configuration problem on your machine. If you could rerun Prima's Makefile.PL and post the output, and possibly excerpt from makefile.log (it's big, so only Xext-related parts), then I'd be able to help more.
      Command
      root@stone-age Prima-1.23# perl Makefile.PL
      Output

      Setting up working environment.
      Determining compiler type... GNU
      Version: 1.23
      Checking if can compile... yes
      Checking if can link... yes
      Prima needs X11 headers for compilation! Set
      X11BASE='/path/to/X' or INCPATH+='/path/to/X/include' if
      you have a non-standard path to X. (see also
      makefile.log for details)


      makefile.log
      errors
      pmts0000.c:7:1: error: exponent has no digits
      pmts0000.c:7: error: expected ‘;’ before ‘No’
      /tmp/pmts0000.c:1:22: error: X11/Xlib.h: No such file or directory
      /tmp/pmts0000.c:1:22: error: X11/Xlib.h: No such file or directory
      /tmp/pmts0000.c:1:22: error: X11/Xlib.h: No such file or directory
      /tmp/pmts0000.c:1:22: error: X11/Xlib.h: No such file or directory


      last time I installed it using RPM package.