NetBSD Problem Report #46230

From www@NetBSD.org  Tue Mar 20 10:28:20 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 0779063DF07
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 20 Mar 2012 10:28:20 +0000 (UTC)
Message-Id: <20120320102819.5D1C263D96B@www.NetBSD.org>
Date: Tue, 20 Mar 2012 10:28:19 +0000 (UTC)
From: kamelderouiche@yahoo.com
Reply-To: kamelderouiche@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: [Failed Compilation] multimedia/vlc2-2.0.0nb1
X-Send-Pr-Version: www-1.0

>Number:         46230
>Category:       pkg
>Synopsis:       [Failed Compilation] multimedia/vlc2-2.0.0nb1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 20 10:30:00 +0000 2012
>Last-Modified:  Fri Mar 23 13:50:02 +0000 2012
>Originator:     Derouiche
>Release:        NetBSD 5.1.2
>Organization:
Natei System
>Environment:
NetBSD ToraboraDevServer 5.1.2 NetBSD 5.1.2 (Handkouch) #0: Thu Feb  2 17:22:10 UTC 2012  builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
repeat 
$ make install
>How-To-Repeat:
/usr/pkg/bin/gmake  all-recursive
gmake[3]: Entering directory `/usr/pkgsrc/multimedia/vlc2/work/vlc-2.0.0/src'
Making all in .
gmake[4]: Entering directory `/usr/pkgsrc/multimedia/vlc2/work/vlc-2.0.0/src'
  CC     libvlc.lo
