bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext 0.14.5 compile issue


From: Bruno Haible
Subject: Re: gettext 0.14.5 compile issue
Date: Wed, 3 Aug 2005 22:17:45 +0200
User-agent: KMail/1.5

Jason Keltz wrote:
> You were half right about gettext-tools/config.status:
>
> s,@BUILD_INCLUDED_LIBINTL@,yes,;t t
> s,@USE_INCLUDED_LIBINTL@,no,;t t

OK, this is the normal configuration result on Linux systems. This means
that gettext-tools/intl/Makefile will contain the lines

all: all-no
all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed
all-no: all-no-yes
all-no-yes: libgnuintl.$la
all-no-no:

Therefore "make all" in this directory should attempt to build libgnuintl.a
or libgnuintl.la.

> When I uncompress gettext manually, and
> run configure with the exact same arguments manually on the command
> line, the compilation process completes successfully.

Ah! Very important data point!

> Here is the diff output from
> gettext-0.14.5/gettext-tools/config.status.  The first argument to diff
> is the not working compile (-), and the second argument is the working
> compile (+)...
>
> --------------------------------------------------------------------
> --- xsys.32647.0/gettext-0.14.5/gettext-tools/config.status   Wed Aug  3
> 10:25:03 2005
> +++ gettext-0.14.5/gettext-tools/config.status        Wed Aug  3 11:11:44 2005
> @@ -303,13 +303,13 @@
>   Report bugs to <address@hidden>."
>   ac_cs_version="\
>   config.status
> -configured by /tmp/xsys.32647.0/gettext-0.14.5/gettext-tools/configure,
> generated by GNU Autoconf 2.59,
> -  with options \"'--prefix=/xsys' 'CC=gcc' 'CXX=g++'
> '--cache-file=/dev/null'
> '--srcdir=/tmp/xsys.32647.0/gettext-0.14.5/gettext-tools'\"
> +configured by ./configure, generated by GNU Autoconf 2.59,
> +  with options \"'--prefix=/xsys' 'CC=gcc' 'CXX=g++'
> '--cache-file=/dev/null' '--srcdir=.'\"
>
...
> @@ -886,7 +886,14 @@
>        fi;;
>         esac
>       done` || { (exit 1); exit 1; }
> -  sed "
> +  sed "/^[    ]*VPATH[        ]*=/{
> +s/:*\$(srcdir):*/:/;
> +s/:*\${srcdir}:*/:/;
> +s/:address@hidden@:*/:/;
> +s/^\([^=]*=[  ]*\):*/\1/;
> +s/:*$//;
> +s/^[^=]*=[    ]*$//;
> +}
>
>   :t
>
>   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b

So it looks like your "build system" is doing

    ./configure --prefix=/xsys --srcdir=`pwd`

rather than the command that is known to work

    ./configure --prefix=/xsys

This has the effect of starting a VPATH build, with $builddir = $srcdir.
You're probably the first one in the world to use this kind of build
configuration :-)

The causal chain of failure is now easy: The gettext-tools/intl directory
uses the gettext-runtime/intl directory as its srcdir; but it already contains
a libgnuintl.la, and therefore in gettext-tools/intl "make" thinks that
it has nothing to do.

I can now reproduce the problem and will fix it for gettext 0.15. In the
meantime, you can proceed by removing the no-op --srcdir option.

Thanks.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]