Subject: | Problems using library and include paths |
Date: | Tue, 5 Nov 2013 16:12:26 +0000 |
To: | "bug-XML-LibXML [...] rt.cpan.org" <bug-XML-LibXML [...] rt.cpan.org> |
From: | "Benkert, Katharina" <Katharina.Benkert [...] vector.com> |
Dear ladies and gentlemen,
when trying to install LibXML on Windows7 I had problems with the check_lib() call in _libxml_check_lib_with_config_LIBs().
- CheckLib.pm looks for the hash entry 'libpath' not 'LIBS', so the code in Makefile.PL should be something like
$conf_LIBS =~ s/ -l\w+//g;
return
check_lib(
....
libpath => [split(/\s/,$conf_LIBS)],
...
)
- The command line argument 'INC' has to be given without '-I' prefixes for CheckLib to work, but during Makefile generation the prefix is not added
- I tried to use the command line argument 'LDFLAGS' but it has no effect on the check in CheckLib or Makefile generation
I ended up disabling the checks and editing parts of the generated Makefile, then an 'nmake install_perl' worked.
With kind regards
Dr. Katharina Benkert
-----------------------------------------------------
Software Development Engineer
PES1.3
Vector Informatik GmbH
Ingersheimer Str. 24
70499 Stuttgart
Deutschland
Tel.: +49 711 80670-3869
Fax: +49 711 80670-
mailto: Katharina.Benkert@vector.com<mailto:Katharina.Benkert@vector.com>
Internet: www.vector.com<http://www.vector.com/>
Sitz der Gesellschaft: Stuttgart
Handelsregister: Amtsgericht Stuttgart, HRB 17317
Geschäftsführer:
Dr. Thomas Beck, Eberhard Hinderer,
Martin Litschel, Thomas Riegraf, Dr. Helmut Schelling
-----------------------------------------------------
[cid:image001.png@01CEDA49.6DF91030]