[SOLVED and Q's] Re: invalid unused variable name: `AM_LDFLAGS'
The error (see below for details) was caused by the interaction of two
1) I have various generations of the gnu auto tools on my system
2) The admin/detect-autoconf.sh script in KDE prefers older versions
of automake (see checkAutomakeAclocal). So although I installed
automake 1.7, and automake --version gives me 1.7.5, the KDE scripts
actually pick out automake 1.5. Since some of the tools are at a
later level, they generate stuff automake 1.5 can't handle. So it
Removing automake1.5 from my system solved the problem.
Why is detect-autoconf.sh behind the times? Do the later tools
versions not work with KDE? It favors automake 1.5 over 1.6, and has
never even heard of 1.7.
Though the consequences seems less severe, detect-autoconf.sh is also
unaware of 2.57 versions of autoconf and autoheader (2.53 or 2.5x are
the last they know of).
cvs.sh includes the message
KDE requires autoconf 2.52, 2.53 or 2.54
(though 2.54 is unknown to detect-autoconf.sh, and cvs.sh actually
lets in any kind of 2.5*).
There are quite a few warnings about bad or obsolete syntax when I run
the build system through my autoconf 2.57/automake 1.7.5 system.
So are my current versions of the tools reasonable? And how come the
tests in the KDE code seem to be lagging them?
Thanks. And I hope this info may help someone else.
On Tue, Jun 03, 2003 at 06:27:33PM -0700, Ross Boylan wrote:
> On Tue, Jun 03, 2003 at 08:40:41AM -0700, Ross Boylan wrote:
> > While building arts from cvs (after successful build of some earlier
> > packages) I got these errors:
> > examples/Makefile.am:6: invalid unused variable name: `AM_LDFLAGS'
> > tests/Makefile.am:12: invalid unused variable name: `AM_LDFLAGS'
> > I am on Debian GNU/Linux testing with
> > automake (GNU automake) 1.5
> > autoconf (GNU Autoconf) 2.57
> > According to http://developer.kde.org/build/compile_cvs.html these
> > versions are adequate, though in reviewing this list it seems they may
> > not be.
> > I also got a lot of locale warnings before this:
> > perl: warning: Setting locale failed.
> > perl: warning: Please check that your locale settings:
> > LANGUAGE = "en",
> > LC_ALL = "en",
> > LANG = "en"
> > are supported and installed on your system.
> > perl: warning: Falling back to the standard locale ("C").
> > My system has en_US but not en. I mention this only in case it's
> > relevant to the preceding problem which occurred during
> > make -k -f Makefile.cvs
> > I was using the kde-cvsbuild tool.
> > I have several questions/comments:
> > 1) Can anyone explain why I am getting the error? The relevant file
> > has what looks like a fine variable assignment to AM_LDFLAGS at the
> > indicated line.
> > 2) Do I need more recent tools?
> > 3) If so, it would be good to
> > a) update http://developer.kde.org/build/compile_cvs.html
> > b) update the conf tests for arts (or is the problem that
> > Makefile.cvs step precedes running autoconf) and others that need it.
> > c) Provide some documentation with the package.
> > I do notice the debian package has a build-depends on automake1.7, and
> > that is available in testing. So I guess I'll give it a try.
> I tried it. It didn't help.
> > Thanks.
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<