<div dir="ltr">Hi thanks for you help, I have installed lua devel package.  After that , I am getting following compilation error <br><br><span style="background-color: rgb(255, 255, 153);">gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -I../compat/src -I/usr/include/mysql -I/usr/local/include    -c -o src/ls_mysql.o src/ls_mysql.c<br>
src/ls_mysql.c:19:19: error: mysql.h: No such file or directory<br>src/ls_mysql.c:73: error: expected specifier-qualifier-list before ‘MYSQL’<br>src/ls_mysql.c:81: error: expected specifier-qualifier-list before ‘MYSQL_RES’<br>
src/ls_mysql.c:148: warning: ISO C forbids forward references to ‘enum’ types<br>src/ls_mysql.c:148: warning: ‘enum enum_field_types’ declared inside parameter list<br>src/ls_mysql.c:148: warning: its scope is only this definition or declaration, which is probably not what you want<br>
src/ls_mysql.c:148: error: parameter 1 (‘type’) has incomplete type<br>src/ls_mysql.c: In function ‘getcolumntype’:<br>src/ls_mysql.c:151: error: ‘FIELD_TYPE_VAR_STRING’ undeclared (first use in this function)<br>src/ls_mysql.c:151: error: (Each undeclared identifier is reported only once<br>
src/ls_mysql.c:151: error: for each function it appears in.)<br>src/ls_mysql.c:151: error: ‘FIELD_TYPE_STRING’ undeclared (first use in this function)<br>src/ls_mysql.c:153: error: ‘FIELD_TYPE_DECIMAL’ undeclared (first use in this function)<br>
src/ls_mysql.c:153: error: ‘FIELD_TYPE_SHORT’ undeclared (first use in this function)<br>src/ls_mysql.c:153: error: ‘FIELD_TYPE_LONG’ undeclared (first use in this function)<br>src/ls_mysql.c:154: error: ‘FIELD_TYPE_FLOAT’ undeclared (first use in this function)<br>
src/ls_mysql.c:154: error: ‘FIELD_TYPE_DOUBLE’ undeclared (first use in this function)<br>src/ls_mysql.c:154: error: ‘FIELD_TYPE_LONGLONG’ undeclared (first use in this function)<br>src/ls_mysql.c:155: error: ‘FIELD_TYPE_INT24’ undeclared (first use in this function)<br>
src/ls_mysql.c:155: error: ‘FIELD_TYPE_YEAR’ undeclared (first use in this function)<br>src/ls_mysql.c:155: error: ‘FIELD_TYPE_TINY’ undeclared (first use in this function)<br>src/ls_mysql.c:157: error: ‘FIELD_TYPE_TINY_BLOB’ undeclared (first use in this function)<br>
src/ls_mysql.c:157: error: ‘FIELD_TYPE_MEDIUM_BLOB’ undeclared (first use in this function)<br>src/ls_mysql.c:158: error: ‘FIELD_TYPE_LONG_BLOB’ undeclared (first use in this function)<br>src/ls_mysql.c:158: error: ‘FIELD_TYPE_BLOB’ undeclared (first use in this function)<br>
src/ls_mysql.c:160: error: ‘FIELD_TYPE_DATE’ undeclared (first use in this function)<br>src/ls_mysql.c:160: error: ‘FIELD_TYPE_NEWDATE’ undeclared (first use in this function)<br>src/ls_mysql.c:162: error: ‘FIELD_TYPE_DATETIME’ undeclared (first use in this function)<br>
src/ls_mysql.c:164: error: ‘FIELD_TYPE_TIME’ undeclared (first use in this function)<br>src/ls_mysql.c:166: error: ‘FIELD_TYPE_TIMESTAMP’ undeclared (first use in this function)<br>src/ls_mysql.c:168: error: ‘FIELD_TYPE_ENUM’ undeclared (first use in this function)<br>
src/ls_mysql.c:168: error: ‘FIELD_TYPE_SET’ undeclared (first use in this function)<br>src/ls_mysql.c:170: error: ‘FIELD_TYPE_NULL’ undeclared (first use in this function)<br>src/ls_mysql.c: In function ‘create_colinfo’:<br>
src/ls_mysql.c:182: error: ‘MYSQL_FIELD’ undeclared (first use in this function)<br>src/ls_mysql.c:182: error: ‘fields’ undeclared (first use in this function)<br>src/ls_mysql.c:183: warning: ISO C90 forbids mixed declarations and code<br>
src/ls_mysql.c:185: warning: implicit declaration of function ‘mysql_fetch_fields’<br>src/ls_mysql.c:185: error: ‘cur_data’ has no member named ‘my_res’<br>src/ls_mysql.c:191: error: type of formal parameter 1 is incomplete<br>
src/ls_mysql.c: In function ‘cur_fetch’:<br>src/ls_mysql.c:206: error: ‘MYSQL_RES’ undeclared (first use in this function)<br>src/ls_mysql.c:206: error: ‘res’ undeclared (first use in this function)<br>src/ls_mysql.c:206: error: ‘cur_data’ has no member named ‘my_res’<br>
src/ls_mysql.c:207: warning: ISO C90 forbids mixed declarations and code<br>src/ls_mysql.c:208: error: ‘MYSQL_ROW’ undeclared (first use in this function)<br>src/ls_mysql.c:208: error: expected ‘;’ before ‘row’<br>src/ls_mysql.c:209: error: ‘row’ undeclared (first use in this function)<br>
src/ls_mysql.c:213: warning: implicit declaration of function ‘mysql_fetch_lengths’<br>src/ls_mysql.c:213: warning: assignment makes pointer from integer without a cast<br>src/ls_mysql.c: In function ‘cur_close’:<br>src/ls_mysql.c:269: warning: implicit declaration of function ‘mysql_free_result’<br>
src/ls_mysql.c:269: error: ‘cur_data’ has no member named ‘my_res’<br>src/ls_mysql.c: In function ‘cur_numrows’:<br>src/ls_mysql.c:319: warning: implicit declaration of function ‘mysql_num_rows’<br>src/ls_mysql.c:319: error: ‘cur_data’ has no member named ‘my_res’<br>
src/ls_mysql.c: At top level:<br>src/ls_mysql.c:327: error: expected declaration specifiers or ‘...’ before ‘MYSQL_RES’<br>src/ls_mysql.c: In function ‘create_cursor’:<br>src/ls_mysql.c:337: error: ‘cur_data’ has no member named ‘my_res’<br>
src/ls_mysql.c:337: error: ‘result’ undeclared (first use in this function)<br>src/ls_mysql.c: In function ‘conn_close’:<br>src/ls_mysql.c:359: warning: implicit declaration of function ‘mysql_close’<br>src/ls_mysql.c:359: error: ‘conn_data’ has no member named ‘my_conn’<br>
src/ls_mysql.c: In function ‘conn_execute’:<br>src/ls_mysql.c:374: warning: implicit declaration of function ‘mysql_real_query’<br>src/ls_mysql.c:374: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c:376: warning: implicit declaration of function ‘mysql_error’<br>
src/ls_mysql.c:376: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c:376: warning: passing argument 3 of ‘luasql_failmessage’ makes pointer from integer without a cast<br>src/ls_mysql.c:379: error: ‘MYSQL_RES’ undeclared (first use in this function)<br>
src/ls_mysql.c:379: error: ‘res’ undeclared (first use in this function)<br>src/ls_mysql.c:379: warning: implicit declaration of function ‘mysql_store_result’<br>src/ls_mysql.c:379: error: ‘conn_data’ has no member named ‘my_conn’<br>
src/ls_mysql.c:380: warning: implicit declaration of function ‘mysql_field_count’<br>src/ls_mysql.c:380: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c:380: warning: ISO C90 forbids mixed declarations and code<br>
src/ls_mysql.c:383: error: too many arguments to function ‘create_cursor’<br>src/ls_mysql.c:388: warning: implicit declaration of function ‘mysql_affected_rows’<br>src/ls_mysql.c:388: error: ‘conn_data’ has no member named ‘my_conn’<br>
src/ls_mysql.c:392: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c:392: warning: passing argument 3 of ‘luasql_failmessage’ makes pointer from integer without a cast<br>src/ls_mysql.c: In function ‘conn_commit’:<br>
src/ls_mysql.c:403: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c: In function ‘conn_rollback’:<br>src/ls_mysql.c:413: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c: In function ‘conn_setautocommit’:<br>
src/ls_mysql.c:424: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c:427: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c: At top level:<br>src/ls_mysql.c:437: error: expected declaration specifiers or ‘...’ before ‘MYSQL’<br>
src/ls_mysql.c: In function ‘create_connection’:<br>src/ls_mysql.c:444: error: ‘conn_data’ has no member named ‘my_conn’<br>src/ls_mysql.c:444: error: ‘my_conn’ undeclared (first use in this function)<br>src/ls_mysql.c: In function ‘env_connect’:<br>
src/ls_mysql.c:462: error: ‘MYSQL’ undeclared (first use in this function)<br>src/ls_mysql.c:462: error: ‘conn’ undeclared (first use in this function)<br>src/ls_mysql.c:466: warning: implicit declaration of function ‘mysql_init’<br>
src/ls_mysql.c:470: warning: implicit declaration of function ‘mysql_real_connect’<br>src/ls_mysql.c:474: warning: passing argument 2 of ‘__builtin_strncpy’ makes pointer from integer without a cast<br>src/ls_mysql.c:478: error: too many arguments to function ‘create_connection’<br>
src/ls_mysql.c: In function ‘luaopen_luasql_mysql’:<br>src/ls_mysql.c:557: error: expected ‘)’ before ‘MYSQL_SERVER_VERSION’<br>src/ls_mysql.c:557: error: too few arguments to function ‘lua_pushlstring’<br>make: *** [src/ls_mysql.o] Error 1<br>
</span><span style="background-color: rgb(255, 255, 153);"></span><br style="background-color: rgb(255, 255, 153);"><br><br>&quot;config&quot; settings<br><br><span style="background-color: rgb(204, 255, 255);"># Driver (leave uncommented ONLY the line with the name of the driver)</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">T= mysql</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">#T= oci8</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">#T= odbc</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">#T= postgres</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">#T= sqlite</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">#T=sqlite3</span><br style="background-color: rgb(204, 255, 255);">
<br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># Installation directories</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);"># Default prefix</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">PREFIX = /usr/local</span><br style="background-color: rgb(204, 255, 255);">
<br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># System&#39;s libraries directory (where binary libraries are installed)</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">LUA_LIBDIR= $(PREFIX)/lib/lua/5.1</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># System&#39;s lua directory (where Lua libraries are installed)</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">LUA_DIR= $(PREFIX)/share/lua/5.1</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># Lua includes directory</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">LUA_INC= $(PREFIX)/include</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># Lua version number (first and second digits of target version)</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">LUA_VERSION_NUM= 501</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># OS dependent</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">LIB_OPTION= -shared #for Linux</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X</span><br style="background-color: rgb(204, 255, 255);">
<br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">LIBNAME= $T.so</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">COMPAT_DIR= ../compat/src</span><br style="background-color: rgb(204, 255, 255);">
<br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># Compilation parameters</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># Driver specific</span><br style="background-color: rgb(204, 255, 255);">
<br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">######## MySQL</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">DRIVER_LIBS= -L/usr/lib/mysql -lmysqlclient -lz</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">DRIVER_INCS= -I/usr/include/mysql</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">INCS= -I$(LUA_INC)</span><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);">CFLAGS= -O2 $(WARN) -I$(COMPAT_DIR) $(DRIVER_INCS) $(INCS) $(DEFS)</span><br style="background-color: rgb(204, 255, 255);">
<span style="background-color: rgb(204, 255, 255);">CC= gcc</span><br style="background-color: rgb(204, 255, 255);"><br style="background-color: rgb(204, 255, 255);"><span style="background-color: rgb(204, 255, 255);"># $Id: config,v 1.8 2007/10/27 22:55:27 carregal Exp $</span><br style="background-color: rgb(204, 255, 255);">
<br><br>I am using CENT OS 5.3 32-bit. <br><br><br>Regards,<br>Venkat. <br><br><br><br><br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 6:05 PM, Seven Du <span dir="ltr">&lt;<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">src/luasql.c:8:17: error: lua.h: No such file or directory<br>
<br>
</div>seems like you need to install lua devel package. I don&#39;t have CENT<br>
but the package name should like lua-devel or lua51-devel etc.<br>
<div><div></div><div class="h5"><br>
On Wed, Sep 1, 2010 at 7:55 PM, ovvenkat &lt;<a href="mailto:ovvenkatesan@gmail.com">ovvenkatesan@gmail.com</a>&gt; wrote:<br>
&gt; Hi to all,<br>
&gt;<br>
&gt; I could not able to compile &quot;luasql-2.1.1&quot; on CENT 5.3 32-bit. I am getting<br>
&gt; following errors while compiling the source code<br>
&gt;<br>
&gt;<br>
&gt; gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic<br>
&gt; -I../compat/src  -I/usr/local/include    -c -o src/luasql.o src/luasql.c<br>
&gt; src/luasql.c:8:17: error: lua.h: No such file or directory<br>
&gt; src/luasql.c:9:21: error: lauxlib.h: No such file or directory<br>
&gt; src/luasql.c:11:24: error: compat-5.1.h: No such file or directory<br>
&gt; In file included from src/luasql.c:15:<br>
&gt; src/luasql.h:23: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.h:24: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.h:25: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.h:26: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.c:20: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.c:31: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.c:46: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.c:78: error: expected ‘)’ before ‘*’ token<br>
&gt; src/luasql.c:87: error: expected ‘)’ before ‘*’ token<br>
&gt; make: *** [src/luasql.o] Error 1<br>
&gt;<br>
&gt; Any one faced resolved the same issue?<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Regards<br>
&gt; Venkat.<br>
&gt;<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>
Proj:  <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br>If you have come to help me, you are wasting your time. <br>If you have come to because your liberation is bound up in mine, we can work together.<br>
<br> <br>Regards<br>Venkatesan OV.</div><br>
</div>