Re: ADFS -> undefined reference to __cmpdi2 (2.3.51)

From: Russell King (rmk@arm.linux.org.uk)
Date: Sat Mar 11 2000 - 09:24:18 EST


Arjan van de Ven writes:
> The ADFS filesystem doesn't compile for me, it leaves undefined references
> to __cmpdi2.

Is your GCC environment missing something?

> The suspicious code is in /fs/adfs/dir.c:
>
> switch (filp->f_pos) {
> case 0:
> if (filldir(dirent, ".", 1, 0, inode->i_ino) < 0)
> goto free_out;
> filp->f_pos += 1;
>
> case 1:
> if (filldir(dirent, "..", 2, 1, dir.parent_id) < 0)
> goto free_out;
> filp->f_pos += 1;
>
> default:
> break;
> }
>
> I think that converting the switch to an if-construct would solve the
> compile-problem, but I don't know if the original author omitted the
> "break;" at the end of the first case on purpose..

It is left out on purpose.
   _____
  |_____| ------------------------------------------------- ---+---+-
  | | Russell King rmk@arm.linux.org.uk --- ---
  | | | | http://www.arm.linux.org.uk/~rmk/aboutme.html / / |
  | +-+-+ --- -+-
  / | THE developer of ARM Linux |+| /|\
 / | | | --- |
    +-+-+ ------------------------------------------------- /\\\ |

-
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/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:19 EST