[En-Nut-Discussion] undefined references in /usr/lib/liblualib.so

José María Vallet jose.vallet at hut.fi
Wed Jan 25 19:47:21 CET 2006


I have a problem while installing ethernut 3.9.9 in Mandriva from the 
sources. It seems that it cannot link the lua libs.

I have installed (froom the sources)
avr-gcc 3.4.5
binutils 2.16
avr-libc 1.2.5
avrdude 5.0

And from Mandriva stuff

libwxgtk2.6-devel-2.6.1-1mdk
libwxgtk2.6-2.6.1-1mdk
wxGTK2.6-2.6.1-1mdk

liblua5-devel-5.0.2-7mdk
liblua5-5.0.2-7mdk

doxygen-1.4.4-1mdk
graphviz-2.2.1-3.1.20060mdk

The ./configure works fine, and in particular there are 3 lines related 
to lua
---------------------------------------------------------
checking for lua... /usr/bin/lua
checking for library containing lua_open... -llua
checking for library containing luaL_loadfile... -llualib
------------------------------------------------------------

But the make throws:
-------------------------------------------------------------
Making all in tools/crurom
make[2]: Entering directory `/home/jose/ethernut-3.9.9/tools/crurom'
if gcc -DHAVE_CONFIG_H -I. -I. -I../..     -g -O2 -MT crurom.o -MD -MP 
-MF ".deps/crurom.Tpo" -c -o crurom.o crurom.c; \
then mv -f ".deps/crurom.Tpo" ".deps/crurom.Po"; else rm -f 
".deps/crurom.Tpo"; exit 1; fi
gcc  -g -O2   -o crurom  crurom.o  -llualib -llua
/usr/lib/liblualib.so: undefined reference to `log'
/usr/lib/liblualib.so: undefined reference to `sqrt'
/usr/lib/liblualib.so: undefined reference to `dlerror'
/usr/lib/liblualib.so: undefined reference to `dlclose'
/usr/lib/liblualib.so: undefined reference to `fmod'
/usr/lib/liblualib.so: undefined reference to `cos'
/usr/lib/liblualib.so: undefined reference to `sin'
/usr/lib/liblualib.so: undefined reference to `atan2'
/usr/lib/liblualib.so: undefined reference to `dlopen'
/usr/lib/liblualib.so: undefined reference to `pow'
/usr/lib/liblualib.so: undefined reference to `log10'
/usr/lib/liblualib.so: undefined reference to `dlsym'
/usr/lib/liblualib.so: undefined reference to `exp'
/usr/lib/liblualib.so: undefined reference to `tan'
/usr/lib/liblualib.so: undefined reference to `atan'
/usr/lib/liblualib.so: undefined reference to `asin'
/usr/lib/liblualib.so: undefined reference to `acos'
collect2: ld returned 1 exit status
make[2]: *** [crurom] Error 1
make[2]: Leaving directory `/home/jose/ethernut-3.9.9/tools/crurom'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jose/ethernut-3.9.9'
make: *** [all] Error 2
-------------------------------------------------------------------

Trying to find something from google I found
http://www.egnite.de/pipermail/en-nut-discussion/2005-August/004852.html
but it doesn't say how to solve the problem

Just in case: before this, I was trying to install ethernut-4.0.1with 
avr-libc 1.4.2, and the configure-make-make install of ethernut worked 
fine (building the libraries didn't. Then I was told that they are a 
wrong combination of versions).
Now that I try with a different version (ethernut-3.9.9 with avr-libc 
1.2.5), compiling the ethernut doesn't work because the lua stuff 
complains, when befor it has never done it... I am confused :-(

Any ideas?

Thanks in advance!!

José






More information about the En-Nut-Discussion mailing list