automake-patches
[Top][All Lists]
Advanced

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

couple of warning fixes


From: Alexandre Duret-Lutz
Subject: couple of warning fixes
Date: 22 May 2001 08:51:25 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

So let's see if this mailing-list works :)

This is what I get when I run automake 1.4f on my project
(you can fetch it from here if you need full details
ftp://heroes.sf.net/pub/heroes/prereleases/heroes-0.10b.tar.bz2):

~/projs/src/heroes % automake                                        19:54 #119
arch/Makefile.am:28: comment following trailing backslash
arch/Makefile.am:29: comment following trailing backslash
arch/Makefile.am:30: comment following trailing backslash
arch/Makefile.am:36: comment following trailing backslash
arch/Makefile.am:37: comment following trailing backslash
arch/Makefile.am:38: comment following trailing backslash
arch/Makefile.am:39: comment following trailing backslash
arch/Makefile.am:46: comment following trailing backslash
arch/Makefile.am:47: comment following trailing backslash
arch/Makefile.am:52: comment following trailing backslash
arch/Makefile.am:53: comment following trailing backslash
arch/Makefile.am:54: comment following trailing backslash
Use of uninitialized value in string eq at /home/adl/usr/bin/automake line 5192.
Use of uninitialized value in hash element at /home/adl/usr/bin/automake line 
1751.
Use of uninitialized value in string eq at /home/adl/usr/bin/automake line 5192.
Use of uninitialized value in hash element at /home/adl/usr/bin/automake line 
1751.
Use of uninitialized value in string eq at /home/adl/usr/bin/automake line 5192.
Use of uninitialized value in hash element at /home/adl/usr/bin/automake line 
1751.
Use of uninitialized value in string eq at /home/adl/usr/bin/automake line 5192.
Use of uninitialized value in hash element at /home/adl/usr/bin/automake line 
1751.
Use of uninitialized value in string eq at /home/adl/usr/bin/automake line 5192.
Use of uninitialized value in hash element at /home/adl/usr/bin/automake line 
1751.
Use of uninitialized value in string eq at /home/adl/usr/bin/automake line 5192.
Use of uninitialized value in hash element at /home/adl/usr/bin/automake line 
1751.
~/projs/src/heroes %                                                 Err 1 #120

The `comment following trailing backslash' errors are generated
by some commented rules in Makefile.am, for instance:

# rule:
#       foo \
#         bar

where the backslash doesn't really hurts.  The first patch below
change automake to ignore trailing backslashes on commented lines.

The `uninitialized value' warnings come from source files whose
extensions aren't known from automake.  My setup looks as follow:

heroes_SOURCES = \
[...] \
prefs.c \
prefs.def \
prefs.h \
prefs.tpl \
[...]

BUILT_SOURCES = \
[...] \
prefs.c \
prefs.h \
[...]

prefs.h: prefs.def prefs.tpl
        $(AUTOGEN) -o h prefs.def

prefs.c: prefs.def prefs.tpl
        $(AUTOGEN) -o c prefs.def

Automake just doesn't know anything about the `def' and `tpl'
extensions.  (Am I wrong in putting such files in _SOURCES?)
The second patch below get rid of these warnings.

Note that I have not checked the testsuite (by host tends to
segfault under heavy load and this give too many false results
in the testsuite).
-- 
Alexandre Duret-Lutz

Attachment: automake-20010521.patch
Description: Text Data

Attachment: automake-20010521.patch.2
Description: Text Data


reply via email to

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