Closed acautin closed 5 years ago
@c-bik updated please verify.
not able to compile on centos
rebar3 compile
===> Verifying dependencies...
===> Compiling oranif
Cloning into 'odpi'...
Note: checking out '9902a60068042e7409b7806b5e73fe7e66200cae'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
cd c_src/odpi && make
make[1]: Entering directory `/home/shamis/repo/tmp/oranif/c_src/odpi'
mkdir -p build
mkdir -p lib
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiConn.c -o build/dpiConn.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiContext.c -o build/dpiContext.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiData.c -o build/dpiData.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiEnv.c -o build/dpiEnv.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiError.c -o build/dpiError.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiGen.c -o build/dpiGen.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiGlobal.c -o build/dpiGlobal.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiLob.c -o build/dpiLob.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiObject.c -o build/dpiObject.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiObjectAttr.c -o build/dpiObjectAttr.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiObjectType.c -o build/dpiObjectType.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiPool.c -o build/dpiPool.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiStmt.c -o build/dpiStmt.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiUtils.c -o build/dpiUtils.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiVar.c -o build/dpiVar.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiOracleType.c -o build/dpiOracleType.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiSubscr.c -o build/dpiSubscr.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiDeqOptions.c -o build/dpiDeqOptions.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiEnqOptions.c -o build/dpiEnqOptions.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiMsgProps.c -o build/dpiMsgProps.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiRowid.c -o build/dpiRowid.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiOci.c -o build/dpiOci.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiDebug.c -o build/dpiDebug.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiHandlePool.c -o build/dpiHandlePool.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiHandleList.c -o build/dpiHandleList.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiSodaColl.c -o build/dpiSodaColl.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiSodaCollCursor.c -o build/dpiSodaCollCursor.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiSodaDb.c -o build/dpiSodaDb.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiSodaDoc.c -o build/dpiSodaDoc.o
gcc -c -Iinclude -O2 -g -Wall -fPIC src/dpiSodaDocCursor.c -o build/dpiSodaDocCursor.o
gcc -shared -Wl,-soname,libodpic.so.3 -o lib/libodpic.so.3.0.0 build/dpiConn.o build/dpiContext.o build/dpiData.o build/dpiEnv.o build/dpiError.o build/dpiGen.o build/dpiGlobal.o build/dpiLob.o build/dpiObject.o build/dpiObjectAttr.o build/dpiObjectType.o build/dpiPool.o build/dpiStmt.o build/dpiUtils.o build/dpiVar.o build/dpiOracleType.o build/dpiSubscr.o build/dpiDeqOptions.o build/dpiEnqOptions.o build/dpiMsgProps.o build/dpiRowid.o build/dpiOci.o build/dpiDebug.o build/dpiHandlePool.o build/dpiHandleList.o build/dpiSodaColl.o build/dpiSodaCollCursor.o build/dpiSodaDb.o build/dpiSodaDoc.o build/dpiSodaDocCursor.o -ldl -lpthread
ln -sf libodpic.so.3.0.0 lib/libodpic.so.3
ln -sf libodpic.so.3 lib/libodpic.so
make[1]: Leaving directory `/home/shamis/repo/tmp/oranif/c_src/odpi'
gcc -o priv/dpi_nif.so -ggdb -Wall -fPIC -shared -Ic_src -I/usr/lib/erlang/lib/erl_interface-3.10.1/include -I"/usr/lib/erlang/erts-9.2/include" -I"c_src/odpi/include" -L/usr/lib/erlang/lib/erl_interface-3.10.1/lib -Lc_src/odpi/lib -lerl_interface -lei -lodpic c_src/dpi_nif.c c_src/dpiContext_nif.c c_src/dpiConn_nif.c c_src/dpiStmt_nif.c c_src/dpiData_nif.c c_src/dpiQueryInfo_nif.c c_src/dpiVar_nif.c c_src/dpiObjectType_nif.c
c_src/dpiContext_nif.c: In function �dpiContext_create_nif�:
c_src/dpiContext_nif.c:21: warning: pointer targets in passing argument 3 of �enif_get_uint� differ in signedness
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:103: note: expected �unsigned int *� but argument is of type �int *�
c_src/dpiContext_nif.c:23: warning: pointer targets in passing argument 3 of �enif_get_uint� differ in signedness
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:103: note: expected �unsigned int *� but argument is of type �int *�
c_src/dpiContext_nif.c: In function �dpiContext_getError_nif�:
c_src/dpiContext_nif.c:53: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiContext_res **�
c_src/dpiContext_nif.c: In function �dpiContext_destroy_nif�:
c_src/dpiContext_nif.c:67: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiContext_res **�
c_src/dpiContext_nif.c: In function �dpiContext_getClientVersion_nif�:
c_src/dpiContext_nif.c:81: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiContext_res **�
c_src/dpiConn_nif.c: In function �dpiConn_create_nif�:
c_src/dpiConn_nif.c:24: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiContext_res **�
c_src/dpiConn_nif.c:34: warning: pointer targets in passing argument 2 of �dpiConn_create� differ in signedness
c_src/odpi/include/dpi.h:769: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiConn_nif.c:34: warning: pointer targets in passing argument 4 of �dpiConn_create� differ in signedness
c_src/odpi/include/dpi.h:769: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiConn_nif.c:34: warning: pointer targets in passing argument 6 of �dpiConn_create� differ in signedness
c_src/odpi/include/dpi.h:769: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiConn_nif.c: In function �dpiConn_prepareStmt_nif�:
c_src/dpiConn_nif.c:57: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c:69: warning: implicit declaration of function �strcmp�
c_src/dpiConn_nif.c:69: warning: pointer targets in passing argument 3 of �dpiConn_prepareStmt� differ in signedness
c_src/odpi/include/dpi.h:852: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiConn_nif.c:69: warning: pointer targets in passing argument 5 of �dpiConn_prepareStmt� differ in signedness
c_src/odpi/include/dpi.h:852: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiConn_nif.c: In function �dpiConn_newVar_nif�:
c_src/dpiConn_nif.c:96: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c:112: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiObjectType_res **�
c_src/dpiConn_nif.c:128: error: �for� loop initial declarations are only allowed in C99 mode
c_src/dpiConn_nif.c:128: note: use option -std=c99 or -std=gnu99 to compile your code
c_src/dpiConn_nif.c:91: warning: unused variable �isArrayBuf�
c_src/dpiConn_nif.c: In function �dpiConn_commit_nif�:
c_src/dpiConn_nif.c:152: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c: In function �dpiConn_rollback_nif�:
c_src/dpiConn_nif.c:165: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c: In function �dpiConn_ping_nif�:
c_src/dpiConn_nif.c:179: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c: In function �dpiConn_release_nif�:
c_src/dpiConn_nif.c:193: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c: In function �dpiConn_close_nif�:
c_src/dpiConn_nif.c:209: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c:230: warning: pointer targets in passing argument 3 of �dpiConn_close� differ in signedness
c_src/odpi/include/dpi.h:762: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiConn_nif.c: In function �dpiConn_getServerVersion_nif�:
c_src/dpiConn_nif.c:245: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiConn_res **�
c_src/dpiConn_nif.c:252: warning: passing argument 2 of �dpiConn_getServerVersion� from incompatible pointer type
c_src/odpi/include/dpi.h:818: note: expected �const char **� but argument is of type �char **�
c_src/dpiConn_nif.c:252: warning: pointer targets in passing argument 3 of �dpiConn_getServerVersion� differ in signedness
c_src/odpi/include/dpi.h:818: note: expected �uint32_t *� but argument is of type �int *�
c_src/dpiStmt_nif.c: In function �dpiStmt_execute_nif�:
c_src/dpiStmt_nif.c:25: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_fetch_nif�:
c_src/dpiStmt_nif.c:59: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_getQueryValue_nif�:
c_src/dpiStmt_nif.c:87: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_getQueryInfo_nif�:
c_src/dpiStmt_nif.c:125: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_bindValueByPos_nif�:
c_src/dpiStmt_nif.c:149: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:153: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_bindValueByName_nif�:
c_src/dpiStmt_nif.c:174: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:178: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiStmt_nif.c:184: warning: pointer targets in passing argument 2 of �dpiStmt_bindValueByName� differ in signedness
c_src/odpi/include/dpi.h:1577: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiStmt_nif.c: In function �dpiStmt_bindByPos_nif�:
c_src/dpiStmt_nif.c:199: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:203: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiVar_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_bindByName_nif�:
c_src/dpiStmt_nif.c:219: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:223: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiVar_res **�
c_src/dpiStmt_nif.c:226: warning: pointer targets in passing argument 2 of �dpiStmt_bindByName� differ in signedness
c_src/odpi/include/dpi.h:1568: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiStmt_nif.c: In function �dpiStmt_release_nif�:
c_src/dpiStmt_nif.c:238: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:242: warning: statement with no effect
c_src/dpiStmt_nif.c: In function �dpiStmt_define_nif�:
c_src/dpiStmt_nif.c:255: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:259: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiVar_res **�
c_src/dpiStmt_nif.c: In function �dpiStmt_defineValue_nif�:
c_src/dpiStmt_nif.c:279: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiStmt_res **�
c_src/dpiStmt_nif.c:289: warning: implicit declaration of function �strcmp�
c_src/dpiData_nif.c: In function �dpiData_setTimestamp_nif�:
c_src/dpiData_nif.c:53: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:55: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c: In function �dpiData_setIntervalDS_nif�:
c_src/dpiData_nif.c:96: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:100: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c: In function �dpiData_setIntervalYM_nif�:
c_src/dpiData_nif.c:134: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:138: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c: In function �dpiData_setInt64_nif�:
c_src/dpiData_nif.c:165: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:169: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c: In function �dpiData_setBytes_nif�:
c_src/dpiData_nif.c:192: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:196: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c:209: warning: pointer targets in passing argument 2 of �dpiData_setBytes� differ in signedness
c_src/odpi/include/dpi.h:955: note: expected �char *� but argument is of type �unsigned char *�
c_src/dpiData_nif.c: In function �dpiData_setIsNull_nif�:
c_src/dpiData_nif.c:222: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:226: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c:237: warning: implicit declaration of function �strcmp�
c_src/dpiData_nif.c: In function �dpiData_get_nif�:
c_src/dpiData_nif.c:248: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:275: warning: implicit declaration of function �memcpy�
c_src/dpiData_nif.c:275: warning: incompatible implicit declaration of built-in function �memcpy�
c_src/dpiData_nif.c: In function �dpiData_getInt64_nif�:
c_src/dpiData_nif.c:362: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:366: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c: In function �dpiData_getBytes_nif�:
c_src/dpiData_nif.c:388: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiData_nif.c:390: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c:400: warning: incompatible implicit declaration of built-in function �memcpy�
c_src/dpiData_nif.c: In function �dpiData_release_nif�:
c_src/dpiData_nif.c:414: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiData_res **�
c_src/dpiData_nif.c:418: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiDataPtr_res **�
c_src/dpiQueryInfo_nif.c: In function �dpiQueryInfo_get_nif�:
c_src/dpiQueryInfo_nif.c:22: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiQueryInfo_res **�
c_src/dpiQueryInfo_nif.c: In function �dpiQueryInfo_delete_nif�:
c_src/dpiQueryInfo_nif.c:86: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiQueryInfo_res **�
c_src/dpiVar_nif.c: In function �dpiVar_setNumElementsInArray_nif�:
c_src/dpiVar_nif.c:19: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiVar_res **�
c_src/dpiVar_nif.c:21: warning: pointer targets in passing argument 3 of �enif_get_int� differ in signedness
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:43: note: expected �int *� but argument is of type �uint32_t *�
c_src/dpiVar_nif.c: In function �dpiVar_setFromBytes_nif�:
c_src/dpiVar_nif.c:38: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiVar_res **�
c_src/dpiVar_nif.c:40: warning: pointer targets in passing argument 3 of �enif_get_int� differ in signedness
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:43: note: expected �int *� but argument is of type �uint32_t *�
c_src/dpiVar_nif.c:45: warning: pointer targets in passing argument 3 of �dpiVar_setFromBytes� differ in signedness
c_src/odpi/include/dpi.h:1729: note: expected �const char *� but argument is of type �unsigned char *�
c_src/dpiVar_nif.c: In function �dpiVar_release_nif�:
c_src/dpiVar_nif.c:57: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiVar_res **�
c_src/dpiObjectType_nif.c: In function �dpiObjectType_release_nif�:
c_src/dpiObjectType_nif.c:19: warning: passing argument 4 of �enif_get_resource� from incompatible pointer type
/usr/lib/erlang/erts-9.2/include/erl_nif_api_funcs.h:114: note: expected �void **� but argument is of type �struct dpiObjectType_res **�
make: *** [priv/dpi_nif.so] Error 1
===> Hook for compile failed!
@shamis, thanks will give it a look
@c-bik do we need compatibility with CentOS 6.9 and old gcc ? gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
I added a flag to compile against the c11 standard so gcc 4.7+
will be required. What do you think ?
@c-bik do we need compatibility with CentOS 6.9 and old gcc ?
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
I added a flag to compile against the c11 standard sogcc 4.7+
will be required. What do you think ?
Lets go for the latest Compiler support. c11
flag is enough as fix!
Fixes #37