Bug 47240 - [patch] avifile WITH_AC3PASSTHROUGH=yes build failure
Summary: [patch] avifile WITH_AC3PASSTHROUGH=yes build failure
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-20 04:40 UTC by Chris BeHanna
Modified: 2003-07-03 14:32 UTC (History)
0 users

See Also:


Attachments
file.diff (503 bytes, patch)
2003-01-20 04:40 UTC, Chris BeHanna
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris BeHanna 2003-01-20 04:40:02 UTC
When built with the option WITH_AC3PASSTHROUGH=yes, compilation of the
multimedia/avifile port dies as follows:

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.

Fix: The following patch fixes the problem (I have it in my files/ directory as
patch-plugins::libac3pass::ac3-iec958.c):
How-To-Repeat: cd /usr/ports/multimedia/avifile
make WITH_AC3PASSTHROUGH=yes
Comment 1 Daichi GOTO freebsd_committer freebsd_triage 2003-07-03 14:32:22 UTC
State Changed
From-To: open->closed

Committed. Thanks!