Bug #57319 mysql-proxy configure script fall to lua5.1
Submitted: 7 Oct 2010 16:35 Modified: 9 Jan 2015 15:56
Reporter: Nishant Mittal Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Proxy: Install/Config Severity:S3 (Non-critical)
Version:0.8.1, 0.9.0 OS:Linux (Linux nishant 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:05:27 UTC 2010 x86_64 GNU/Linux)
Assigned to: CPU Architecture:Any

[7 Oct 2010 16:35] Nishant Mittal
Description:
Tried to build mysql-proxy 0.8.1 from source. I have lua 5.1.4 installed however when I run the configure script as...
$./configure --with-lua
.
.
checking for LUA... no
 ... checked for Lua via pkg-config: No package 'lua' found. retrying with lua5.1
checking for GLIB... yes
.
.

it said that retrying with lua5.1 but it didnt.

when I run the script as..
$./configure --with-lua=lua5.1

it configured and built fine.

How to repeat:
1. download version 0.8.1
2. run the configure script as configure --with-lua
3. make
4. get error...
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT libmysql_chassis_la-lua-scope.lo -MD -MP -MF .deps/libmysql_chassis_la-lua-scope.Tpo -c lua-scope.c  -fPIC -DPIC -o .libs/libmysql_chassis_la-lua-scope.o
lua-scope.c:44: error: expected ‘)’ before ‘*’ token

5. run configure again as ./configure --with-lua=lua5.1
6 make
 success.
[7 Oct 2010 18:08] Sveta Smirnova
Thank you for the report.

Can pkg-config see lua? I.e. what `pkg-config --list-all | grep lua` outputs?
[7 Oct 2010 19:48] Nishant Mittal
$ pkg-config --list-all | grep lua
lua5.1                           Lua - Lua language engine
$
[8 Oct 2010 19:12] Sveta Smirnova
Thank you for the feedback.

What `pkg-config --exists --print-errors "lua5.1 >= 5.1"; echo $?` outputs?
[9 Nov 2010 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[11 May 2011 5:55] Max Arnold
Same issue on Ubuntu Lucid. Following packages are installed before compilation attempt: liblua5.1-dev pkg-config libglib2.0-dev libevent-dev check

$ pkg-config --exists --print-errors "lua5.1 >= 5.1"; echo $?

0
[18 Jul 2011 11:49] Valeriy Kravchuk
Thank you for the bug report. Verified on 32-bit Ubuntu 10.04. Workaround had not worked in my case for some reason.
[18 Jul 2011 12:53] Max Arnold
You can get working package for Ubuntu 10.04 in my PPA: https://launchpad.net/~lwarx/+archive/mysql