I'm installing AxKit on a fresh OS X (my new computer) now and I've got the old iconv problem again. This time around I *think* I have more knowledge than last time, so I did a perl Makefile.PL DEBUG=1 and noticed that /sw/lib isn't being included in the library search directories. So I googled and found advice to try these forms:

perl Makefile.PL 'LIBS=-L/sw/lib'
perl Makefile.PL '--libs=/sw/lib'

neither helped, another thing recommended was too look in Makefile.PL for something like this:

     LIBS => '-L/sw/lib -lnode -lnle',
     INC => '-I/sw/include',

But, it seems that the makefile is grabbing library paths from xml2-config (exclusively?) so I added installed a workaround and it then discovered libiconv() successfully. Here's the diff:

--- foo/AxKit-1.61/Makefile.PL  Sat Feb  8 08:49:21 2003
+++ Makefile.PL Sat Jul 26 16:08:07 2003
@@ -96,9 +96,9 @@

 eval {
     print "running xml2-config... ";
-    my $libs = backtick('xml2-config --libs');
+    my $libs = backtick('xml2-config --libs') . " -L/sw/lib";
     $config{LIBS} .= " $libs" if $libs;
-    my $inc = backtick('xml2-config --cflags');
+    my $inc = backtick('xml2-config --cflags') . " -I/sw/include";
     $config{INC} .= " $inc" if $inc;
     print "ok\n";
 };


So now I get this:


Checking if your kit is complete...
Looks good
checking for iconv() in -liconv... no
checking for libiconv() in -liconv... yes
Found libiconv. Might be *BSD or Win32...

later on in 'make' I got a problem where it couldn't find the .h for libiconv, so I added the -I/sw/include to Makefile.PL as well. Is this a legit fix or a total hack?

simon


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to