Mr. Beamish,
> I realize this question may get asked a lot in this forum but
> I haven't
> been able to find a post that I understand enough to help me with my
> problem.
>
> I have a module 'tt_mod.o' that compiles fine but when I
> insmod it into
> the kernel it, I get unresolved symbols:
>
> tt_mod.o: unresolved symbol __udivdi3
> tt_mod.o: unresolved symbol __umoddi3
This indicates that the appropriate bits for long long division and
modulo arithmetic were not found. This is a fairly simple problem to
resolve.
> My makefile for making the module looks like:
> ---------------------
> ...
> KLIBS = -L/usr/lib -lm -lc
> LIBGCC = -L$(shell $(CC) -print-libgcc-file-name)
>
> tt_mod.o: tt_mod_temp.o hd_fusion.o ie_io_fusion.o
> $(LD) -r -static tt_mod_temp.o hd_fusion.o
> ie_io_fusion.o -o tt_mod.o $(LIBGCC) $(KLIBS)
> chmod ugo+r tt_mod.o
Hmmmm... It would seem to me that the LIBGCC verbiage above should
result in having the correct library used for linkage and finding the
modules. But obviously that is not the case. In my Makefile, I have the
LIBGCC reference surrounded with {} rather than (). While I am not make
guru (quite the opposite, actually), I believe the {}s imply that an
evaluation is necessary whereas the () imply simple substitution.
I would try changing the $(LIBGCC) line above to read ${LIBGCC}
Regards,
Steve Cohen
--------------------------
Stephen D. Cohen
Engineering Manager
Xybion Sensor Positioning Systems
11528 53rd Street North
Clearwater, FL 33760
Voice: (727) 299-0150
Fax: (727) 299-0804
[EMAIL PROTECTED]
www.xybion.com
************************************************************************
THIS EMAIL, AND ANY ATTACHMENTS, CONTAINS CONFIDENTIAL AND PRIVILEGED INFORMATION
INTENDED FOR THE USE OF THE ADDRESSEE. IF YOU ARE NOT THE INTENDED RECIPIENT OR AN
AUTHORIZED REPRESENTATIVE OF THE RECIPIENT, DO NOT READ OR DISTRIBUTE THE CONTENTS OF
THIS EMAIL AND DELETE IT FROM YOUR SYSTEM. THIS EMAIL AND ALL ATTACHMENTS HAVE BEEN
SCANNED FOR VIRUSES AND ARE BELIEVED TO BE VIRUS FREE. HOWEVER, IT IS THE RECIPIENT'S
RESPONSIBILITY TO ENSURE THAT THEY ARE VIRUS FREE. XYBION DOES NOT ACCEPT ANY
RESPONSIBILITY FOR ANY LOSS OR DAMAGE ARISING IN ANY WAY FROM USE OF THIS EMAIL AND
ATTACHMENTS. XYBION ALSO DOES NOT ACCEPT RESPONSIBILITY FOR PERSONAL EMAIL OR EMAIL
NOT ASSOCIATED WITH ITS BUSINESS PURPOSES.
************************************************************************
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/