From behanna@topperwein.pennasoft.com  Sun Jan 19 21:03:00 2003
Return-Path: <behanna@topperwein.pennasoft.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C1F7537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Jan 2003 21:03:00 -0800 (PST)
Received: from mail-1.zoominternet.net (mail-1.zoominternet.net [63.67.120.5])
	by mx1.FreeBSD.org (Postfix) with SMTP id D517B43F1E
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Jan 2003 21:02:59 -0800 (PST)
	(envelope-from behanna@topperwein.pennasoft.com)
Received: (qmail 13328 invoked from network); 20 Jan 2003 05:02:58 -0000
Received: from unknown (HELO topperwein.pennasoft.com) ([24.154.51.184]) (envelope-sender <behanna@topperwein.pennasoft.com>)
          by mail-1.zoominternet.net (qmail-ldap-1.03) with SMTP
          for <FreeBSD-gnats-submit@freebsd.org>; 20 Jan 2003 05:02:57 -0000
Received: from topperwein.pennasoft.com (localhost [127.0.0.1])
	by topperwein.pennasoft.com (8.12.6/8.12.6) with ESMTP id h0K536Rc070426
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Jan 2003 00:03:06 -0500 (EST)
	(envelope-from behanna@topperwein.pennasoft.com)
Received: (from behanna@localhost)
	by topperwein.pennasoft.com (8.12.6/8.12.6/Submit) id h0K531UY070425;
	Mon, 20 Jan 2003 00:03:01 -0500 (EST)
Message-Id: <200301200503.h0K531UY070425@topperwein.pennasoft.com>
Date: Mon, 20 Jan 2003 00:03:01 -0500 (EST)
From: Chris BeHanna <behanna@zbzoom.net>
Reply-To: Chris BeHanna <behanna@zbzoom.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] multimedia/avifile build failure WITH_AC3PASSTHROUGH
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47242
>Category:       ports
>Synopsis:       [patch] multimedia/avifile build failure WITH_AC3PASSTHROUGH
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 19 21:10:03 PST 2003
>Closed-Date:    Mon Jan 20 10:15:28 PST 2003
>Last-Modified:  Mon Jan 20 10:15:28 PST 2003
>Originator:     Chris BeHanna
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Western Pennsylvania Pizza Disposal Unit
>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 <stdlib.h>
 #include <unistd.h>
 #include <string.h>
-#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:

From: Chris BeHanna <behanna@zbzoom.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/47242: [patch] multimedia/avifile build failure WITH_AC3PASSTHROUGH
Date: Mon, 20 Jan 2003 02:42:34 -0500

 This bug is a duplicate of pr ports/47240.
State-Changed-From-To: open->closed 
State-Changed-By: naddy 
State-Changed-When: Mon Jan 20 10:15:12 PST 2003 
State-Changed-Why:  
Duplicate of ports/47240. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47242 
>Unformatted:
