NetBSD Problem Report #47199

From  Fri Nov 16 12:34:35 2012
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id A919263E845
	for <>; Fri, 16 Nov 2012 12:34:34 +0000 (UTC)
Message-Id: <>
Date: Fri, 16 Nov 2012 12:34:33 +0000 (UTC)
Subject: Libffi 3.0.11 fails to compile on NetBSD 5.1.2
X-Send-Pr-Version: www-1.0

>Number:         47199
>Category:       pkg
>Synopsis:       Libffi 3.0.11 fails to compile on NetBSD 5.1.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 16 12:35:01 +0000 2012
>Closed-Date:    Tue Feb 05 23:47:40 +0000 2013
>Last-Modified:  Tue Feb 05 23:47:40 +0000 2013
>Originator:     Glyn Astill
>Release:        5.1.2 cobalt generic
see tickets
NetBSD 5.1.2 NetBSD 5.1.2 (GENERIC) #0: Thu Feb  2 13:33:26 UTC 2012 cobalt
Libffi 3.0.11 from pkgsrc fails to compile on cobalt qube2 in ffitarget.h with the error;

         -- something is very wrong --

The issue appears to be due to _MIPS_SIM not being defined.  I defined it as 32 bit just before the error in ffitarget.h to get around for now as below, however I'm not sure of the implications of this not being set to begin with.

         #ifndef _MIPS_SIM
         #  define _MIPS_SIM _ABIO32

Cobalt qube on 5.1.2 using restorecd
Get pkgsrc 2012Q3, (attempted to update via cvs but no updates)
Make install libffi from pkgsrc
Add the following in ffitarget.h:

         #ifndef _MIPS_SIM
         #  define _MIPS_SIM _ABIO32

Just before 

         #if !defined(_MIPS_SIM)
         # error -- something is very wrong --



Responsible-Changed-From-To: port-cobalt-maintainer->pkg-manager
Responsible-Changed-When: Sun, 18 Nov 2012 14:09:48 +0000
pkgsrc problem.

From: "Ryo ONODERA" <>
Subject: PR/47199 CVS commit: pkgsrc/devel/libffi
Date: Tue, 18 Dec 2012 12:33:07 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Tue Dec 18 12:33:07 UTC 2012

 Modified Files:
 	pkgsrc/devel/libffi: distinfo
 	pkgsrc/devel/libffi/patches: patch-ae

 Log Message:
 Fix PR/47199

 Restore _MIPS_SIM workaround, removed during updating to rev. 1.4 of patch-ae.
 Functionality is not tested yet.

 To generate a diff of this commit:
 cvs rdiff -u -r1.24 -r1.25 pkgsrc/devel/libffi/distinfo
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/libffi/patches/patch-ae

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-When: Tue, 18 Dec 2012 12:36:41 +0000
Please test latest libffi.
Thank you.

From: Glyn Astill <>
To: "" <>
Subject: Re: port-cobalt/47199
Date: Tue, 5 Feb 2013 11:35:28 +0000 (GMT)

 =0A=0A=0A=0A----- Original Message -----=0A> From: Glyn Astill <glynastill@=>=0A> Pkgsrc compile tested and working.=0A> 

From: Glyn Astill <>
To: "" <>
Subject: RE: pkg/47199
Date: Tue, 5 Feb 2013 11:34:09 +0000 (GMT)

 Pkgsrc compile tested and working.=0A

State-Changed-From-To: feedback->closed
State-Changed-When: Tue, 05 Feb 2013 23:47:40 +0000
Reportedly fixed. Thank you!


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.