bug-automake
[Top][All Lists]
Advanced

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

SUFFIXES bug in automake 1.5


From: Bob Ham
Subject: SUFFIXES bug in automake 1.5
Date: 28 Jan 2002 20:11:22 +0000

Hi there,

There appears to be a bug in automake 1.5 wrt using SUFFIXES.  When I
define a new suffix, it works OK as long as I don't use any of the new
suffixes in a _SOURCES target.  Ie, automake runs and make can use the
new suffixes if given targets on the command-line, but putting a target
in a _SOURCES gives the following error from automake:

address@hidden:~/proj/automake-suffixes-bug$ automake
Can't call method "target_hook" on an undefined value at
/usr/bin/automake line 1943.

Here is the same simple suffix being used successfully to make a .o on
the command line (the prog.mixed was removed from the _SOURCES):

address@hidden:~/proj/automake-suffixes-bug$ make prog.o
grep "// STDC" prog.mixed > prog_c.c
grep "// CXX" prog.mixed > prog_cpp.cpp
gcc -DPACKAGE=\"automake-suffixes-bug\" -DVERSION=\"1.0\"
-DHAVE_DLFCN_H=1  -I. -I.     -g -O2 -c prog_c.c
g++ -DPACKAGE=\"automake-suffixes-bug\" -DVERSION=\"1.0\"
-DHAVE_DLFCN_H=1  -I. -I.     -g -O2 -c prog_cpp.cpp
/bin/sh ./libtool --mode=link gcc  -g -O2   -o prog.o -o prog.o prog_c.o
prog_cpp.o
mkdir .libs
/usr/bin/ld -r -o prog.o prog_c.o prog_cpp.o   

The code to demonstrate this is at
http://pkl.net/~node/software/automake-suffixes-bug.tar.gz

If this is already known about, is there a fix I can grab?

Cheers,

Bob

-- 
Bob Ham: address@hidden

My music: http://mp3.com/obelisk_uk
GNU Hurd: http://hurd.gnu.org/
Do your bit for UK drugs law reform: http://www.angeldeclaration.com/

A pessimist expects the weather to get worse.
An optimist hopes it will improve.
A realist adjusts the sails.




reply via email to

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