[torquedev] [PATCH] Fixed missing cast for rlim_t on i386/gcc-4.1
Bas van der Vlies
basv at sara.nl
Thu Apr 3 02:40:32 MDT 2008
Adrian Knoth wrote:
> [notice: this message has been accidently postponed for several months,
> but as far as I know, the issue is still present in the current
> release/trunk]
>
>
I can confirm that torque 2.3.0 need this patch to compile on Debian Etch
Regards
> Hi!
>
> Torque-2.2.0 fails to build with gcc-4.1 on i386 when
> -D_FILE_OFFSET_BITS=64 is set:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include
> -I../../../src/include -DPBS_MOM -DDEMUX=\"/usr/sbin/pbs_demux\"
> -D_FILE_OFFSET_BITS=64 -W -Wall -Wno-unused-parameter -Wno-long-long
> -pedantic -Werror -D_LARGEFILE64_SOURCE -c mom_mach.c
> cc1: warnings being treated as errors
> mom_mach.c: In function 'mom_set_limits':
> mom_mach.c:1159: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'rlim_t'
> mom_mach.c:1201: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'rlim_t'
> mom_mach.c:1217: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'rlim_t'
> mom_mach.c:1302: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'rlim_t'
> mom_mach.c:1312: warning: format '%ld' expects type 'long int', but
> argument 3 has type 'rlim_t'
> make[4]: *** [mom_mach.o] Error 1
>
>
> The attached patch correts this problem.
>
> --
> mail: adi at thur.de http://adi.thur.de PGP/GPG: key via keyserver
>
> Spione suchen sich meist ein lauschiges Plätzchen!
>
--
--
********************************************************************
* *
* Bas van der Vlies e-mail: basv at sara.nl *
* SARA - Academic Computing Services phone: +31 20 592 8012 *
* Kruislaan 415 fax: +31 20 6683167 *
* 1098 SJ Amsterdam *
* *
********************************************************************
More information about the torquedev
mailing list