From owner-freebsd-ports Wed Oct 9 17:40: 7 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CE4137B401 for ; Wed, 9 Oct 2002 17:40:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3725443E3B for ; Wed, 9 Oct 2002 17:40:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9A0e4Co026598 for ; Wed, 9 Oct 2002 17:40:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9A0e4gx026596; Wed, 9 Oct 2002 17:40:04 -0700 (PDT) Date: Wed, 9 Oct 2002 17:40:04 -0700 (PDT) Message-Id: <200210100040.g9A0e4gx026596@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Jon Noack Subject: Re: ports/43877: Ogle port broken on STABLE Reply-To: Jon Noack Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/43877; it has been noted by GNATS. From: Jon Noack To: Mario Sergio Fujikawa Ferreira Cc: Jose Marques , freebsd-gnats-submit@FreeBSD.ORG, Kim Scarborough , mbr@FreeBSD.org, eivind@FreeBSD.org Subject: Re: ports/43877: Ogle port broken on STABLE Date: Wed, 09 Oct 2002 19:38:09 -0500 I am running 4.7-RC: $ uname -a FreeBSD optimator.dnsalias.org 4.7-RC FreeBSD 4.7-RC #6: Fri Oct 4 03:48:44 CDT 2002 noackjr@optimator.dnsalias.org:/usr/obj/usr/src/sys/OPTIMATOR i386 I have : $ find /usr/src /usr/include /usr/X11R6/include /usr/local/include/ -name endian.h /usr/src/sys/alpha/include/endian.h /usr/src/sys/i386/boot/dosboot/endian.h /usr/src/sys/i386/include/endian.h /usr/src/sys/netatalk/endian.h /usr/src/sys/sys/endian.h /usr/include/machine/endian.h /usr/include/netatalk/endian.h /usr/include/sys/endian.h After running a 'make -DWITH_OPTIMIZED_BYTESWAP patch' with the latest version of the port (after a cvsup), I made the following changes to ogle_endian.h to make it compile: $ diff -u ogle_endian.h.orig ogle_endian.h --- ogle_endian.h.orig Wed Oct 9 19:27:33 2002 +++ ogle_endian.h Wed Oct 9 19:25:11 2002 @@ -36,17 +36,6 @@ #elif defined(HAVE_SYS_BSWAP_H) # include # define FROM_BE_32(x) (bswap32(x)) -#elif defined(HAVE_SYS_ENDIAN_H) -# include -#if defined(__FreeBSD__) -#if __FreeBSD_version >= 500000 -# define FROM_BE_32(x) (bswap32(x)) -#else -# define FROM_BE_32(x) (swap32(x)) -#endif -#else -# define FROM_BE_32(x) (swap32(x)) -#endif #elif defined(__FreeBSD__) # define _KERNEL # define I486_CPU /* Will crash unless 486+ */ Haven't tested it yet, but hopefully all is well... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message