Subject: | Makefile.PL don't catch glib headers |
The Makefile produced by Makefile.PL using gdome-config doesn't have
/usr/include/glib-1.2
/usr/lib/glib/include
at INC definition.
I get the wrong file Makefile.nok i have to transform in Makefile, with
diff Makefile.nok Makefile.ok
118c118
< INC = -I/usr/include -I/usr/include/libgdome -I/usr/include/libxml2
---
Show quoted text
> INC = -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include -I/usr/include/libgdome -I/usr/include/libxml2
I don't know if it is a bug from Makefile.PL or gdome-config.
[]perl Makefile.PL
running gdome-config... /usr/bin/gdome-config: line 1: --libs: command not found
/usr/bin/gdome-config: line 1: --cflags: command not found
/usr/bin/gdome-config: line 1: --libs: command not found
/usr/bin/gdome-config: line 1: --cflags: command not found
ok
Writing Makefile for XML::GDOME
[]gdome-config --cflags
/usr/bin/gdome-config: line 1: --libs: command not found
/usr/bin/gdome-config: line 1: --cflags: command not found
-I/usr/include -I/usr/include/libgdome -I/usr/include/libxml2
Maybe you should also add another verification in Makefile.PL:
if ($config{INC} !~ /-I\/usr\/include\/glib-1.2/) {
$config{INC} .= ' -I/usr/include/glib-1.2';
}
if ($config{INC} !~ /-I\/usr\/lib\/glib\/include/) {
$config{INC} .= ' -I/usr/lib/glib/include';
}
I got it work like that.
System:
RedHat 9
gdome2-0.8.1-1
libxml2-2.6.11-1
Marc-Olivier BERNARD