From mboxrd@z Thu Jan 1 00:00:00 1970 From: bernd@petrovitsch.priv.at (Bernd Petrovitsch) Date: Wed, 05 Jan 2011 15:45:03 +0100 Subject: Doubt regarding __udivdi3 In-Reply-To: References: Message-ID: <1294238703.28520.0.camel@thorin> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Mit, 2011-01-05 at 19:21 +0530, Ponmuthu Subramaniam Nandan wrote: > Hi Gaurav, > > I'm trying to insert a module into the kernel (2.6.35.5). > There are no > errors during the "make" phase. There are only warnings > regarding two > symbols : > WARNING: "__udivdi3" > [/media/Study/project_work/splitting_merging/radc_try1/radc1.ko] > undefined! > WARNING: "__umoddi3" > [/media/Study/project_work/splitting_merging/radc_try1/radc1.ko] > undefined! > > The symbol __udivdi3 & __umoddi3 are compiler generated functions > calls for specific > Arithmetic function in your code (In this case its division). The > definitions of that function > (for the specific ARCH your are building for) would be in the > respective libraries (libgcc). The first hit on google is http://stackoverflow.com/questions/1063585/udivdi3-undefined-howto-find-code. That should explain it. Bernd -- Bernd Petrovitsch Email : bernd at petrovitsch.priv.at LUGA : http://www.luga.at