X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from faros.axonpro.sk (faros.axonpro.sk [193.200.9.6]) by lists.alpinelinux.org (Postfix) with ESMTP id CEC611EBFF3 for ; Tue, 11 Jan 2011 14:38:27 +0000 (UTC) Received: from axonpro.sk (mollum.axonpro-local.sk [200.200.200.221]) by faros.axonpro.sk (8.12.11.20060308/8.12.11) with ESMTP id p0BEcQef007014 for ; Tue, 11 Jan 2011 15:38:26 +0100 Received: from [200.200.200.209] ([200.200.200.209]) by axonpro.sk (8.14.4/8.13.1) with ESMTP id p0BEcPsH003336 for ; Tue, 11 Jan 2011 15:38:25 +0100 Message-ID: <4D2C6BA8.3070005@sofy.sk> Date: Tue, 11 Jan 2011 15:39:36 +0100 From: =?windows-1252?Q?Juraj_=8Aujan?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101211 Lanikai/3.1.7 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] haserl on x86_64 Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: quoted-printable Hi everyone, I tried x86_64 edge version of Alpine Linux (btw. thanks a lot for this=20 great distro!) on my home server and went into problems with ACF. I read=20 instructions on wiki, installed it and run mini_httpd, but in my browser=20 only this error message appeared: Error passing the lua library to the lua vm: luascript.lua: bad header=20 in precompiled chunk After much struggle I realised, that problem is in haserl package and=20 more specifically in lua chunk, which is inserted into haserl binary. In=20 haserl sources, there is a file called haserl_lualib.inc, precompiled=20 (probably) for x86 architecture, which is inserted into haserl as is,=20 not recompiled by automake process. Obviously, this could cause problems=20 on other architectures, such as x86_64. After little searching I found a solution, looks like maintainer of=20 haserl knows about this (or similar) issue, because he has included some=20 hints into source files and Makefile. This is from Makefile: haserl_lualib.inc : haserl_lualib.lua @echo '-----------------------------------------------------' @echo 'Whoops. haserl_lualib.inc is old. You will need' @echo 'to compile lua2c by hand, or help the maintainer' @echo 'get automake to do it for you.' @echo '' @echo 'For now, to compile lua2c:' @echo '' @echo 'gcc -I -Wl,-E -L -o lua2c=20 lua2c.c -llua -ldl -lm' @echo '' @echo '' @echo 'Then follow the instructions in lua2c.c to create a' @echo 'new haserl_lualib.inc' @echo '' @echo 'Sorry.' @echo '-----------------------------------------------------' @exit 1 So I inserted some lines into haserl APKBUILD: ./configure --prefix=3D/usr --with-lua || return 1 # inserted lines for recompiling problematic file haserl_lualib.inc cd src gcc -I/usr/include -Wl,-E -L/usr/lib -o lua2c lua2c.c -llua -ldl -lm luac -s -o foo haserl_lualib.lua ./lua2c haserl_lualib foo >haserl_lualib.inc cd .. make || return 1 After recompilation and installation of new package, haserl and ACF now=20 works for me without any problem! I don't know if anyone else has this issue, but I hope this will help=20 someone. Kind regards, Juraj =8Aujan --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---