! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Compiling SVN: Problems with configure
Status:
RESOLVED: INVALID
Product:
Libxfcegui4
Component:
General

Comments

Description John 2008-10-29 14:16:57 CET
Hello people,

I just updated my svn copy of SVN to 28495. I can't compile several of
the modules, such as libxfcegui4, because an error appears at configure
time:

checking for intltool >= 0.31...  found
./configure: line 21278: test: : integer expression expected
configure: error: Your intltool is too old.  You need intltool 0.31 or
later.

I have intltool 0.40.5 installed. Though I'm far from being an expert in
the intltool/automake etc toolchain, I thought I'd have a go at
determining the problem.

The issue seems to be reported by configure.in near lin 21278:

    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.31 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERS

    { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
>>>>    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
        { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.31 or later." >&5
echo "$as_me: error: Your intltool is too old.  You need intltool 0.31 or later." >&2;}
   { (exit 1); exit 1; }; }

The test fails, because the first term, INTLTOOL_APPLIED_VERSION_AS_INT is empty, so the
problem is with a line a little higher. I don't understand the awk code, but
intltool-update.in exists, and I suspect the code extract the version number:

my $VERSION = "0.35.0";

I'm somewhat confused by this version, as I have 0.40.5:

intltool-update --version
intltool-update (intltool) 0.40.5
Written by Kenneth Christiansen, Maciej Stachowiak, and Darin Adler.

Looking around on the 'net, I found some patches for aclocal.m4, using the 
--version command to determine the version instead of looking into a file. I'm guessing
that file (intltool-update.in) wasn't updated when I upgraded to 0.40.5.
Comment 1 Mike Massonnet editbugs 2009-02-18 20:18:06 CET
Any uptade on this?
Comment 2 John 2009-02-18 20:29:22 CET
Wow... That was 4 months ago. Update:

Yes, the problem is solved. There were two different copies of the intltool m4 macro laying around. One tested for a string inside a file of the 0.35 kind of intltool set, the newer one test for the result of --version of one of the tools in the 0.40 toolbox (as that 0.35 file isn't included anymore).

So, the version I had _was_ 0.40.x, but the wrong macro was being called to test it.  For some reason, I didn't have problems with other packages.

Sorry, should've remembered, and closed this one earlier.

John

Bug #4536

Reported by:
John
Reported on: 2008-10-29
Last modified on: 2009-07-15

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information