View previous topic :: View next topic |
Author |
Message |
noisome Junior Member
Joined: 23 Nov 2008 Posts: 3
|
Posted: Thu Jan 22, 2009 1:42 am Post subject: Building a couple of Perl Modules...Help? |
|
|
I'm having trouble with a couple of perl modules I would like to use.
1. PerlMagick - I have installed ImageMagick-6.4.8-7 and during compilation of PerlMagick I get (after make):
Quote: | Magick.xs:706: error: 'EINVAL' undeclared (first use in this function)
Magick.xs:706: error: (Each undeclared identifier is reported only once
Magick.xs:706: error: for each function it appears in.) |
I have searched Google and tried the "ideas" on why this is happening, but I don't want to break the system by trying too much. I can show
2. Apache::TaintRequest, which requires Taint - During both module installations in "Perl Modules" section of Webmin during compile I get the errors during the "make test" phase, which fails out and stops the module installation. However, if I install by hand and do a "perl Makefile.PL", "make", and "make install" all goes well. Any ideas?
Thanks,
Noisome |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Jan 22, 2009 7:08 am Post subject: |
|
|
1. PerlMagick outputs some warnings but compiled, failed on testing though because required Carp from perl 5.8.9.
Does yours compiled ok?
2. That's OK! Usually 'make test' requires other perl modules as well to do some tests.
Install your perl modules and if you have problems, install third part modules required for testing.
You can use cpan2tgz from http://software.jaos.org/ to help you with perl modules.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
noisome Junior Member
Joined: 23 Nov 2008 Posts: 3
|
Posted: Fri Jan 23, 2009 5:51 pm Post subject: |
|
|
PerlMagick v6.40 did not compile. Here's the entire compile attempt:
Code: | Executing /usr/bin/perl Makefile.PL && make ..
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lMagickCore
Note (probably harmless): No library found for -lMagickWand
Writing Makefile for Image::Magick
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/bin/perl5.10.0 /usr/lib/perl5/5.10.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.10.0/ExtUtils/t
ypemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
cc -c -I/usr/include/ImageMagick -I/usr/local/include/ImageMagick -D_REENTRANT -D_GNU_SOURCE -fno-s
trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g -Wall -W
-pthread -O2 -march=i486 -mtune=i686 -DVERSION=\"6.4.0\" -DXS_VERSION=\"6.4.0\" -fPIC "-I/usr/lib
/perl5/5.10.0/i486-linux-thread-multi/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.3/include/limits.h:11,
from /usr/include/sys/param.h:22,
from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/perl.h:653,
from Magick.xs:61:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
In file included from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/perl.h:653,
from Magick.xs:61:
/usr/include/sys/param.h:24:25: error: linux/param.h: No such file or directory
In file included from /usr/include/sys/socket.h:36,
from /usr/include/netinet/in.h:25,
from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/perl.h:1123,
from Magick.xs:61:
/usr/include/bits/socket.h:320:24: error: asm/socket.h: No such file or directory
In file included from /usr/include/errno.h:36,
from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/perl.h:1180,
from Magick.xs:61:
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
In file included from /usr/include/sys/ioctl.h:27,
from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/perl.h:1328,
from Magick.xs:61:
/usr/include/bits/ioctls.h:24:24: error: asm/ioctls.h: No such file or directory
In file included from /usr/include/signal.h:333,
from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/unixish.h:106,
from /usr/lib/perl5/5.10.0/i486-linux-thread-multi/CORE/perl.h:2560,
from Magick.xs:61:
/usr/include/bits/sigcontext.h:28:29: error: asm/sigcontext.h: No such file or directory
Magick.xs:212: warning: missing initializer
Magick.xs:212: warning: (near initialization for 'Methods[8].arguments')
Magick.xs:216: warning: missing initializer
Magick.xs:216: warning: (near initialization for 'Methods[11].arguments')
Magick.xs:217: warning: missing initializer
Magick.xs:217: warning: (near initialization for 'Methods[12].arguments')
Magick.xs:218: warning: missing initializer
Magick.xs:218: warning: (near initialization for 'Methods[13].arguments')
Magick.xs:225: warning: missing initializer
Magick.xs:225: warning: (near initialization for 'Methods[16].arguments')
Magick.xs:227: warning: missing initializer
Magick.xs:227: warning: (near initialization for 'Methods[18].arguments')
Magick.xs:316: warning: missing initializer
Magick.xs:316: warning: (near initialization for 'Methods[45].arguments')
Magick.xs:332: warning: missing initializer
Magick.xs:332: warning: (near initialization for 'Methods[50].arguments')
Magick.xs:335: warning: missing initializer
Magick.xs:335: warning: (near initialization for 'Methods[52].arguments')
Magick.xs:351: warning: missing initializer
Magick.xs:351: warning: (near initialization for 'Methods[61].arguments')
Magick.xs:354: warning: missing initializer
Magick.xs:354: warning: (near initialization for 'Methods[64].arguments')
Magick.xs:397: warning: missing initializer
Magick.xs:397: warning: (near initialization for 'Methods[83].arguments')
Magick.xs:424: warning: missing initializer
Magick.xs:424: warning: (near initialization for 'Methods[95].arguments')
Magick.xs:425: warning: missing initializer
Magick.xs:425: warning: (near initialization for 'Methods[96].arguments')
Magick.xs:429: warning: missing initializer
Magick.xs:429: warning: (near initialization for 'Methods[98].arguments')
Magick.xs:430: warning: missing initializer
Magick.xs:430: warning: (near initialization for 'Methods[99].arguments')
Magick.xs:431: warning: missing initializer
Magick.xs:431: warning: (near initialization for 'Methods[100].arguments')
Magick.xs:438: warning: missing initializer
Magick.xs:438: warning: (near initialization for 'Methods[103].arguments')
Magick.xs: In function 'constant':
Magick.xs:706: error: 'EINVAL' undeclared (first use in this function)
Magick.xs:706: error: (Each undeclared identifier is reported only once
Magick.xs:706: error: for each function it appears in.)
Magick.xs:554: warning: unused parameter 'sans'
Magick.c: In function 'XS_Image__Magick_AcquireImagePixels':
Magick.c:2281: warning: unused variable 'ref'
Magick.c:2276: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Animate':
Magick.c:2437: warning: unused variable 'ref'
Magick.c:2430: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Append':
Magick.c:2518: warning: unused variable 'ref'
Magick.c:2511: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Average':
Magick.c:2656: warning: unused variable 'ref'
Magick.c:2649: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_BlobToImage':
Magick.c:2754: warning: unused variable 'ref'
Magick.c:2747: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Copy':
Magick.c:2910: warning: unused variable 'ref'
Magick.c:2903: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Coalesce':
Magick.c:3002: warning: unused variable 'ref'
Magick.c:2995: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_CompareLayers':
Magick.c:3092: warning: unused variable 'ref'
Magick.c:3085: warning: unused variable 'ix'
Magick.xs: In function 'XS_Image__Magick_DESTROY':
Magick.xs:3209: warning: value computed is not used
Magick.c:3227: warning: unused variable 'ref'
Magick.c: In function 'XS_Image__Magick_Display':
Magick.c:3317: warning: unused variable 'ref'
Magick.c:3310: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Flatten':
Magick.c:3398: warning: unused variable 'ref'
Magick.c:3391: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Fx':
Magick.c:3535: warning: unused variable 'ref'
Magick.c:3528: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Get':
Magick.c:3694: warning: unused variable 'ref'
Magick.c:3687: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_GetImagePixels':
Magick.c:4938: warning: unused variable 'ref'
Magick.c:4933: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_GetIndexes':
Magick.c:5092: warning: unused variable 'ref'
Magick.c:5087: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Histogram':
Magick.c:5165: warning: unused variable 'ref'
Magick.c:5158: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_GetPixel':
Magick.c:5287: warning: unused variable 'ref'
Magick.c:5280: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_GetPixels':
Magick.c:5494: warning: unused variable 'ref'
Magick.c:5487: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_ImageToBlob':
Magick.c:5742: warning: unused variable 'ref'
Magick.c:5735: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Layers':
Magick.c:5847: warning: unused variable 'ref'
Magick.c:5840: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_MagickToMime':
Magick.c:6165: warning: unused variable 'ref'
Magick.c:6160: warning: unused variable 'ix'
Magick.xs: In function 'XS_Image__Magick_Mogrify':
Magick.xs:9186: warning: implicit declaration of function 'LiquidRescaleImage'
Magick.xs:9188: warning: assignment makes pointer from integer without a cast
Magick.xs:9193: warning: implicit declaration of function 'EncipherImage'
Magick.xs:9199: warning: implicit declaration of function 'DecipherImage'
Magick.c:6200: warning: unused variable 'ref'
Magick.c: In function 'XS_Image__Magick_Montage':
Magick.c:9135: warning: unused variable 'ref'
Magick.c:9128: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Morph':
Magick.c:9545: warning: unused variable 'ref'
Magick.c:9538: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Mosaic':
Magick.c:9676: warning: unused variable 'ref'
Magick.c:9669: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Ping':
Magick.c:9766: warning: unused variable 'ref'
Magick.c:9759: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Preview':
Magick.c:9978: warning: unused variable 'ref'
Magick.c:9971: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryColor':
Magick.c:10078: warning: unused variable 'ref'
Magick.c:10071: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryColorname':
Magick.c:10161: warning: unused variable 'ref'
Magick.c:10154: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryFont':
Magick.c:10238: warning: unused variable 'ref'
Magick.c:10231: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryFontMetrics':
Magick.c:10360: warning: unused variable 'ref'
Magick.c:10353: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryMultilineFontMetrics':
Magick.c:10736: warning: unused variable 'ref'
Magick.c:10729: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryFormat':
Magick.c:11112: warning: unused variable 'ref'
Magick.c:11105: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_QueryOption':
Magick.c:11207: warning: unused variable 'ref'
Magick.xs:11323: warning: label 'PerlException' defined but not used
Magick.c:11200: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Read':
Magick.c:11271: warning: unused variable 'ref'
Magick.c:11264: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Remote':
Magick.c:11483: warning: unused variable 'ref'
Magick.c:11476: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Set':
Magick.c:11537: warning: unused variable 'ref'
Magick.c:11530: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_SetPixel':
Magick.c:11602: warning: unused variable 'ref'
Magick.c:11595: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Statistics':
Magick.c:11831: warning: unused variable 'ref'
Magick.c:11824: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_SyncImagePixels':
Magick.c:12008: warning: unused variable 'ref'
Magick.c:12003: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Transform':
Magick.c:12077: warning: unused variable 'ref'
Magick.c:12070: warning: unused variable 'ix'
Magick.c: In function 'XS_Image__Magick_Write':
Magick.c:12245: warning: unused variable 'ref'
Magick.c:12238: warning: unused variable 'ix'
make: *** [Magick.o] Error 1
|
I installed the Slackware dev files when it did not have the necessary cpp file to compile from: http://slackware.mirrors.tds.net/pub/slackware/slackware-12.1/slackware/d/
I hope that was correct.
Thanks for your help,
Noisome |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Jan 23, 2009 8:53 pm Post subject: |
|
|
You install Slackware12.1 dev packages, what version of SMS do you have?
Try perlmagick package from here
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
noisome Junior Member
Joined: 23 Nov 2008 Posts: 3
|
Posted: Fri Jan 23, 2009 9:38 pm Post subject: |
|
|
It is SMS v1.4.1. That might be my issue. I see from the changelog you are using v12.2. Webmin says my version of Slackware is 12.1 and that is where I got my information from.
I will change to 12.2 and retry.
Thank you for pointing that out.
Noisome
Edit: I installed the package and it has loaded correctly! Thanks for that package and I'll retry to compile to verify it works. |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Jan 23, 2009 9:48 pm Post subject: |
|
|
If you go to webmin configuration under operating system and environment you will see
Detected operating system Slackware Linux 12.2.0
just update to it.
You can find versions too by doing
cat /etc/sms-version
cat /etc/slackware-version
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|