Subject: pkg/23280: mplayer build problem with gcc 3.3.2-nb1
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 10/26/2003 22:41:06
>Number: 23280
>Category: pkg
>Synopsis: mplayer build problem with gcc 3.3.2-nb1
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 26 13:42:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 1.6ZE
>Organization:
>Environment:
System: NetBSD firefly.localdomain 1.6ZE NetBSD 1.6ZE (FIREFLY) #254: Sun Oct 26 13:09:38 JST 2003 hiratuka@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY i386
Architecture: i386
Machine: i386
>Description:
With gcc 3.3.2-nb1, configure script cannot detect version.
===> Patching for mplayer-1.0rc1nb1
===> Applying pkgsrc patches for mplayer-1.0rc1nb1
===> Overriding tools for mplayer-1.0rc1nb1
===> Buildlinking for mplayer-1.0rc1nb1
===> Configuring for mplayer-1.0rc1nb1
Detected operating system: NetBSD
Detected host architecture: i386
Checking for cc version ... 3.3.2-nb1, bad
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 3.3.2-nb1, bad
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use. Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!
Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder). If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!
GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !
*** For details please read DOCS/en/users_against_developers.html ***
Error: Bad gcc version
Check "configure.log" if you do not understand why it failed.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/graphics/mplayer
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/graphics/mplayer
#
>How-To-Repeat:
cd ${PKGSRCDIR}/graphics/mplayer
make
>Fix:
This is patch.
--- configure.orig 2003-09-01 19:51:11.000000000 +0900
+++ configure 2003-10-26 22:25:52.000000000 +0900
@@ -473,7 +473,7 @@
for _cc in "$_cc" gcc-3.1 gcc3 gcc-3.0 cc ; do
echocheck "$_cc version"
cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1`
- cc_version=`( $_cc -dumpversion ) 2>&1`
+ cc_version=`( $_cc -dumpversion ) 2>&1 | sed -E 's/-nb[0-9]+$//'`
if test "$?" -gt 0; then
cc_version="not found"
fi
>Release-Note:
>Audit-Trail:
>Unformatted: