James Cronin
2004-Jun-24 16:16 UTC
[Xapian-discuss] problem compiling xapian-bindings-0.8.0 on FreeBSD 5.2.1
OK, I admit this is probably more of a problem with my complete inability to understand how on earth libtool works (God I hate libtool). I've a FreeBSD 5.2.1 system that I'm trying to get the PHP Xapian bindings compiled up on. (it's for www.theyworkforyou.com) Interesting things: gcc - 3.3.3 automake - 1.8.5 autoconf - 2.59 libtool - 1.5.6 my configure arguments are --without-python when I do a make in xapian-bindings-0.8.0 I get: ... ./../xapian.i:481: Warning(501): Overloaded declaration ignored. const Xapian::Enquire::get_matching_terms_end(Xapian::MSetIterator const &) ./../xapian.i:479: Warning(501): Previous declaration is const Xapian::Enquire::get_matching_terms_end(Xapian::docid) make all-am cd xapian && /usr/local/bin/phpize configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR configure.in:33: warning: underquoted definition of PHP_EXT_DIR configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. *** Error code 1 Stop in /root/src/xapian-bindings-0.8.0/php4. *** Error code 1 Stop in /root/src/xapian-bindings-0.8.0/php4. *** Error code 1 Stop in /root/src/xapian-bindings-0.8.0. *** Error code 1 Stop in /root/src/xapian-bindings-0.8.0. Any ideas for a next step? Ta, J.
James Aylett
2004-Jun-24 16:30 UTC
[Xapian-discuss] problem compiling xapian-bindings-0.8.0 on FreeBSD 5.2.1
On Thu, Jun 24, 2004 at 05:16:32PM +0100, James Cronin wrote:> I admit this is probably more of a problem with my complete inability > to understand how on earth libtool works (God I hate libtool).You shouldn't have to worry about it. The problem you're seeing looks to me like a conflict between how PHP thinks and the version of autoconf you have. What version of PHP are you using?> configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG > run info '(automake)Extending aclocal' > or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal > configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR > configure.in:33: warning: underquoted definition of PHP_EXT_DIR > configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR > configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED > acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C > configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation.J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
Olly Betts
2004-Jun-24 16:36 UTC
[Xapian-discuss] problem compiling xapian-bindings-0.8.0 on FreeBSD 5.2.1
On Thu, Jun 24, 2004 at 05:16:32PM +0100, James Cronin wrote:> Interesting things: > > gcc - 3.3.3 > automake - 1.8.5 > autoconf - 2.59 > libtool - 1.5.6 > > my configure arguments are --without-python > > when I do a make in xapian-bindings-0.8.0 I get: > > ... > > ./../xapian.i:481: Warning(501): Overloaded declaration ignored. const Xapian::Enquire::get_matching_terms_end(Xapian::MSetIterator const &) > ./../xapian.i:479: Warning(501): Previous declaration is const Xapian::Enquire::get_matching_terms_end(Xapian::docid) > make all-am > cd xapian && /usr/local/bin/phpize > configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG > run info '(automake)Extending aclocal' > or see http://sources.redhat.com/automake/automake.html#Extending%20aclocalphpize creates a mini-project which uses autoconf/automake/libtool. This smells to me like this project doesn't work with automake 1.8.5, but sadly there may not be much we can do about that. I'd suggest perhaps trying automake 1.7 or 1.6 (I'm current using 1.6.3). I didn't even realise there was a 1.8!> configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation.My other thought is to check that autoconf, automake, and libtool were all configured and installed with the same prefix. If they aren't, then they can't find each others macros. Cheers, Olly
Samuel Liddicott
2004-Jun-25 10:28 UTC
[Xapian-discuss] problem compiling xapian-bindings-0.8.0 on FreeBSD 5.2.1
This is probably my fault; I wrote the swig code that generates the config.m4 that phpize uses. In the old days m4 and autoconf and pals were very lax about syntax, and I never understood autoconf files anyway, so I just caused swig to write config.m4 after the pattern php was using at the time. You probably want to compare the generated config.m4 to those in the php source of NEWER php modules and make any syntax fixups needed and then re-run phpize. Sam On Thu, 24 Jun 2004 17:16:32 +0100, James Cronin <james@unfortu.net> wrote:> > OK, > > I admit this is probably more of a problem with my complete inability > to understand how on earth libtool works (God I hate libtool). > > I've a FreeBSD 5.2.1 system that I'm trying to get the PHP Xapian > bindings compiled up on. (it's for www.theyworkforyou.com) > > Interesting things: > > gcc - 3.3.3 > automake - 1.8.5 > autoconf - 2.59 > libtool - 1.5.6 > > my configure arguments are --without-python > > when I do a make in xapian-bindings-0.8.0 I get: > > ... > > ./../xapian.i:481: Warning(501): Overloaded declaration ignored. const Xapian::Enquire::get_matching_terms_end(Xapian::MSetIterator const &) > ./../xapian.i:479: Warning(501): Previous declaration is const Xapian::Enquire::get_matching_terms_end(Xapian::docid) > make all-am > cd xapian && /usr/local/bin/phpize > configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG > run info '(automake)Extending aclocal' > or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal > configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR > configure.in:33: warning: underquoted definition of PHP_EXT_DIR > configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR > configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED > acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C > configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > *** Error code 1 > > Stop in /root/src/xapian-bindings-0.8.0/php4. > *** Error code 1 > > Stop in /root/src/xapian-bindings-0.8.0/php4. > *** Error code 1 > > Stop in /root/src/xapian-bindings-0.8.0. > *** Error code 1 > > Stop in /root/src/xapian-bindings-0.8.0. > > Any ideas for a next step? > > Ta, > > J. > > _______________________________________________ > Xapian-discuss mailing list > Xapian-discuss@lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-discuss > >