Compiling LuaSQL 2.1.1 on Ubuntu 10.04 for odbc -


i can't luasql 2.1.1 odbc compile out of box, , don't understand how interpret error. on ubuntu 10.04, , unixodbc installed.

root@server:~/downloads/luasql-2.1.1# make gcc -o2 -wall -wmissing-prototypes -wmissing-declarations -ansi -pedantic -i../compat/src -dunixodbc -i/usr/local/include -i/usr/local/include    -c -o src/luasql.o src/luasql.c gcc -o2 -wall -wmissing-prototypes -wmissing-declarations -ansi -pedantic -i../compat/src -dunixodbc -i/usr/local/include -i/usr/local/include    -c -o src/ls_odbc.o src/ls_odbc.c src/ls_odbc.c: in function ‘fail’: src/ls_odbc.c:134: warning: pointer targets in passing argument 6 of ‘sqlgetdiagrec’ differ in signedness /usr/include/sql.h:708: note: expected ‘sqlchar *’ argument of type ‘char *’ src/ls_odbc.c: in function ‘push_column’: src/ls_odbc.c:197: warning: passing argument 6 of ‘sqlgetdata’ incompatible pointer type /usr/include/sql.h:685: note: expected ‘sqllen *’ argument of type ‘sqlinteger *’ src/ls_odbc.c:210: warning: passing argument 6 of ‘sqlgetdata’ incompatible pointer type /usr/include/sql.h:685: note: expected ‘sqllen *’ argument of type ‘sqlinteger *’ src/ls_odbc.c:230: warning: passing argument 6 of ‘sqlgetdata’ incompatible pointer type /usr/include/sql.h:685: note: expected ‘sqllen *’ argument of type ‘sqlinteger *’ src/ls_odbc.c:245: warning: passing argument 6 of ‘sqlgetdata’ incompatible pointer type /usr/include/sql.h:685: note: expected ‘sqllen *’ argument of type ‘sqlinteger *’ src/ls_odbc.c: in function ‘create_colinfo’: src/ls_odbc.c:383: warning: pointer targets in passing argument 2 of ‘lua_pushstring’ differ in signedness /usr/local/include/lua.h:164: note: expected ‘const char *’ argument of type ‘sqlchar *’ src/ls_odbc.c: in function ‘conn_execute’: src/ls_odbc.c:468: warning: pointer targets in passing argument 2 of ‘sqlprepare’ differ in signedness /usr/include/sql.h:743: note: expected ‘sqlchar *’ argument of type ‘char *’ src/ls_odbc.c:497: warning: passing argument 2 of ‘sqlrowcount’ incompatible pointer type /usr/include/sql.h:749: note: expected ‘sqllen *’ argument of type ‘sqlinteger *’ src/ls_odbc.c: in function ‘env_connect’: src/ls_odbc.c:602: warning: pointer targets in passing argument 2 of ‘sqlconnect’ differ in signedness /usr/include/sql.h:614: note: expected ‘sqlchar *’ argument of type ‘char *’ src/ls_odbc.c:602: warning: pointer targets in passing argument 4 of ‘sqlconnect’ differ in signedness /usr/include/sql.h:614: note: expected ‘sqlchar *’ argument of type ‘char *’ src/ls_odbc.c:602: warning: pointer targets in passing argument 6 of ‘sqlconnect’ differ in signedness /usr/include/sql.h:614: note: expected ‘sqlchar *’ argument of type ‘char *’ export macosx_deployment_target="10.3"; gcc -o2 -wall -wmissing-prototypes -wmissing-declarations -ansi -pedantic -i../compat/src -dunixodbc -i/usr/local/include -i/usr/local/include  -o src/odbc.so -shared  src/luasql.o src/ls_odbc.o  -l/usr/local/lib -lodbc /usr/bin/ld: src/luasql.o: relocation r_x86_64_32 against `.rodata.str1.1' can not used when making shared object; recompile -fpic src/luasql.o: not read symbols: bad value collect2: ld returned 1 exit status make: *** [src/odbc.so] error 1 

fixed adding -fpic flag suggested in warn variable in luasql-2.x/config. thanks!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -