Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#682183: liblua5.1-0-dev: lua-deb-multiarch.h not found when compiling source including lua.h

629 views
Skip to first unread message

Sebastien Helleu

unread,
Jul 20, 2012, 3:50:01 AM7/20/12
to
Package: liblua5.1-0-dev
Version: 5.1.5-3
Severity: normal

When compiling a source including lua.h, the header lua-deb-multiarch.h
is not found, maybe a link to this file is missing?

Test file (test-lua.c):

#include <lua.h>
int main(int argc, char *argv[])
{
return 0;
}

When compiling:

$ gcc -I/usr/include/lua5.1 -o test-lua test-lua.c
In file included from /usr/include/lua5.1/lua.h:16:0,
from test-lua.c:1:
/usr/include/lua5.1/luaconf.h:98:31: fatal error: lua-deb-multiarch.h: No such file or directory
compilation terminated.

Am I missing something?

Compilation was ok with version 5.1.5-2 of package
(where the file lua-deb-multiarch.h did not exist).

-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages liblua5.1-0-dev depends on:
ii libc6-dev [libc-dev] 2.13-34
ii liblua5.1-0 5.1.5-3
ii libreadline-dev 6.2-8

Versions of packages liblua5.1-0-dev recommends:
ii libtool 2.4.2-1.1
ii pkg-config 0.26-1

liblua5.1-0-dev suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Enrico Tassi

unread,
Jul 20, 2012, 9:10:02 AM7/20/12
to
On Fri, Jul 20, 2012 at 09:34:14AM +0200, Sebastien Helleu wrote:
> Package: liblua5.1-0-dev
> Version: 5.1.5-3
> Severity: normal
>
> $ gcc -I/usr/include/lua5.1 -o test-lua test-lua.c

The problem is that you added by hand "-I/usr/include/lua5.1" while you
should get CFLAGS in a more systematic way.

Try `pkg-config --cflags lua5.1`.
As you will see there is an extra -I flag to be passed to gcc.

Cheers
--
Enrico Tassi
0 new messages