oingoboingo
Technical User
Hi.
I have been trying to get my perl script to understand the expat perl module. It's been a long journey unfortunately.
Anyway, I would like some confirmation on whether I am compiling things correctly and libraries are being put into the correct places.
Okay, the readme states that I run the configure command.
I do this and everything seems to pass fine. I am now using gcc compiler.
Once I have done this, I run the /usr/bin/make command but it does not execute anything. It just returns me to the next line.
However, prior to getting gcc installed on the system - and using cc, after running configure, I would run the make command it would actually produce something like the following:
/bin/sh ./libtool --silent --mode=compile cc -g -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
cpp: "lib/xmlparse.c", line 75: warning 2013: Unknown preprocessing directive.
cpp: "lib/xmlparse.c", line 855: error 4065: Recursion in macro "parsing".
*** Error exit code 1
Which is why I went to using gcc - from searches I had done on recommended using this on HPUX.
So my questions are 1. why doesnt make do anything anymore. and 2. do i have to copy the .o or .h files to a perl lib directory or something so that when I run my perl script, I don't get the following message:
Can't locate loadable object for module XML:
arser::Expat in @INC (@INC contains: /opt/perl5/lib/5.6.1/PA-RISC2.0 /opt/perl5/lib/5.6.1 /opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0 /opt/perl5/lib/site_perl/5.6.1 /opt/perl5/lib/site_perl .) at /opt/perl5/lib/5.6.1/XML/Parser.pm line 15
Compilation failed in require at /opt/perl5/lib/5.6.1/XML/Parser.pm line 15.
BEGIN failed--compilation aborted at /opt/perl5/lib/5.6.1/XML/Parser.pm line 19.
Compilation failed in require at ./wdmdumpprf_2_report.pl line 28.
BEGIN failed--compilation aborted at ./wdmdumpprf_2_report.pl line 28.
Hope you can help.....been going on too long...
I have been trying to get my perl script to understand the expat perl module. It's been a long journey unfortunately.
Anyway, I would like some confirmation on whether I am compiling things correctly and libraries are being put into the correct places.
Okay, the readme states that I run the configure command.
I do this and everything seems to pass fine. I am now using gcc compiler.
Once I have done this, I run the /usr/bin/make command but it does not execute anything. It just returns me to the next line.
However, prior to getting gcc installed on the system - and using cc, after running configure, I would run the make command it would actually produce something like the following:
/bin/sh ./libtool --silent --mode=compile cc -g -DHAVE_EXPAT_CONFIG_H -I./lib -I. -o lib/xmlparse.lo -c lib/xmlparse.c
(Bundled) cc: warning 480: The -g option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Z option is available only with the C/ANSI C product; ignored.
cpp: "lib/xmlparse.c", line 75: warning 2013: Unknown preprocessing directive.
cpp: "lib/xmlparse.c", line 855: error 4065: Recursion in macro "parsing".
*** Error exit code 1
Which is why I went to using gcc - from searches I had done on recommended using this on HPUX.
So my questions are 1. why doesnt make do anything anymore. and 2. do i have to copy the .o or .h files to a perl lib directory or something so that when I run my perl script, I don't get the following message:
Can't locate loadable object for module XML:
Compilation failed in require at /opt/perl5/lib/5.6.1/XML/Parser.pm line 15.
BEGIN failed--compilation aborted at /opt/perl5/lib/5.6.1/XML/Parser.pm line 19.
Compilation failed in require at ./wdmdumpprf_2_report.pl line 28.
BEGIN failed--compilation aborted at ./wdmdumpprf_2_report.pl line 28.
Hope you can help.....been going on too long...