axkibe/lsyncd — Issue #33: compilation error of lsyncd2.beta1
Author: axkibe
Created: 2011-11-16 15:00:27+00:00
State: open

Originally filed by marc.s...@gmail.com on 2010-11-17T12:36:32

OS : Redhat 5.3 x86_64
svn source lsyncd2 : r369

lua packages :
liblua.x86_64 5.1.4-3.el5.pp installed
liblua-devel.x86_64 5.1.4-3.el5.pp installed
lua.x86_64 5.1.4-4.el5 installed
lua-devel.x86_64 5.1.4-4.el5 installed
lua-static.x86_64 5.1.4-4.el5 installed

coming from rpmbone

lua -v
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
luac -v
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio

1st :
./autogen.sh OK
./configure KO
checking for LIBLUA... configure: error: Package requirements (lua5.1) were not met:

No package 'lua5.1' found

solved by :
ln -s /usr/lib64/pkgconfig/lua.pc /usr/lib64/pkgconfig/lua5.1.pc
./configure ---> OK

2nd
make KO :

[... svn]# make
make all-am
make[1]: Entering directory `/usr/src/svn'
objcopy --input-target=binary --output-target=`gcc -dumpmachine` --binary-architecture=`cat architecture` luac.out luac.o
objcopy: luac.o: Invalid bfd target
make[1]: *** [luac.o] Error 1
make[1]: Leaving directory `/usr/src/svn'
make: *** [all] Error 2
[... svn]#

with
# gcc -dumpmachine
x86_64-redhat-linux
# objcopy --info
BFD header file version 2.17.50.0.6-9.el5 20061020
elf64-x86-64
(header little endian, data little endian)
i386
elf32-i386
(header little endian, data little endian)
i386
a.out-i386-linux
(header little endian, data little endian)
i386
efi-app-ia32
(header little endian, data little endian)
i386
elf64-little
(header little endian, data little endian)
i386
elf64-big
(header big endian, data big endian)
i386
elf32-little
(header little endian, data little endian)
i386
elf32-big
(header big endian, data big endian)
i386
srec
(header endianness unknown, data endianness unknown)
i386
symbolsrec
(header endianness unknown, data endianness unknown)
i386
tekhex
(header endianness unknown, data endianness unknown)
i386
binary
(header endianness unknown, data endianness unknown)
i386
ihex
(header endianness unknown, data endianness unknown)
i386

elf64-x86-64 elf32-i386 a.out-i386-linux efi-app-ia32
i386 elf64-x86-64 elf32-i386 a.out-i386-linux efi-app-ia32

elf64-little elf64-big elf32-little elf32-big srec symbolsrec
i386 elf64-little elf64-big elf32-little elf32-big srec symbolsrec

tekhex binary ihex
i386 tekhex binary ihex
[...svn]#

any help will be apreciated

marc.sert@gmail.com