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

BOUNCE rtl@rtlinux.org: Approval required: Non-member submissionfrom ["Christopher D. Carothers" <chrisc@cs.rpi.edu>] (fwd)



>From owner-rtl Thu May 24 10:34:32 2001
Received: from cs.rpi.edu (mumble.cs.rpi.edu [128.213.8.16])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f4OGYWP17016;
	Thu, 24 May 2001 10:34:32 -0600
Received: from monica.cs.rpi.edu (monica.cs.rpi.edu [128.213.7.2])
	by cs.rpi.edu (8.9.3/8.9.3) with ESMTP id MAA39922;
	Thu, 24 May 2001 12:29:32 -0400 (EDT)
Received: from localhost (chrisc@localhost)
	by monica.cs.rpi.edu (8.9.3/8.9.2) with ESMTP id MAA60398;
	Thu, 24 May 2001 12:29:32 -0400 (EDT)
X-Authentication-Warning: monica.cs.rpi.edu: chrisc owned process doing -bs
Date: Thu, 24 May 2001 12:29:32 -0400 (EDT)
From: "Christopher D. Carothers" <chrisc@cs.rpi.edu>
To: rtl@fsmlabs.com
cc: rtl@rtlinux.org
Subject: Re: [rtl] unresolved symbol __udivdi3 and __umoddi3
In-Reply-To: <3B10CD9D@webmail.ku.edu>
Message-ID: <Pine.BSF.4.10.10105241224340.50956-100000@monica.cs.rpi.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

	Hi Havard --

	You need to link in the libgcc.a which is located at:

/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libgcc.a  

	It could be a slightly different directory depending on your linux
install. These are some internal math rountines used by gcc.

	Now, I see you are including libm.a -- you will probably see
multiple defines, since libm.a needs libc.a -- functions like perror. And
you cannot bring in libc.a into the kernel for a variety of reasons. If
you need math functionality, others may have solution to that ...

		Hope that helps,
		Chris

--------------------------------------------------------------------
Christopher D. Carothers

Assistant Professor
Department of Computer Science         
Rensselaer Polytechnic Institute
110 8th Street
Troy, New York 12180-3590

e-mail: chrisc@cs.rpi.edu
web page: www.cs.rpi.edu/~chrisc
phone: (518) 276-2930 
fax: (518) 276-4033
--------------------------------------------------------------------


On Wed, 23 May 2001, Havard Gullbekk wrote:

> 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
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 
>