From ahze@blueheron.ahze.net  Sat Oct 16 23:19:38 2004
Return-Path: <ahze@blueheron.ahze.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D41D616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Oct 2004 23:19:38 +0000 (GMT)
Received: from imf18aec.mail.bellsouth.net (imf18aec.mail.bellsouth.net [205.152.59.66])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 491CA43D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 16 Oct 2004 23:19:36 +0000 (GMT)
	(envelope-from ahze@blueheron.ahze.net)
Received: from blueheron.ahze.net ([68.209.163.3])
          by imf18aec.mail.bellsouth.net
          (InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with ESMTP
          id <20041016231935.EOXQ2494.imf18aec.mail.bellsouth.net@blueheron.ahze.net>;
          Sat, 16 Oct 2004 19:19:35 -0400
Received: (from root@localhost)
	by blueheron.ahze.net (8.13.1/8.13.1/Submit) id i9GNJYfE066651;
	Sat, 16 Oct 2004 19:19:34 -0400 (EDT)
	(envelope-from ahze)
Message-Id: <200410162319.i9GNJYfE066651@blueheron.ahze.net>
Date: Sat, 16 Oct 2004 19:19:34 -0400 (EDT)
From: Michael Johnson <ahze@ahze.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: hendrik@scholz.net
Subject: [PATCH] multimedia/transcode: disable WITH_OPTIMIZED_CFLAGS when WITH_FFMPEG is used 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72773
>Category:       ports
>Synopsis:       [PATCH] multimedia/transcode: disable WITH_OPTIMIZED_CFLAGS when WITH_FFMPEG is used
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 16 23:20:02 GMT 2004
>Closed-Date:    Sun Oct 24 04:36:48 GMT 2004
>Last-Modified:  Sun Oct 24 04:36:48 GMT 2004
>Originator:     Michael Johnson
>Release:        FreeBSD 5.3-BETA6 i386
>Organization:
>Environment:
System: FreeBSD blueheron.ahze.net 5.3-BETA6 FreeBSD 5.3-BETA6 #67: Fri Oct  1 15:03:41 EDT
>Description:
- disable WITH_OPTIMIZED_CFLAGS when WITH_FFMPEG is used

Port maintainer (hendrik@scholz.net) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
(with a 5.x box with gcc3.4)
cd ports/multimedia/transcode;
make WITH_FFMPEG=yes WITH_OPTIMIZED_CFLAGS=yes 

/usr/local/libexec/ccache/cc -D_REENTRANT -funroll-loops -ffast-math -Wall -DMOD_PATH=\"/usr/local/lib/transcode\" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -O3 -I/compat/linux/usr/include/divx -g -L/usr/local/lib -L/usr/X11R6/lib -o tcdecode tcdecode.o decode_ac3.o decode_mpeg2.o decode_yuv.o fileinfo.o ioaux.o decode_dv.o decode_mp3.o mpg123.o decode_a52.o decode_af6.o scan_dv.o decode_lavc.o decode_xvid.o decode_ogg.o decode_mov.o decode_lzo.o -L../ffmpeg/libavcodec -ltcavcodec -L/usr/local/lib/lib -lmp3lame -lm -L../libac3 -lac3_tc -L../libmpeg2 -lmpeg2cvs -L../libvo -lvout -L/usr/lib -ldv -pthread -L/usr/local/lib -lglib12 -lm -lvorbisfile -L/usr/lib -ltheora -logg -lm -L/usr/lib -lvorbis -lm -L/usr/lib -logg -lm -L/usr/lib -llzo -pthread -L/usr/local/lib -lglib12 -lm -lm -pthread 
../ffmpeg/libavcodec/libtcavcodec.a(dsputil_mmx.o)(.text+0x753e): In function `put_qpel8_mc01_3dnow':
i386/dsputil_mmx.c:1710: undefined reference to `ff_pw_20'
../ffmpeg/libavcodec/libtcavcodec.a(dsputil_mmx.o)(.text+0x7569):i386/dsputil_mmx.c:1710: undefined reference to `ff_pw_3'
../ffmpeg/libavcodec/libtcavcodec.a(dsputil_mmx.o)(.text+0x7587):i386/dsputil_mmx.c:1710: undefined reference to `ff_pw_20'
../ffmpeg/libavcodec/libtcavcodec.a(dsputil_mmx.o)(.text+0x75b1):i386/dsputil_mmx.c:1710: undefined reference to `ff_pw_3'

>Fix:

--- transcode-0.6.12_2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/transcode/Makefile,v
retrieving revision 1.44
diff -u -r1.44 Makefile
--- Makefile	11 Oct 2004 23:12:03 -0000	1.44
+++ Makefile	16 Oct 2004 23:02:02 -0000
@@ -339,7 +339,7 @@
 	@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \
 		-e 's|<stdint.h>|<inttypes.h>|'
 .endif
-.if !defined(WITH_OPTIMIZED_CFLAGS)
+.if !defined(WITH_OPTIMIZED_CFLAGS) || defined(WITH_FFMPEG)
 	@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \
 		-e 's|-O[236]|${CFLAGS}|'
 .endif
--- transcode-0.6.12_2.patch ends here ---

>Release-Note:
>Audit-Trail:

From: Michael Johnson <ahze@ahze.net>
To: michael johnson <ahze@ahze.net>, freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/72773: [PATCH] multimedia/transcode: disable WITH_OPTIMIZED_CFLAGS when WITH_FFMPEG is used
Date: Sat, 23 Oct 2004 23:52:39 -0400

 Please close this pr
 
 after discussing this with hendrik@scholz.net
 we determined  that this is such a rare case it doesn't need to be
 committed.
 
 Michael
 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Oct 24 04:36:35 GMT 2004 
State-Changed-Why:  
Closed at submitter's request. 

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