Bug#305193: zaptel-source: compilation error in zaphfc.c

Tzafrir Cohen Tzafrir Cohen <tzafrir.cohen@xorcom.com>, 305193@bugs.debian.org
Mon, 18 Apr 2005 21:47:25 +0300


On Mon, Apr 18, 2005 at 05:12:23PM +0200, Marcus Better wrote:
> Package: zaptel-source
> Version: 1:1.0.7-3
> Severity: serious
> 
> Building the module with make-kpkg gives the following error:
> 
> $ make-kpkg --append-to-version=-thales --revision=11 --added-modules=zaptel modules_image
> <...lots of lines deleted...>
> make -C /fs/src/kernel/kernel-source-2.6.11 SUBDIRS="/fs/src/kernel/modules/zaptel/zaphfc" modules
> make[4]: Entering directory `/fs/src/kernel/kernel-source-2.6.11'
>   CC [M]  /fs/src/kernel/modules/zaptel/zaphfc/zaphfc.o
> /fs/src/kernel/modules/zaptel/zaphfc/zaphfc.c:27:20: zaptel.h: Filen eller katalogen finns inte
> In file included from /fs/src/kernel/modules/zaptel/zaphfc/zaphfc.c:28:
> /fs/src/kernel/modules/zaptel/zaphfc/zaphfc.h:274: error: `ZT_CHUNKSIZE' undeclared here (not in a function)
> <...lots of lines deleted...>
> 
> The error message meaning, of course, that zaptel.h is not found. Note
> that the files in the main source directory compile correctly, and the
> compilation fails after it enters the zaphfc subdirectory.

IIRC I have reported this issue. Anyway:
												
linux26-modules: prereq
	make -C $(KSRC) SUBDIRS=$(PWD) modules
	ZAPTELDIR=$(PWD) make -C $(KSRC) SUBDIRS="$(PWD)/zaphfc" modules
	ZAPTELDIR=$(PWD) make -C $(KSRC) SUBDIRS="$(PWD)/qozap " modules

This passes ZAPTELDIR through the environment, which is good enough to make it through the kernel build system.

-- 
Tzafrir Cohen     icq#16849755  +972-50-7952406
tzafrir.cohen@xorcom.com  http://www.xorcom.com