[luci] make runhttpd seems to fail on latest Debian

fred basset fredbasset1000 at gmail.com
Tue Mar 6 23:45:35 CET 2012


Hi All,

I'm using Debian 6.0, downloaded the svn 0.1 release version of Luci
from the svn server and tried to build it with "make runhttpd".  I get
the errors below however, how can I fix this?

Thanks,
Fred

fred at debian:~/luci-0.10$ make runhttpd
touch .running-sdk
make -C libs/lmo CC="cc" CFLAGS="" LDFLAGS="" SDK="1" host-install
make[1]: Entering directory `/home/smachin/luci-0.10/libs/lmo'
rm -f src/*.o src/lookup src/po2lmo src/lmo.so
rm -f ../../build/po2lmo
cc   --std=gnu99 -Wall -pedantic   -fPIC -c -o src/lmo_core.o src/lmo_core.c
cc   --std=gnu99 -Wall -pedantic   -fPIC -c -o src/lmo_hash.o src/lmo_hash.c
cc   --std=gnu99 -Wall -pedantic   -fPIC -c -o src/lmo_po2lmo.o
src/lmo_po2lmo.c
cc   -o src/po2lmo src/lmo_core.o src/lmo_hash.o src/lmo_po2lmo.o
cp src/po2lmo ../../build/po2lmo
make[1]: Leaving directory `/home/smachin/luci-0.10/libs/lmo'
for i in contrib/* applications/* libs/* modules/* themes/* i18n/*; do \
		make -C$i SDK="1" compile || { \
			echo "*** Compilation of $i failed!"; \
			exit 1; \
		}; \
	done
make[1]: Entering directory `/home/smachin/luci-0.10/contrib/fwd'
make[1]: Nothing to be done for `compile'.
make[1]: Leaving directory `/home/smachin/luci-0.10/contrib/fwd'
make[1]: Entering directory `/home/smachin/luci-0.10/contrib/lar'
make[1]: Nothing to be done for `compile'.
make[1]: Leaving directory `/home/smachin/luci-0.10/contrib/lar'
make[1]: Entering directory `/home/smachin/luci-0.10/contrib/luacurses'
mkdir -p dist/usr/lib/lua
gcc  -O2 --std=gnu99 -shared -pedantic \
	-Wall -fPIC  -o dist/usr/lib/lua/curses.so src/curses.c src/luacurses.c
src/curses.c:3024: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘mklualib_curses_lib’
src/curses.c:3322: warning: ISO C does not allow extra ‘;’ outside of a function
src/curses.c:3498: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘mklualib_curses_window_lib’
src/curses.c:3594: warning: ISO C does not allow extra ‘;’ outside of a function
src/curses.c: In function ‘mklualib_create_curses_window’:
src/curses.c:3602: warning: implicit declaration of function ‘luaL_register’
src/curses.c:3602: error: ‘mklualib_curses_window_lib’ undeclared
(first use in this function)
src/curses.c:3602: error: (Each undeclared identifier is reported only once
src/curses.c:3602: error: for each function it appears in.)
src/curses.c: At top level:
src/curses.c:3605: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘mklualib_curses_screen_lib’
src/curses.c:3611: warning: ISO C does not allow extra ‘;’ outside of a function
src/curses.c: In function ‘mklualib_create_curses_screen’:
src/curses.c:3619: error: ‘mklualib_curses_screen_lib’ undeclared
(first use in this function)
src/curses.c: In function ‘luaopen_curses’:
src/curses.c:3626: error: ‘mklualib_curses_lib’ undeclared (first use
in this function)
src/luacurses.c: In function ‘luacurses_window_tostring’:
src/luacurses.c:96: warning: format ‘%p’ expects type ‘void *’, but
argument 3 has type ‘struct WINDOW *’
src/luacurses.c: In function ‘luacurses_screen_tostring’:
src/luacurses.c:103: warning: format ‘%p’ expects type ‘void *’, but
argument 3 has type ‘struct SCREEN *’
make[1]: *** [dist/usr/lib/lua/curses.so] Error 1
make[1]: Leaving directory `/home/smachin/luci-0.10/contrib/luacurses'
*** Compilation of contrib/luacurses failed!
make: *** [gccbuild] Error 1


More information about the luci mailing list