[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [LuaSQL 2.2.0] ls_sqlite3.c: error: expected expression before / token
- From: Gilles Ganault <gilles.ganault@...>
- Date: Thu, 14 Apr 2011 14:25:26 +0200
Hello
After successfully compiling sqlite-autoconf-3070601, I edited
LuaSQL's config and Makefile thusly:
=============== config
T=sqlite3
PREFIX = /usr/src/lua-5.1.4/src
LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
LUA_DIR= $(PREFIX)/share/lua/5.1
LUA_INC= $(PREFIX)
LUA_VERSION_NUM= 514
LIB_OPTION= -shared #for Linux
LIBNAME= $T.so
COMPAT_DIR= ../compat/src
######## SQLite3
DRIVER_LIBS= -L/usr/src/sqlite-autoconf-3070601/.libs -lsqlite3
DRIVER_INCS = -I/usr/src/sqlite-autoconf-3070601
WARN= -Wall -ansi
INCS= -I$(LUA_INC)
CFLAGS= -O2 $(WARN) -I$(COMPAT_DIR) $(DRIVER_INCS) $(INCS)
-DLUASQL_VERSION_NUMBER='"$V"' $(DEFS)
CC=bfin-linux-uclibc-gcc
=============== Makefile
...
AR= bfin-linux-uclibc-ar rcu
RANLIB= bfin-linux-uclibc-ranlib
===============
... and then ran "make", but it fails:
===============
/usr/src/luasql-2.2.0# make
bfin-linux-uclibc-gcc -O2 -Wall -ansi -I../compat/src
-I/usr/src/sqlite-autoconf-3070601 -I/usr/src/lua-5.1.4/src
-DLUASQL_VERSION_NUMBER='"2.2.0"' -c -o src/luasql.o src/luasql.c
bfin-linux-uclibc-gcc -O2 -Wall -ansi -I../compat/src
-I/usr/src/sqlite-autoconf-3070601 -I/usr/src/lua-5.1.4/src
-DLUASQL_VERSION_NUMBER='"2.2.0"' -c -o src/ls_sqlite3.o
src/ls_sqlite3.c
src/ls_sqlite3.c: In function "push_column":
src/ls_sqlite3.c:118: warning: pointer targets in passing argument 2
of "lua_pushlstring" differ in signedness
src/ls_sqlite3.c: In function "env_connect":
src/ls_sqlite3.c:522: error: expected expression before "/" token
src/ls_sqlite3.c: In function "opts_settimeout":
src/ls_sqlite3.c:554: warning: passing argument 1 of
"sqlite3_busy_timeout" from incompatible pointer type
make: *** [src/ls_sqlite3.o] Error 1
===============
The CFLAGS are pretty standard. Did I use some wrong settings for the
compiler?
Thank you.