Skip to contentSkip to conversation

"Unknown symbol __udivdi3" with rev >= 11873

DISCUSSION David Ward 2 participants 4 messages May 28, 2009 Media (V4L/DVB)

lore
Share & tools
lore

David Ward

author
#0 lore raw

Revision 11873 (committed earlier today) has broken the cx18 driver for me, with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when the module tries to load. I'm using Ubuntu 8.04.2 which uses kernel 2.6.24 and gcc 4.2.4.

I also wanted to express my appreciation to Mauro for fixing the build for older kernels today, as it is very desirable for me to use a distribution/kernel which has long-term support and updates, but I simply need to add a DVB driver that wasn't part of the older kernel.

Thanks so much.

David Ward

#1 lore raw
Quoted 5 lines · David Ward

Revision 11873 (committed earlier today) has broken the cx18 driver for me, with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when the module tries to load.  I'm using Ubuntu 8.04.2 which uses kernel 2.6.24 and gcc 4.2.4.

Quoted 8 lines

I also wanted to express my appreciation to Mauro for fixing the build for older kernels today, as it is very desirable for me to use a distribution/kernel which has long-term support and updates, but I simply need to add a DVB driver that wasn't part of the older kernel.

Thanks so much.

David Ward

Let it be known that this issue only affects 32bit kernels. I believe the offending line of code is here:

fsc = ((((u64)sc) * 28636360)/src_decimation) >> 13L;

(cc added to Andy Walls)

-Mike Krufky

author
#2 lore raw
Quoted 16 lines · Michael Krufky
Quoted 5 lines · David Ward

Revision 11873 (committed earlier today) has broken the cx18 driver for me, with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when the module tries to load. I'm using Ubuntu 8.04.2 which uses kernel 2.6.24 and gcc 4.2.4.

Quoted 9 lines

I also wanted to express my appreciation to Mauro for fixing the build for older kernels today, as it is very desirable for me to use a distribution/kernel which has long-term support and updates, but I simply need to add a DVB driver that wasn't part of the older kernel.

Thanks so much.

David Ward

Quoted 9 lines

Let it be known that this issue only affects 32bit kernels. I believe the offending line of code is here:

fsc = ((((u64)sc) * 28636360)/src_decimation)>> 13L;

(cc added to Andy Walls)

-Mike Krufky

Some Google searching seems to suggest that the correct thing to do here is to use the 'do_div' macro for the division, which is declared in <asm/div64.h>:

http://www.captain.at/howto-udivdi3-umoddi3.php

David

#3 lore raw
Quoted 35 lines · David Ward
Quoted 24 lines · Michael Krufky
Quoted 15 lines · David Ward

Revision 11873 (committed earlier today) has broken the cx18 driver for me,
with the line "cx18: Unknown symbol __udivdi3" appearing in dmesg when the
module tries to load.  I'm using Ubuntu 8.04.2 which uses kernel 2.6.24 and
gcc 4.2.4.

I also wanted to express my appreciation to Mauro for fixing the build for
older kernels today, as it is very desirable for me to use a distribution/kernel which has long-term support and updates, but I simply need to add a DVB driver that wasn't part of the older kernel.

Quoted 4 lines

Thanks so much.

David Ward

Quoted 9 lines

Let it be known that this issue only affects 32bit kernels.  I believe the offending line of code is here:

fsc = ((((u64)sc) * 28636360)/src_decimation)>>  13L;

(cc added to Andy Walls)

-Mike Krufky

Quoted 7 lines

Some Google searching seems to suggest that the correct thing to do here is to use the 'do_div' macro for the division, which is declared in <asm/div64.h>:

http://www.captain.at/howto-udivdi3-umoddi3.php

David

Patches welcome :-)

-MiKE