Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2003 23:59:49 -0500 (EST)
From:      Chris BeHanna <chris@pennasoft.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/47241: [patch] multimedia/avifile build failure WITH_AC3PASSTHROUGH
Message-ID:  <200301200459.h0K4xn0d070297@topperwein.pennasoft.com>

next in thread | raw e-mail | index | archive | help

>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 <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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301200459.h0K4xn0d070297>