In file included from libvlc.c:69:
../include/vlc_aout.h: In function 'aout_FormatNbChannels':
../include/vlc_aout.h:235: error: implicit declaration of function 'popcount'
gmake[4]: *** [libvlc.lo] Error 1
gmake[4]: Leaving directory `/usr/pkgsrc/multimedia/vlc2/work/vlc-2.0.0/src'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/pkgsrc/multimedia/vlc2/work/vlc-2.0.0/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/pkgsrc/multimedia/vlc2/work/vlc-2.0.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/multimedia/vlc2/work/vlc-2.0.0'
gmake: *** [all] Error 2
*** Error code 2

Stop.

>Fix:
n/a

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46230 CVS commit: pkgsrc/multimedia/vlc2
Date: Tue, 20 Mar 2012 12:06:17 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Tue Mar 20 12:06:17 UTC 2012

 Modified Files:
 	pkgsrc/multimedia/vlc2: distinfo
 	pkgsrc/multimedia/vlc2/patches: patch-av

 Log Message:
 NetBSD<5.99.16 does not have popcount(3).
 fixes PR 46230.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/multimedia/vlc2/distinfo
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/multimedia/vlc2/patches/patch-av

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/46230 CVS commit: pkgsrc/multimedia/vlc2
Date: Tue, 20 Mar 2012 21:20:01 +0900

 On Tue, 20 Mar 2012 21:10:07 +0900, OBATA Akio <obache@netbsd.org> wrote:

 >  Log Message:
 >  NetBSD<5.99.16 does not have popcount(3).
 >  fixes PR 46230.

 Not fixed completely yet, because another errors will rise.

From: kamel derouiche <kamelderouiche@yahoo.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/46230 CVS commit: pkgsrc/multimedia/vlc2
Date: Fri, 23 Mar 2012 04:21:56 -0700 (PDT)

 ---123459156-1595626869-1332501716=:83932
 Content-Type: text/plain; charset=iso-8859-1
 Content-Transfer-Encoding: quoted-printable







 From: OBATA Akio <obache@netbsd.org>
 Subject: Re: PR/46230 CVS commit: pkgsrc/multimedia/vlc2
 To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,=
  kamelderouiche@yahoo.com
 Date: Tuesday, March 20, 2012, 5:20 AM

 The following reply was made to PR pkg/46230; it has been noted by GNATS.

 From: "OBATA Akio" <obache@netbsd.org>
 To: gnats-bugs@netbsd.org
 Cc:=20
 Subject: Re: PR/46230 CVS commit: pkgsrc/multimedia/vlc2
 Date: Tue, 20 Mar 2012 21:20:01 +0900

  On Tue, 20 Mar 2012 21:10:07 +0900, OBATA Akio <obache@netbsd.org> wrote:
 =20
  >=A0 Log Message:
  >=A0 NetBSD<5.99.16 does not have popcount(3).
  >=A0 fixes PR 46230.
 =20
  Not fixed completely yet, because another errors will rise.
 =20
 similar problem with vlc-2.0.1
 =A0
 GEN=A0=A0=A0 ../include/vlc_about.h
 /usr/pkg/bin/gmake=A0 all-recursive
 gmake[3]: Entering directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'
 Making all in .
 gmake[4]: Entering directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'
 =A0 CC=A0=A0=A0=A0 libvlc.lo
 =A0 CC=A0=A0=A0=A0 libvlc-module.lo
 =A0 CC=A0=A0=A0=A0 missing.lo
 =A0 CC=A0=A0=A0=A0 revision.lo
 =A0 CC=A0=A0=A0=A0 version.lo
 =A0 CC=A0=A0=A0=A0 misc/threads.lo
 =A0 CC=A0=A0=A0=A0 misc/stats.lo
 =A0 CC=A0=A0=A0=A0 misc/cpu.lo
 misc/cpu.c:93: error: expected '=3D', ',', ';', 'asm' or '__attribute__' be=
 fore 'static'
 misc/cpu.c:99: error: expected '=3D', ',', ';', 'asm' or '__attribute__' be=
 fore 'static'
 misc/cpu.c:105: error: expected '=3D', ',', ';', 'asm' or '__attribute__' b=
 efore 'static'
 misc/cpu.c:129: error: expected '=3D', ',', ';', 'asm' or '__attribute__' b=
 efore 'static'
 misc/cpu.c: In function 'vlc_CPU_init':
 misc/cpu.c:230: error: 'SSE_test' undeclared (first use in this function)
 misc/cpu.c:230: error: (Each undeclared identifier is reported only once
 misc/cpu.c:230: error: for each function it appears in.)
 misc/cpu.c:239: error: 'SSE2_test' undeclared (first use in this function)
 misc/cpu.c:246: error: 'SSE3_test' undeclared (first use in this function)
 misc/cpu.c:283: error: 'ThreeD_Now_test' undeclared (first use in this func=
 tion)
 gmake[4]: *** [misc/cpu.lo] Error 1
 gmake[4]: *** Waiting for unfinished jobs....
 gmake[4]: Leaving directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'
 gmake[3]: *** [all-recursive] Error 1
 gmake[3]: Leaving directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'
 gmake[2]: *** [all] Error 2
 gmake[2]: Leaving directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1'
 gmake: *** [all] Error 2
 *** Error code 2

 Stop.
 bmake: stopped in /usr/pkgsrc/multimedia/vlc2
 *** Error code 1

 Stop.



 ---123459156-1595626869-1332501716=:83932
 Content-Type: text/html; charset=iso-8859-1
 Content-Transfer-Encoding: quoted-printable

 <table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
 top" style=3D"font: inherit;"><br><br><br><br><br><blockquote style=3D"bord=
 er-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">=
 <br>From: OBATA Akio &lt;obache@netbsd.org&gt;<br>Subject: Re: PR/46230 CVS=
  commit: pkgsrc/multimedia/vlc2<br>To: pkg-manager@netbsd.org, gnats-admin@=
 netbsd.org, pkgsrc-bugs@netbsd.org, kamelderouiche@yahoo.com<br>Date: Tuesd=
 ay, March 20, 2012, 5:20 AM<br><br><div class=3D"plainMail">The following r=
 eply was made to PR pkg/46230; it has been noted by GNATS.<br><br>From: "OB=
 ATA Akio" &lt;<a ymailto=3D"mailto:obache@netbsd.org" href=3D"/mc/compose?t=
 o=3Dobache@netbsd.org">obache@netbsd.org</a>&gt;<br>To: <a ymailto=3D"mailt=
 o:gnats-bugs@netbsd.org" href=3D"/mc/compose?to=3Dgnats-bugs@netbsd.org">gn=
 ats-bugs@netbsd.org</a><br>Cc: <br>Subject: Re: PR/46230 CVS commit: pkgsrc=
 /multimedia/vlc2<br>Date: Tue, 20 Mar 2012 21:20:01 +0900<br><br> On Tue, 2=
 0 Mar 2012 21:10:07
  +0900, OBATA Akio &lt;<a ymailto=3D"mailto:obache@netbsd.org" href=3D"/mc/=
 compose?to=3Dobache@netbsd.org">obache@netbsd.org</a>&gt; wrote:<br> <br> &=
 gt;&nbsp; Log Message:<br> &gt;&nbsp; NetBSD&lt;5.99.16 does not have popco=
 unt(3).<br> &gt;&nbsp; fixes PR 46230.<br> <br> Not fixed completely yet, b=
 ecause another errors will rise.<br> <br>similar problem with vlc-2.0.1<br>=
 &nbsp;<br>GEN&nbsp;&nbsp;&nbsp; ../include/vlc_about.h<br>/usr/pkg/bin/gmak=
 e&nbsp; all-recursive<br>gmake[3]: Entering directory `/usr/work/multimedia=
 /vlc2/work/vlc-2.0.1/src'<br>Making all in .<br>gmake[4]: Entering director=
 y `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'<br>&nbsp; CC&nbsp;&nbsp;&n=
 bsp;&nbsp; libvlc.lo<br>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp; libvlc-module.lo<=
 br>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp; missing.lo<br>&nbsp; CC&nbsp;&nbsp;&nb=
 sp;&nbsp; revision.lo<br>&nbsp; CC&nbsp;&nbsp;&nbsp;&nbsp; version.lo<br>&n=
 bsp; CC&nbsp;&nbsp;&nbsp;&nbsp; misc/threads.lo<br>&nbsp;
  CC&nbsp;&nbsp;&nbsp;&nbsp; misc/stats.lo<br>&nbsp; CC&nbsp;&nbsp;&nbsp;&nb=
 sp; misc/cpu.lo<br>misc/cpu.c:93: error: expected '=3D', ',', ';', 'asm' or=
  '__attribute__' before 'static'<br>misc/cpu.c:99: error: expected '=3D', '=
 ,', ';', 'asm' or '__attribute__' before 'static'<br>misc/cpu.c:105: error:=
  expected '=3D', ',', ';', 'asm' or '__attribute__' before 'static'<br>misc=
 /cpu.c:129: error: expected '=3D', ',', ';', 'asm' or '__attribute__' befor=
 e 'static'<br>misc/cpu.c: In function 'vlc_CPU_init':<br>misc/cpu.c:230: er=
 ror: 'SSE_test' undeclared (first use in this function)<br>misc/cpu.c:230: =
 error: (Each undeclared identifier is reported only once<br>misc/cpu.c:230:=
  error: for each function it appears in.)<br>misc/cpu.c:239: error: 'SSE2_t=
 est' undeclared (first use in this function)<br>misc/cpu.c:246: error: 'SSE=
 3_test' undeclared (first use in this function)<br>misc/cpu.c:283: error: '=
 ThreeD_Now_test' undeclared (first use in this function)<br>gmake[4]: ***
  [misc/cpu.lo] Error 1<br>gmake[4]: *** Waiting for unfinished jobs....<br>=
 gmake[4]: Leaving directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/src'<=
 br>gmake[3]: *** [all-recursive] Error 1<br>gmake[3]: Leaving directory `/u=
 sr/work/multimedia/vlc2/work/vlc-2.0.1/src'<br>gmake[2]: *** [all] Error 2<=
 br>gmake[2]: Leaving directory `/usr/work/multimedia/vlc2/work/vlc-2.0.1/sr=
 c'<br>gmake[1]: *** [all-recursive] Error 1<br>gmake[1]: Leaving directory =
 `/usr/work/multimedia/vlc2/work/vlc-2.0.1'<br>gmake: *** [all] Error 2<br>*=
 ** Error code 2<br><br>Stop.<br>bmake: stopped in /usr/pkgsrc/multimedia/vl=
 c2<br>*** Error code 1<br><br>Stop.<br><br><br></div></blockquote></td></tr=
 ></table>
 ---123459156-1595626869-1332501716=:83932--

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46230: [Failed Compilation] multimedia/vlc2-2.0.0nb1
Date: Fri, 23 Mar 2012 22:48:59 +0900

 This issues will be happened as following reason:
   1. configure is checking whether mmx/sse/sse2 are available with -mmmx/-msse/-msse2 CFLAGS,
      but not set to CFLAGS to build.
   2. VLC_MMX/VLC_SSE will not be defined as proper variable unless __MMX__/__SSE__ are
      defined or GCC_VERSION>=4.4 (in include/vlc_cpu.h).

 Then without code changes, either of following will resolve this issue:
   1. configure with --disable-mmx --disable-sse
   2. add proper cpu tune flags to CFLAGS


 1. is regression for users setting proper cpu tune flags in own CFLAGS.
 2. may kill to use binary package on machines lacking such features.

 -- 
 OBATA Akio / obache@NetBSD.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.