ports/82691: [patch] comms/libticables: fix build failure on non-i386
Tijl Coosemans
tijl at ulyssis.org
Mon Jun 27 10:10:17 UTC 2005
>Number: 82691
>Category: ports
>Synopsis: [patch] comms/libticables: fix build failure on non-i386
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Jun 27 10:10:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Tijl Coosemans
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
>Description:
Build fails on non-i386 archs due to i386 specific function calls.
http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.6.2005060522/libticables-3.9.2.log
>How-To-Repeat:
>Fix:
Add the attached file as comms/libticables/files/patch-src-bsd-bsd_ioports.c
--- patch-src-bsd-bsd_ioports.c begins here ---
--- src/bsd/bsd_ioports.c.orig Mon Jun 27 10:55:22 2005
+++ src/bsd/bsd_ioports.c Mon Jun 27 10:57:24 2005
@@ -34,8 +34,10 @@
#include <sys/ioctl.h>
#include <fcntl.h>
+#ifdef __I386__
#include <machine/sysarch.h>
#include <machine/cpufunc.h>
+#endif
#include "gettext.h"
@@ -55,6 +57,7 @@
/* I/O thru assembly code */
+#ifdef __I386__
static int bsd_asm_read_io(unsigned int addr)
{
return inb(addr);
@@ -64,6 +67,7 @@
{
outb(addr, data);
}
+#endif
/* I/O thru ioctl() calls */
--- patch-src-bsd-bsd_ioports.c ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list