[torqueusers] Torque 1.2.0p5 and Fedora Core 4
Marc Langlois
marc at keyseismic.com
Mon Aug 29 16:25:21 MDT 2005
On Fri, 2005-08-26 at 03:52, Fernando Nogueira wrote:
> Hi.
>
> I am trying to compile torque 1.2.0p5 in a Fedora Core 4 system.
> Whatever I try, I always get
>
> gcc -g -I../include -I../../src/include -I./linux -DHAVE_CONFIG_H -
> DPBS_MOM -DDEMUX=\"/usr/local/sbin/pbs_demux\" -DRCP_PATH=\"/usr/
> local/sbin/pbs_rcp\" -c ./linux/mom_mach.c
> ./linux/mom_mach.c: In function 'quota':
> ./linux/mom_mach.c:3759: error: 'struct dqblk' has no member named
> 'dqb_curblocks'
> make[3]: *** [mom_mach.o] Error 1
>
>
> Any help?
>
> Thanks,
>
> Fernando
Had the same problem today. I didn't dig very deep into why it was
broken, but I was able to get it working on FC4 by a simple change to
the file ./src/resmom/linux/mom_mach.c (line 3754) from:
#ifdef Q_6_5_QUOTAON
sprintf(ret_string,"%ukb",
(unsigned int)qi.dqb_curspace >> 10);
#else
sprintf(ret_string,"%ukb",
qi.dqb_curblocks >> 10);
#endif /* Q_6_5_QUOTAON */
to just:
sprintf(ret_string,"%ukb",
(unsigned int)qi.dqb_curspace >> 10);
so that the dqb_curblocks member is never accessed. Not sure what side
effects this may have, but we're not too concerned about the resources
that are reported by the MOM's.
Marc.
--
Marc Langlois
Key Seismic Solutions Ltd., Calgary, AB, Canada.
marc at keyseismic dot com
More information about the torqueusers
mailing list