end0tknr's kipple - 新web写経開発

http://d.hatena.ne.jp/end0tknr/ から移転します

libxml2-2.9.2 make error "error: 'libxmlMethods' undeclared (first use in this function)"

$ configure --with-zlib=/usr/local
$ make
  :
libxml.c:3783: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libxml.c:3802: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
libxml.c:3822: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'libxmlMethods'
libxml.c:3877: warning: ISO C does not allow extra ';' outside of a function
libxml.c: In function 'initlibxml2mod':
libxml.c:3909: error: 'PyObject' undeclared (first use in this function)
libxml.c:3909: error: 'module' undeclared (first use in this function)
libxml.c:3915: warning: implicit declaration of function 'Py_InitModule'
libxml.c:3915: warning: nested extern declaration of 'Py_InitModule'
libxml.c:3915: error: 'libxmlMethods' undeclared (first use in this function)
make[4]: *** [libxml.lo] Error 1
make[4]: Leaving directory `/home/endo/tmp/libxml2-2.9.2/python'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/endo/tmp/libxml2-2.9.2/python'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/endo/tmp/libxml2-2.9.2/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/endo/tmp/libxml2-2.9.2'
$

Pyton? 今は必要ないので、「--with-python=no」で再configure.

$ configure
$ make --with-zlib=/usr/local --with-python=no
$