[imapfilter-devel] [weinholt at debian.org: Bug#257090: imapfilter: FTBFS(hurd-i386): unconditional use of PATH_MAX]

Francesco P. Lovergine frankie at debian.org
Thu Jul 1 11:54:39 EEST 2004


tags 257090 +upstream 
tags 257090 +patch 
forwarded 257090 lefcha at hellug.gr
thanks



A simple patch is defining PATH_MAX when it's not defined. 
Of course it's not the best solution IMHO. A better solution is the
capability of deal with any path lenghts.

Lefteris?


----- Forwarded message from Göran Weinholt <weinholt at debian.org> -----

Subject: Bug#257090: imapfilter: FTBFS(hurd-i386): unconditional use of PATH_MAX
Reply-To: Göran Weinholt <weinholt at debian.org>, 257090 at bugs.debian.org
Resent-From: Göran Weinholt <weinholt at debian.org>
Original-Sender: Göran Weinholt <weinholt at kallisti.csbnet.se>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-CC: Francesco Paolo Lovergine <frankie at debian.org>
Resent-Date: Thu, 01 Jul 2004 05:18:02 UTC
Resent-Message-ID: <handler.257090.B.108865846314583 at bugs.debian.org>
From: Göran Weinholt <weinholt at debian.org>
To: submit at bugs.debian.org
Resent-Sender: Debian BTS <debbugs at bugs.debian.org>

Package: imapfilter
Version: 1.0-1
Severity: important

This package fails to build on hurd-i386. There is no PATH_MAX on
GNU/Hurd because there is no upper limit on path lenghts.

cc -Wall -O -DMAKEFILE_SHAREDIR='"/usr/share/imapfilter"' -I/usr/include/lua50   -c -o cert.o cert.c
cert.c: In function `check_cert':
cert.c:76: error: `PATH_MAX' undeclared (first use in this function)
cert.c:76: error: (Each undeclared identifier is reported only once
cert.c:76: error: for each function it appears in.)
cert.c:76: warning: unused variable `certf'
cert.c: In function `write_cert':
cert.c:147: error: `PATH_MAX' undeclared (first use in this function)
cert.c:147: warning: unused variable `certf'
make[1]: *** [cert.o] Error 1
make[1]: Leaving directory `/v2/builds/imapfilter-1.0'
make: *** [build-stamp] Error 2

PATH_MAX is also used in file.c and imapfilter.c.

-- 
Göran Weinholt <weinholt at debian.org>
Debian developer, sysadmin, student


----- End forwarded message -----

-- 
Francesco P. Lovergine




More information about the Imapfilter-devel mailing list