Subject: pkg/20891: p5-XML-LibXML build broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <marc@informatik.uni-bremen.de>
List: netbsd-bugs
Date: 03/25/2003 23:53:09
>Number:         20891
>Category:       pkg
>Synopsis:       p5-XML-LibXML build broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 25 14:54:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marc Recht
>Release:        NetBSD 1.6Q
>Organization:
	
>Environment:
	
	
System: NetBSD leeloo.intern.geht.de 1.6Q NetBSD 1.6Q (LEELOO) #0: Mon Mar 24 10:27:44 CET 2003 root@leeloo.intern.geht.de:/sys/arch/i386/compile/LEELOO i386
Architecture: i386
Machine: i386

>Description:
leeloo# make
=> Checksum OK for XML-LibXML-1.31.tar.gz.
===> Extracting for p5-XML-LibXML-1.31nb1
===> Required installed package p5-XML-SAX>=0.03: p5-XML-SAX-0.12 found
===> Required installed package p5-XML-Checker-[0-9]*: p5-XML-Checker-0.12 found
===> Required installed package libxml2>=2.5.3: libxml2-2.5.4 found
===> Required installed package libiconv>=1.8: libiconv-1.8nb1 found
===> Required installed package perl>=5.0: perl-5.8.0 found
===> Patching for p5-XML-LibXML-1.31nb1
===> Applying pkgsrc patches for p5-XML-LibXML-1.31nb1
===> Buildlinking for p5-XML-LibXML-1.31nb1
lafile="/usr/pkgsrc/textproc/p5-XML-LibXML/work/.buildlink/lib/libpthread.la";                   libpattern="/usr/lib/libpthread.*";     true
===> Configuring for p5-XML-LibXML-1.31nb1
running xml2-config... ok
looking for -lxml2... no
libxml2 not found
Try setting LIBS and INC values on the command line
Or get libxml2 from
  http://www.libxml.org/
  If you install via RPMs, make sure you also install the -devel
  RPMs, as this is where the headers (.h files) are.
  *** Error code 2

  Stop.
  make: stopped in /usr/pkgsrc/textproc/p5-XML-LibXML
  *** Error code 1

  Stop.
  make: stopped in /usr/pkgsrc/textproc/p5-XML-LibXML

	
>How-To-Repeat:
	
>Fix:
Removing that part from Makefile.PL makes the problem disappear...

if ($@) {
    print "failed\n";
    if ($@ =~ /^VERSION/) {
        die "XML::LibXML needs libxml2 version 2.4.8 or higher\n";
    }
    warn "*** ", $@ if $DEBUG;
    warn "using fallback values for LIBS and INC\n";
    # backtick fails if gnome-config didn't exist...
    $config{LIBS} = '-L/usr/local/lib -L/usr/lib -lxml2 -lz -lm';
    $config{INC} = '-I/usr/local/include -I/usr/include';

    print <<OPT;
options:
    LIBS='$config{LIBS}'
    INC='$config{INC}'
    If this is wrong, Re-run as:
\$ $^X Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

OPT

}
	
>Release-Note:
>Audit-Trail:
>Unformatted: