Discussion:
[mdb-dev] autogen error compiling current version
Dale Scott
2012-01-16 14:45:57 UTC
Permalink
Hi, I tried compiling the current github head and get the following error in autogen (Linux Mint 11, autoconf 2.5):



***@dale-ThinkPad-T61 ~/Projects/mdbtools $ ./autogen.sh
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

processing .
Running aclocal  ...
configure.in:117: warning: macro `AM_PATH_GLIB_2_0' not found in library
Running libtoolize...
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Running autoheader...
Running automake --gnu  ...
Running autoconf ...
Running ./configure ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
<snip> 
checking for iconv... yeschecking for iconv declaration...          extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);checking Are we using flex ... no - SQL engine disable./configure: line 11131: syntax error near unexpected token `2.0.0'./configure: line 11131: `AM_PATH_GLIB_2_0(2.0.0)'

I get the same error on FreeBSD 9.0, except the error message also notes there is an unexpected ")"

This didn't happen with the github head as of May 2010, but that was also on FreeBSD 8.2. I'm going to try re-compiling the old version again just to check what happens, but can anyone offer suggestions, or point out anything stupid I'm doing or not doing?

Thanks,
Dale
Chris Craig
2012-01-16 15:00:12 UTC
Permalink
Post by Dale Scott
Hi, I tried compiling the current github head and get the following
...
Post by Dale Scott
./configure: line 11131: syntax error near unexpected token `2.0.0'
./configure: line 11131: `AM_PATH_GLIB_2_0(2.0.0)'
I think this issue has been covered before, I imagine it's the same thing:

https://github.com/brianb/mdbtools/issues/6
--
Chris Craig
Programmer Analyst
Fibernetics Corp
605 Boxwood Dr
Cambridge ON N3E 1A5
519-489-6700 x 753
Dale Scott
2012-01-16 20:04:45 UTC
Permalink
Thanks Chris. On my FreeBSD-9.0 server, installing the glib2 port (v2.28.8) solved the problem.



Dale



----- Original Message -----
From: Chris Craig <***@fibernetics.ca>
Date: Monday, January 16, 2012 8:40
Subject: Re: [mdb-dev] autogen error compiling current version
Post by Chris Craig
Post by Dale Scott
Hi, I tried compiling the current github head and get the following
...
Post by Dale Scott
./configure: line 11131: syntax error near unexpected token `2.0.0'
./configure: line 11131: `AM_PATH_GLIB_2_0(2.0.0)'
I think this issue has been covered before, I imagine it's the
https://github.com/brianb/mdbtools/issues/6
--
Chris Craig
Programmer Analyst
Fibernetics Corp
605 Boxwood Dr
Cambridge ON  N3E 1A5
519-489-6700 x 753
-----------------------------------------------------------------
-------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
mdbtools-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mdbtools-dev
-----
Transparency with Trust
http://www.dalescott.net
Nirgal
2012-01-19 23:50:41 UTC
Permalink
Post by Dale Scott
Thanks Chris. On my FreeBSD-9.0 server, installing the glib2 port (v2.28.8) solved the problem.
Hello

I think the issue is now fixed in master:
https://github.com/brianb/mdbtools/commit/5269dbfd7a4ec82af1830cc88a35230638902d99

Thank you for the bug report.

-- Nirgal
Dale Scott
2012-01-20 14:27:52 UTC
Permalink
Could I humbly suggest also adding glib2 to the list of required dependencies in the INSTALL file?

(I've heard I can submit the change myself all through the Github web interface, but not sure exactly how. If you gave me a general idea.......)
-----Original Message-----
Sent: Thursday, January 19, 2012 4:51 PM
Subject: Re: [mdb-dev] autogen error compiling current version
Post by Dale Scott
Thanks Chris. On my FreeBSD-9.0 server, installing the glib2 port (v2.28.8)
solved the problem.
Hello
https://github.com/brianb/mdbtools/commit/5269dbfd7a4ec82af1830cc88a3
5230638902d99
Thank you for the bug report.
-- Nirgal
Nirgal
2012-01-21 19:36:57 UTC
Permalink
Post by Dale Scott
Could I humbly suggest also adding glib2 to the list of required dependencies in the INSTALL file?
(I've heard I can submit the change myself all through the Github web interface, but not sure exactly how. If you gave me a general idea.......)
I kinda disagree:

INSTALL documents the basic requirement for the build process to start:
libtool
automake
autoconf

But there are many more dependencies such as:
bison
docbook
flex
libglade2-dev
libncurses-dev
openjade
txt2man
unixodbc-dev
...

I think these should be detected by configure.

After commit 5269dbfd7a4ec82af1830cc88a35230638902d99, I think you will get this error message at configure time:
glib 2.0 is required by MDB Tools (runtime and devel).
It can be downloaded at www.gtk.org.

Am I mistaken?

If you still think we should change INSTALL, please send a patch against
https://github.com/brianb/mdbtools/blob/master/INSTALL
There are "raw" and "edit this file" links on that page.
Dale Scott
2012-01-21 20:43:58 UTC
Permalink
I'm OK with INSTALL as-is. For some reason, I mistakenly thought it listed more than libtool, automake, and autoconf (which it doesn't). It is worth proposing a patch for the comment regarding libtool on FreeBSD? (FreeBSD 8.2 and FreeBSD 9.0 both use libtool-2.4).
-----Original Message-----
Sent: Saturday, January 21, 2012 12:37 PM
To: Dale Scott
Subject: Re: [mdb-dev] autogen error compiling current version
Post by Dale Scott
Could I humbly suggest also adding glib2 to the list of required
dependencies in the INSTALL file?
Post by Dale Scott
(I've heard I can submit the change myself all through the Github web
interface, but not sure exactly how. If you gave me a general
idea.......)
libtool
automake
autoconf
bison
docbook
flex
libglade2-dev
libncurses-dev
openjade
txt2man
unixodbc-dev
...
I think these should be detected by configure.
After commit 5269dbfd7a4ec82af1830cc88a35230638902d99, I think you will
glib 2.0 is required by MDB Tools (runtime and devel).
It can be downloaded at www.gtk.org.
Am I mistaken?
If you still think we should change INSTALL, please send a patch against
https://github.com/brianb/mdbtools/blob/master/INSTALL
There are "raw" and "edit this file" links on that page.
Nirgal
2012-01-22 09:06:53 UTC
Permalink
Yes, I suspect libtool comments are outdated for freedsb. If you have any sugestion of improvement, please share with us. For exemple, I guess aclocal.m4 contains mdbtools specific macros that are required on other platforms.

Regarding glib2, I'm a real beginer with autoconf/automake/libtool and the pkgtools. So do take my opinion with care. I suspect my patch is not enough if you have glib2 installed, but not glib2-dev. So, we should find a way to detect it, or at least documented it in INSTALL exactly as you suggested.
Post by Dale Scott
I'm OK with INSTALL as-is. For some reason, I mistakenly thought it listed more than libtool, automake, and autoconf (which it doesn't). It is worth proposing a patch for the comment regarding libtool on FreeBSD? (FreeBSD 8.2 and FreeBSD 9.0 both use libtool-2.4).
-----Original Message-----
Sent: Saturday, January 21, 2012 12:37 PM
To: Dale Scott
Subject: Re: [mdb-dev] autogen error compiling current version
Post by Dale Scott
Could I humbly suggest also adding glib2 to the list of required
dependencies in the INSTALL file?
Post by Dale Scott
(I've heard I can submit the change myself all through the Github web
interface, but not sure exactly how. If you gave me a general
idea.......)
libtool
automake
autoconf
bison
docbook
flex
libglade2-dev
libncurses-dev
openjade
txt2man
unixodbc-dev
...
I think these should be detected by configure.
After commit 5269dbfd7a4ec82af1830cc88a35230638902d99, I think you will
glib 2.0 is required by MDB Tools (runtime and devel).
It can be downloaded at www.gtk.org.
Am I mistaken?
If you still think we should change INSTALL, please send a patch against
https://github.com/brianb/mdbtools/blob/master/INSTALL
There are "raw" and "edit this file" links on that page.
Loading...