ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@altlinux.org
Subject: [devel] Re: lua5-posix-2003.11.07-alt2: rebuild failed [1]
Date: Wed, 29 Jun 2005 07:00:21 +0400
Message-ID: <20050629030020.GQ31585@solemn.turbinal.org> (raw)
In-Reply-To: <20050628114825.3F5AFB0DEF@basalt.office.altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

On Tue, Jun 28, 2005 at 03:48:25PM +0400, QA Team Robot wrote:
> + gcc -shared -pipe -Wall -O2 -march=i586 -mcpu=i686 -fPIC -DPIC lposix.c -o posix.so -llua -llualib
> + lua5 -e 'assert(loadlib("./posix.so", "luaopen_posix"))(); assert(posix)' test.lua
> /usr/src/tmp/rpm-tmp.93540: line 96: 10053 Segmentation fault      lua5 -e 'assert(loadlib("./posix.so", "luaopen_posix"))(); assert(posix)' test.lua

lua сломана.

$ lua -e 'print(2*0.1+5)'
zsh: segmentation fault  lua -e 'print(2*0.1+5)'
$

Из-за безобидного патча, который сделал mouse (#6539).
lua-5.0.2-alt-lu_hash-intptr.patch

--- lua-5.0.2/src/llimits.h.orig	2003-02-20 22:33:23 +0300
+++ lua-5.0.2/src/llimits.h	2004-08-30 23:12:06 +0400
@@ -11,6 +11,7 @@
 #include <limits.h>
 #include <stddef.h>
 
+#include <stdint.h>
 
 #include "lua.h"
 
@@ -41,7 +42,7 @@
 */
 
 /* an unsigned integer to hold hash values */
-typedef unsigned int lu_hash;
+typedef intptr_t lu_hash;
 /* its signed equivalent */
 typedef int ls_hash;
 
Если пересобрать без этого патча, то всё работает.
Что-то прямо не знаю, что теперь делать.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

       reply	other threads:[~2005-06-29  3:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-29  3:00 ` Alexey Tourbin [this message]
2005-06-29  5:40   ` Anton Farygin
2005-06-29  5:59     ` Alexey Tourbin
2005-06-29  6:09     ` Anton D. Kachalov
2005-06-29  6:30       ` Alexey Tourbin
2005-06-29  8:09         ` Alexey Tourbin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050629030020.GQ31585@solemn.turbinal.org \
    --to=at@altlinux.ru \
    --cc=devel@altlinux.org \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git