From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 29 Jun 2005 10:09:16 +0400 From: "Anton D. Kachalov" To: ALT Devel discussion list Subject: Re: [devel] Re: lua5-posix-2003.11.07-alt2: rebuild failed [1] Message-ID: <20050629060916.GA21492@basalt.office.altlinux.org> References: <20050628114825.3F5AFB0DEF@basalt.office.altlinux.org> <20050629030020.GQ31585@solemn.turbinal.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2005 06:09:18 -0000 Archived-At: List-Archive: List-Post: On Wed, Jun 29, 2005 at 09:40:22AM +0400, Anton Farygin wrote: > Отрывать патч, естественно. Ничего естественного. Фиксить надо, а не отрывать. Кстати, фиксил я lua5-5.x.x, а не lua5-posix-... > > Это похоже последствия портирования на x86_64 ;-) Это кривая lua. Вот из-за чего взялся этот патч (для lua5-5.0.2): ltable.c: In function `luaH_mainposition': ltable.c:108: warning: cast from pointer to integer of different size ltable.c:110: warning: cast from pointer to integer of different size Это из-за функции IntPoint (llimits.h): /* ** conversion of pointer to integer ** this is for hashing only; there is no problem if the integer ** cannot hold the whole pointer value */ #define IntPoint(p) ((lu_hash)(p)) А ещё : #if __WORDSIZE == 64 typedef long int intptr_t; typedef unsigned long int uintptr_t; #else typedef int intptr_t; typedef unsigned int uintptr_t; #endif Есть предложение заменить intptr_t на uintptr_t. Rgds, Anton