Operating System - Linux
1820594 Members
1344 Online
109626 Solutions
New Discussion

Perl Text::iconv won't compile

 
PatRoy
Regular Advisor

Perl Text::iconv won't compile

Hiya. I'm pretty hopeless here and hoping for a miracle from somebody out there.. anyone! (yes, I am desperate ;)

I've build Perl 5.10.0 on HP-UX 11.31. Here's my version details: http://pastebin.ca/991891

Built it using GCC 4.2.3 and Gnu Make 3.81 for HPUX 11.31 from http://hpux.ee.ualberta.ca.

I need to install a few extra modules for some stuff here. Some of theses includes CGI URI Config::General HTML::Parser HTML::Template Bundle::LWP Net::IP Set::IntSpan Text::Iconv.

I'm have a heck of a hard time with Text::Iconv. Either I try with perl 5.8.8 perl from the depot, or perl 5.10.0, I get the same results!

Now I had done this in the past when I had compiled perl 5.8.8 on PA-RISC, 11.11. I had taken down some notes about a few things, and here's one of them:


***
NOTE: if you have trouble compiling Text::Iconv (i.e. complaining that it can't find iconv...),
you might need to manually compile it going into you're .../.cpan/build/Text-Iconv-1.4/ folder like so:

/opt/perl-5.8.8/bin/perl Makefile.PL LIBS='-L/usr/lib' INC='-I/usr/include'
make && make test
make install

* for some reasons, it doesn't seem to like the GNU iconv installed on HPUX.
It's supposed to work, but didn't for me!!!
I managed to get it going using the builtin iconv_open(), iconv() and iconv_close() functions from within the systems libc libraries!
***


That doesn't help at all. It just won't find my iconv (see http://pastebin.ca/991983). Also see http://pastebin.ca/991991 which shows it with verbose on. I've tried SOO many ways! I can't even list them all. The *only* way I got it to somehow find the iconv is to modify the Makefile.PL and replace (line 108):

#include
with
#include


As long as I've set /usr/loca/bin in my PATH, otherwise, it still won't find iconv. THEN it compiles.However, `make test` fails!! :(
* also tried with /usr/local/include/iconv.h and that just won't compile.


See the following for details... http://pastebin.ca/991987

I'm really starting to think there's something terribly wrong with my HPUX install. I just don't get it. I don't know what to try anymore... :(

Can anyone help?

Thank you soo much in advance.

Patrick.