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

unresolved symbol __udivdi3 and __umoddi3



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