[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom [Havard Gullbekk <hgull@mail.ukans.edu>] (fwd)



>From owner-rtl Wed May 23 15:29:06 2001
Received: from lark.cc.ukans.edu (root@lark.cc.ukans.edu [129.237.34.2])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f4NLT5P11089
	for <rtl@rtlinux.org>; Wed, 23 May 2001 15:29:06 -0600
Received: from webmail.ku.edu by lark.cc.ukans.edu (8.8.8/1.1.8.2/12Jan95-0207PM)
	id QAA0000028469; Wed, 23 May 2001 16:24:04 -0500 (CDT)
X-WebMail-UserID:  hgull@mail.ukans.edu
Date: Wed, 23 May 2001 16:25:48 -0500
Sender: Havard Gullbekk <hgull@mail.ukans.edu>
From: Havard Gullbekk <hgull@mail.ukans.edu>
To: rtl@rtlinux.org
X-EXP32-SerialNo: 00002424
Subject: unresolved symbol __udivdi3 and __umoddi3
Message-ID: <3B10CD9D@webmail.ku.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Mailer: WebMail (Hydra) SMTP v3.61.07

Hello!
I just uppgraded from rtlinux 2.2 on RH 6.2 to rtlinux 3.0 on SuSE 7.1.
I'm using the prepatched, 2.4.0-test1-rtl kernel.
My program was running on the old version, but I got some unresolved
symbols on my math functions (sin, cos etc) after uppgrading so I added
the -lm and -lc as described in the FAQ.
My makefile now looks like this:

ahrs.o: ahrs.c
	$(CC) ${CFLAGS} -c -o ahrs_tmp.o ahrs.c
	$(LD) -r -static ahrs_tmp.o -o ahrs.o -L/usr/lib -lm -lc
	rm -f ahrs_tmp.o

When I insert ahrs.o as a module (insmod ahrs.o) I get these errors:

ahrs.o: unresolved symbol __udivdi3
ahrs.o: unresolved symbol __umoddi3

I have no idea where the __udivdi3 and __umoddi3 are comming from and
what their purpose is. So any suggestions are welcome.
Thanks
Havard