Hubert Mackenberg | 3 Jan 2008 09:21
Favicon

Jam bug regarding cyclic header files

Hi,

it seems there is a bug in Jam regarding cyclic header files:
If have have cyclic header files then a .c file depending
on any of these header file is not recompiled under certain
conditions. A simple example is given below.

The problem seems to be present in all Jam versions.
Does anyone have an idea how to fix it?

Thanks a lot,
Hubert

---

Eaxmple:

In this example a.c includes a.h, a.h includes b.h and
b.h includes c.h. But a.c is not recompiled if c.h is updated.

To get the example running you need 5 files a.c, b.c, a.h,
b.h and c.h. You may create them using:

   echo "this is a.c" > a.c
   echo "this is b.c" > b.c
   echo "this is a.h" > a.h
   echo "this is b.h" > b.h
   echo "this is c.h" > c.h

Then use the 'test.jam' file added below and run
(Continue reading)

Weber, Daniel | 7 Jan 2008 11:02

Re: Jam bug regarding cyclic header files

Hi Hubert, 

>-----Ursprüngliche Nachricht-----
>Von: jamming-bounces <at> perforce.com 
>[mailto:jamming-bounces <at> perforce.com] Im Auftrag von Hubert Mackenberg
>Gesendet: Donnerstag, 3. Januar 2008 09:21
>An: jamming <at> perforce.com
>Betreff: [jamming] Jam bug regarding cyclic header files
>
>[...]
>it seems there is a bug in Jam regarding cyclic header files:
>[...]

we also encountered this problem and successfully applied the fix described here: 
	http://maillist.perforce.com/pipermail/jamming/2003-December/002253.html

Regards,
Daniel 

*******************************************
Harman Becker Automotive Systems GmbH
Geschaeftsfuehrung:  Dr. Peter Geiselhart  -  Michael Mauser  -  Edwin Summers  -  Regis Baudot
Sitz der Gesellschaft: Karlsbad - Registergericht: Mannheim HRB 361395

*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der
richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den
Absender und loeschen Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended
(Continue reading)


Gmane