I can't get luasql to compile on CentOS 5.4:<div><br></div><div><div>[root@topaz luasql-2.1.1]# make</div><div>gcc -fPIC -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic -I../compat/src -I/usr/include/mysql -I/usr/local/include -o src/mysql.so -shared src/luasql.o src/ls_mysql.o -L/usr/local/mysql/lib -lmysqlclient -lz</div>
<div>/usr/bin/ld: src/luasql.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC</div><div>src/luasql.o: could not read symbols: Bad value</div><div>collect2: ld returned 1 exit status</div>
<div>make: *** [src/mysql.so] Error 1</div><div><br></div><div>I've tried adding the -fPIC in the make but still no luck. Also, the FS wiki warns agains compiling with the MySQL driver since it leaks memory. So how do I install luasql for MySQL? Couldn't find any RPMs, can anyone here share one?</div>
<div><br></div><div>Thanks,</div><div>Neil</div><div><br></div></div>