Newsgroup: it.comp.lang.perl
Titolo: Modulo XML::DOM

Ciao a tutti, utilizzo Linux slackware 10.0 e perl 5.8.4, dovrei
installare il modulo XML::DOM di perl per un programma che mi modifica i
menu di KDE ma continuo a ricevere il seguente errore:
Failed 5/21 test scripts, 76.19% okay. 11/129 subtests failed, 91.47% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
per l'installazione ho provato il comando "perl -MCPAN -e shell" e dopo
"install XML::DOM".
Ho provato anche a scaricare i sorgenti da CPAN ma durante i test continua
a darmi l'errore menzionato sopra.
c'e' una soluzione?
Grazie a tutti

 
Con Google Groups ho trovato questo:
http://groups-beta.google.com/group/comp.lang.perl.modules/msg/30a38f90f9309c34
Basta modificare leggermente alcuni script di test e 'make test' dovrebbe 
completarsi senza errori. 
Direi, comunque, che puoi tranquillamente usare "force install" nella shell 
di CPAN, visto quegli errori non sembrano segnalare alcun reale 
inconveniente.
Max

 hai scritto una mail.
Il suo oggetto era"Modulo XML::DOM":
Rispondo a questa mail per chiedere aiuto su un altro modulo che non
riesco ad installare...
GD --> su 5 macchine in cui ho cercato di installarlo non ci sono mai
riuscito ma almeno su questa ultima DEVE installarsi!!!
premessa:
OS: 	Linux Debian Woody
Perl:	v5.6.1
GD:	v2.19
Inst:	provata sia con "make" sia con "perl -MCPAN -e shell"
Supporti:
Please choose the features that match how libgd was built:
Build JPEG support? [y] y
Build PNG support? [y] y
Build FreeType support? [y] y
Build support for animated GIFs? [y] y
Build XPM support? [y] y
In entrambi i casi si ferma la make dicendomi:
Checking if your kit is complete...
Looks good
Writing Makefile for GD
cp 
qd.pl
 blib/lib/
qd.pl
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
/usr/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1
/usr/share/perl/5.6.1/ExtUtils/xsubpp  -typemap
/usr/share/perl/5.6.1/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc
&& mv GD.xsc GD.c cc -c -I/usr/include -I/usr/include/gd -DDEBIAN
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"2.19\" -DXS_VERSION=\"2.19\"
-fPIC -I/usr/lib/perl/5.6.1/CORE -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM
-DHAVE_PNG -DHAVE_ANIMGIF GD.c GD.xs: In function `newDynamicCtx':
GD.xs:440: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:460: structure has no member named `alpha
.....
.....
.....
GD.xs:2130: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:2134: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:2136: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:2138: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:2140: `gdFTEX_Big5' undeclared (first use in this function)
GD.xs:2162: warning: assignment makes pointer from integer without a
cast GD.xs: In function `XS_GD__Font_DESTROY':
GD.xs:2382: warning: comparison between pointer and integer
GD.xs:2383: warning: comparison between pointer and integer
GD.xs:2384: warning: comparison between pointer and integer
GD.xs:2385: warning: comparison between pointer and integer
GD.xs:2386: warning: comparison between pointer and integer
GD.xs: In function `XS_GD__Font_Small':
GD.xs:2398: warning: assignment makes pointer from integer without a
cast GD.xs: In function `XS_GD__Font_Large':
GD.xs:2409: warning: assignment makes pointer from integer without a
cast GD.xs: In function `XS_GD__Font_Giant':
GD.xs:2420: warning: assignment makes pointer from integer without a
cast GD.xs: In function `XS_GD__Font_MediumBold':
GD.xs:2431: warning: assignment makes pointer from integer without a
cast GD.xs: In function `XS_GD__Font_Tiny':
GD.xs:2442: warning: assignment makes pointer from integer without a
cast make: *** [GD.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Cosa vuole questo benedetto signor GD!!??
Grazie per l'aiuto,
	nathanvi
-- 
nathanvi
ICQ --> 20318568
mail --> vitto.z A_T 
tiscali.it
sito --> 
http://www.centrostudiraffaello.it/sito/



Intanto grazie per avermi risposto, ormai non ci speravo piu' :)
Il modulo alla fine l'ha installato, pero' non mi da' la
versione:
Found module XML-DOM Version ???
E quando lancio il setup di CrossOffice, quando deve creare i menu in KDE
mi restituisce il seguente errore:
vfolder_menu:error: you need XML::DOM to manipulate VFolder menus
unable to use XML::DOM:
Can't load
'/home/users/.cxoffice/lib/xml/perl/auto/XML/Parser/Expat/Expat.so' for
module XML::Parser::Expat: libperl.so.5.8: cannot open shared object file:
No such file or directory at
/usr/lib/perl5/5.8.4/i486-linux/DynaLoader.pm line 230.
 at /home/users/.cxoffice/lib/xml/perl/XML/Parser.pm line 15
Compilation failed in require at
/home/users/.cxoffice/lib/xml/perl/XML/Parser.pm line 15. BEGIN
failed--compilation aborted at
/home/users/.cxoffice/lib/xml/perl/XML/Parser.pm line 19. Compilation
failed in require at /home/users/.cxoffice/lib/xml/perl/XML/DOM.pm
line 43. BEGIN failed--compilation aborted at
/home/users/.cxoffice/lib/xml/perl/XML/DOM.pm line 72. Compilation
failed in require at (eval 4) line 1. BEGIN failed--compilation aborted at
(eval 4) line 1.
Questo e' solo 1 msg, in realta' me ne stampa una 15ina. Intendiamoci il
sw funziona ma non mi crea i menu in KDE :(.