Re: 2.3.26 undefined reference...

Peter Samuelson (peter@wire.cadcamlab.org)
Mon, 8 Nov 1999 14:26:31 -0600 (CST)


[Michael H. Warfield]
> ] fs/fs.o: In function `quota_on':
> ] fs/fs.o(.text+0x165a5): undefined reference to `__umoddi3'

Yeah, more 64-bit math. The workaround is to link with
`gcc -print-libgcc-file-name`. The fix is probably something like
(untested)

--- linux-2.3.26/fs/dquot.c~ Thu Oct 7 14:47:37 1999
+++ linux-2.3.26/fs/dquot.c Mon Nov 8 14:23:59 1999
@@ -1308,7 +1308,7 @@
if (!S_ISREG(inode->i_mode))
goto cleanup;
error = -EINVAL;
- if (inode->i_size == 0 || (inode->i_size % sizeof(struct dqblk)) != 0)
+ if (inode->i_size == 0 || ((int)inode->i_size % sizeof(struct dqblk)) != 0)
goto cleanup;

/* OK, there we go */

-- 
Peter Samuelson
<sampo.creighton.edu!psamuels>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/