OpenWrt Forum Archive

Topic: error: lauxlib.h: No such file or directory

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Fresh build from svn, fresh error:

mips-linux-uclibc-gcc -I/media/storage/apps_cvs/openwrt/build_dir/mips/uci-0.4.2 -I/media/storage/apps_cvs/openwrt/staging_dir/mips/usr/include -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -fhonour-copts -pedantic -Werror -Wall -std=gnu99 -fPIC -c -o uci.o uci.c
uci.c:24:21: error: lauxlib.h: No such file or directory
uci.c:44: error: expected ')' before '*' token
uci.c:78: error: expected ')' before '*' token
uci.c:91: error: expected ')' before '*' token
uci.c:108: error: expected ')' before '*' token
uci.c:122: error: expected ')' before '*' token
uci.c:140: error: expected ')' before '*' token
uci.c:161: error: expected ')' before '*' token
uci.c:200: error: expected ')' before '*' token
uci.c:281: error: expected ')' before '*' token
uci.c:287: error: expected ')' before '*' token
uci.c:293: error: expected ')' before '*' token
uci.c:319: error: expected ')' before '*' token
uci.c:370: error: expected ')' before '*' token
uci.c:435: error: expected ')' before '*' token
uci.c:501: error: expected ')' before '*' token
uci.c:507: error: expected ')' before '*' token
uci.c:513: error: expected ')' before '*' token
uci.c:519: error: expected ')' before '*' token
uci.c:546: error: expected ')' before '*' token
uci.c:578: error: expected ')' before '*' token
uci.c:612: error: expected ')' before '*' token
uci.c:623: error: expected ')' before '*' token
uci.c:634: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uci'
cc1: warnings being treated as errors
uci.c:650: warning: ISO C does not allow extra ';' outside of a function
uci.c:654: error: expected ')' before '*' token
make[4]: *** [uci.o] Error 1
make[4]: Leaving directory `/media/storage/apps_cvs/openwrt/build_dir/mips/uci-0.4.2/lua'
make[3]: *** [/media/storage/apps_cvs/openwrt/build_dir/mips/uci-0.4.2/.built] Error 2
make[3]: Leaving directory `/media/storage/apps_cvs/openwrt/package/uci'
make[2]: *** [package/uci/compile] Error 2
make[2]: Leaving directory `/media/storage/apps_cvs/openwrt'
make[1]: *** [/media/storage/apps_cvs/openwrt/staging_dir/mips/stamp/.package_compile] Error 2
make[1]: Leaving directory `/media/storage/apps_cvs/openwrt'
make: *** [world] Error 2

Distribution Ubuntu 8.04
Kamikaze revision 11428

Any ideas?

The error message "uci.c:24:21: error: lauxlib.h: No such file or directory"
is telling you that LUA Library is missing...

Add it on the configuration of your firmware.

grep -i lua .config
CONFIG_PACKAGE_liblua=m
# CONFIG_PACKAGE_libuci-lua is not set
# LUA
# CONFIG_PACKAGE_lua is not set
# CONFIG_PACKAGE_luac is not set

The compilation is done perfectly !

Regards.

fixed in r11429

Thank you nbd, works like a charm.

(Last edited by kenjiru on 11 Jun 2008, 14:49)

The discussion might have continued from here.