Subject: Re: pkg/36399: centericq doesnt compile on amd64 - NetBSD-Current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: OBATA Akio <obache@netbsd.org>
List: pkgsrc-bugs
Date: 05/29/2007 13:45:01
The following reply was made to PR pkg/36399; it has been noted by GNATS.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/36399: centericq doesnt compile on amd64 - NetBSD-Current
Date: Tue, 29 May 2007 22:40:33 +0900

 On Tue, 29 May 2007 20:55:00 +0900, <a-burghardt@gmx.de> wrote:
 
 >> Description:
 > chat/centericq doesn`t build on NetBSD-Current (amd64). The build exit=
 s  =
 
 > as follows:
 >
 > c++ -DPACKAGE=3D\"kkconsui\" -DVERSION=3D\"0.1\"  -I. -I.  -I../includ=
 e  =
 
 > -I../../kkstrtext -I../../kkstrtext-0.1    -O2 -I/usr/include  =
 
 > -I/usr/pkg/include -I/usr/pkg/include -c texteditor.cc
 > texteditor.cc: In static member function 'static int  =
 
 > ktool::texteditor::findint(void*, void*)':
 > texteditor.cc:1943: error: cast from 'void*' to 'int' loses precision
 
 Replacement cast '(int)' to '(intptr_t)' for 'void*' would fix this  =
 
 problem.
 But intptr_t is C99 feature, more generalized methods exist?
 
 -- =
 
 "Of course I love NetBSD":-)
 OBATA Akio / obache@NetBSD.org