From owner-freebsd-ports-bugs Sun Jan 19 21: 0:24 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7273D37B401 for ; Sun, 19 Jan 2003 21:00:22 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5140243F6D for ; Sun, 19 Jan 2003 21:00:21 -0800 (PST) (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 h0K50LNS088180 for ; Sun, 19 Jan 2003 21:00:21 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0K50LPW088179; Sun, 19 Jan 2003 21:00:21 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D5E937B401 for ; Sun, 19 Jan 2003 20:59:47 -0800 (PST) Received: from topperwein.pennasoft.com (acs-24-154-51-184.zoominternet.net [24.154.51.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2131A43F75 for ; Sun, 19 Jan 2003 20:59:46 -0800 (PST) (envelope-from behanna@topperwein.pennasoft.com) Received: from topperwein.pennasoft.com (localhost [127.0.0.1]) by topperwein.pennasoft.com (8.12.6/8.12.6) with ESMTP id h0K4xs6c070298 for ; Sun, 19 Jan 2003 23:59:54 -0500 (EST) (envelope-from behanna@topperwein.pennasoft.com) Received: (from behanna@localhost) by topperwein.pennasoft.com (8.12.6/8.12.6/Submit) id h0K4xn0d070297; Sun, 19 Jan 2003 23:59:49 -0500 (EST) Message-Id: <200301200459.h0K4xn0d070297@topperwein.pennasoft.com> Date: Sun, 19 Jan 2003 23:59:49 -0500 (EST) From: Chris BeHanna Reply-To: Chris BeHanna To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47241: [patch] multimedia/avifile build failure WITH_AC3PASSTHROUGH Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47241 >Category: ports >Synopsis: [patch] multimedia/avifile build failure WITH_AC3PASSTHROUGH >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 19 21:00:20 PST 2003 >Closed-Date: >Last-Modified: >Originator: Chris BeHanna >Release: FreeBSD 4.7-STABLE i386 >Organization: PennaSoft Corporation >Environment: System: FreeBSD topperwein.pennasoft.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Jan 17 23:33:12 EST 2003 behanna@topperwein.pennasoft.com:/raid0/stable/raid0/stable/usr/src/sys/TOPPERWEIN i386 >Description: When compiled with the option WITH_AC3PASSTHROUGH=yes, multimedia/avifile's build dies with the following errors: Making all in plugins gmake[1]: Entering directory `/raid5/current/ports/raid5/current/ports/multimedia/avifile/work/avifile0.7-0.7.22/plugins' Making all in libac3pass gmake[2]: Entering directory `/raid5/current/ports/raid5/current/ports/multimedia/avifile/work/avifile0.7-0.7.22/plugins/libac3pass' /bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/local/include -L/usr/local/lib -Wall -Wno-unused -I../../include -O -pipe -march=pentiumpro -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -pipe -c ac3-iec958.c rm -f .libs/ac3-iec958.lo cc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/local/include -L/usr/local/lib -Wall -Wno-unused -I../../include -O -pipe -march=pentiumpro -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include -pipe -c ac3-iec958.c -fPIC -DPIC -o .libs/ac3-iec958.lo ac3-iec958.c:25: conflicting types for `swab' /usr/include/string.h:97: previous declaration of `swab' gmake[2]: *** [ac3-iec958.lo] Error 1 gmake[2]: Leaving directory `/raid5/current/ports/raid5/current/ports/multimedia/avifile/work/avifile0.7-0.7.22/plugins/libac3pass' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/raid5/current/ports/raid5/current/ports/multimedia/avifile/work/avifile0.7-0.7.22/plugins' gmake: *** [all-recursive] Error 1 *** Error code 2 Stop in /raid5/current/ports/multimedia/avifile. *** Error code 1 Stop in /raid5/current/ports/multimedia/avifile. >How-To-Repeat: cd /usr/ports/multimedia/avifile make WITH_AC3PASSTHROUGH=yes >Fix: The following patch allows the port to build (I have this as files/patch-plugins::libac3pass::ac3-iec958.c): --- plugins/libac3pass/ac3-iec958.c.orig Sun Jan 19 23:22:12 2003 +++ plugins/libac3pass/ac3-iec958.c Sun Jan 19 23:29:53 2003 @@ -21,7 +21,9 @@ #include #include #include -#ifndef __USE_XOPEN +#if !defined(__USE_XOPEN) && ((__FreeBSD_cc_version < 460001) || \ + defined(_ANSI_SOURCE) || \ + defined(_POSIX_SOURCE)) void swab(const void *from, void *to, ssize_t n); #endif #include "ac3-iec958.h" >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message