From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 17 14:00:17 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33E6810656EA for ; Tue, 17 Mar 2009 14:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6C12E8FC26 for ; Tue, 17 Mar 2009 14:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n2HE0CiL066513 for ; Tue, 17 Mar 2009 14:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2HE0CZx066512; Tue, 17 Mar 2009 14:00:12 GMT (envelope-from gnats) Resent-Date: Tue, 17 Mar 2009 14:00:12 GMT Resent-Message-Id: <200903171400.n2HE0CZx066512@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Jose M. Alcaide" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73FCA106566C for ; Tue, 17 Mar 2009 13:50:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 479DF8FC17 for ; Tue, 17 Mar 2009 13:50:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2HDobpS056187 for ; Tue, 17 Mar 2009 13:50:37 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n2HDob3B056186; Tue, 17 Mar 2009 13:50:37 GMT (envelope-from nobody) Message-Id: <200903171350.n2HDob3B056186@www.freebsd.org> Date: Tue, 17 Mar 2009 13:50:37 GMT From: "Jose M. Alcaide" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/132728: patch to build port devel/asl on amd64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Mar 2009 14:00:20 -0000 >Number: 132728 >Category: ports >Synopsis: patch to build port devel/asl on amd64 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 17 14:00:12 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Jose M. Alcaide >Release: 7.1-RELEASE >Organization: UPV-EHU >Environment: FreeBSD lcpd10.xa.lc.ehu.es 7.1-RELEASE FreeBSD 7.1-RELEASE #1: Mon Mar 16 10:44:12 CET 2009 toor@lcpd10.xa.lc.ehu.es:/usr/obj/usr/src/sys/LDISERVER amd64 >Description: Port devel/asl does not build on amd64. This simple patch adds support for FreeBSD/amd64. >How-To-Repeat: >Fix: Substitute devel/asl/files/patch-ad with the attached file, and then adjust the Makefile accordingly to enable building on amd64. Patch attached with submission follows: --- sysdefs.h.orig 1998-11-03 23:12:15.000000000 +0100 +++ sysdefs.h 2009-03-17 14:25:05.000000000 +0100 @@ -524,6 +524,26 @@ #define LOCALE_NLS #endif +#ifdef __FreeBSD__ +#define ARCHSYSNAME "unknown-freebsd" +#define DEFSMADE +#define OPENRDMODE "r" +#define OPENWRMODE "w" +#define OPENUPMODE "r+" +#define IEEEFLOAT +typedef signed char Integ8; +typedef unsigned char Card8; +typedef signed short Integ16; +typedef unsigned short Card16; +#define HAS16 +typedef signed int Integ32; +typedef unsigned int Card32; +typedef signed long Integ64; +typedef unsigned long Card64; +#define HAS64 +#define NO_NLS +#endif + #endif /* __alpha */ /*===========================================================================*/ @@ -725,6 +745,38 @@ #endif /* __i386 */ /*===========================================================================*/ +/* AMD opteron/athlon64/k8 platforms */ + +#ifdef __amd64__ + +#define ARCHPRNAME "amd64" + +/*---------------------------------------------------------------------------*/ +/* amd64 with FreeBSD and GCC: */ + +#ifdef __FreeBSD__ +#define ARCHSYSNAME "unknown-freebsd" +#define DEFSMADE +#define OPENRDMODE "r" +#define OPENWRMODE "w" +#define OPENUPMODE "r+" +#define IEEEFLOAT +typedef signed char Integ8; +typedef unsigned char Card8; +typedef signed short Integ16; +typedef unsigned short Card16; +#define HAS16 +typedef signed int Integ32; +typedef unsigned int Card32; +typedef signed long Integ64; +typedef unsigned long Card64; +#define HAS64 +#define LOCALE_NLS +#endif + +#endif /* __amd64__ */ + +/*===========================================================================*/ /* Misc... */ /*---------------------------------------------------------------------------*/ >Release-Note: >Audit-Trail: >Unformatted: