Date: Tue, 17 Mar 2009 13:50:37 GMT From: "Jose M. Alcaide" <jose@we.lc.ehu.es> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/132728: patch to build port devel/asl on amd64 Message-ID: <200903171350.n2HDob3B056186@www.freebsd.org> Resent-Message-ID: <200903171400.n2HE0CZx066512@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903171350.n2HDob3B056186>