From turutani@scphys.kyoto-u.ac.jp  Fri Mar  8 07:03:18 2013
Return-Path: <turutani@scphys.kyoto-u.ac.jp>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 249367BC
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Mar 2013 07:03:18 +0000 (UTC)
	(envelope-from turutani@scphys.kyoto-u.ac.jp)
Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [133.3.248.237])
	by mx1.freebsd.org (Postfix) with ESMTP id BEF5BCBF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Mar 2013 07:03:17 +0000 (UTC)
Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [127.0.0.1])
	by postfix.imss70 (Postfix) with ESMTP id E4B14100B8;
	Fri,  8 Mar 2013 16:00:21 +0900 (JST)
Received: from h120.65.226.10.32118.vlan.kuins.net (p1099-ipngn100408kyoto.kyoto.ocn.ne.jp [153.185.47.99])
	by smtp-auth.kuins.kyoto-u.ac.jp (Postfix) with ESMTP id B0E86100A9;
	Fri,  8 Mar 2013 16:00:21 +0900 (JST)
Received: from h120.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1])
	by h120.65.226.10.32118.vlan.kuins.net (8.14.4/8.14.4/20071004-1) with ESMTP id r2870H39085865;
	Fri, 8 Mar 2013 16:00:17 +0900 (JST)
	(envelope-from turutani@h120.65.226.10.32118.vlan.kuins.net)
Received: (from turutani@localhost)
	by h120.65.226.10.32118.vlan.kuins.net (8.14.4/8.14.4/Submit) id r2870H3J085864;
	Fri, 8 Mar 2013 16:00:17 +0900 (JST)
	(envelope-from turutani)
Message-Id: <201303080700.r2870H3J085864@h120.65.226.10.32118.vlan.kuins.net>
Date: Fri, 8 Mar 2013 16:00:17 +0900 (JST)
From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Reply-To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: turutani@scphys.kyoto-u.ac.jp
Subject: building audio/mpg123 fails
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         176743
>Category:       ports
>Synopsis:       building audio/mpg123 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    novel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 08 07:10:00 UTC 2013
>Closed-Date:    Tue Mar 12 17:40:52 UTC 2013
>Last-Modified:  Tue Mar 12 17:40:52 UTC 2013
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 8.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #25: Mon Jan 24 10:37:18 JST 2011 turutani@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	building audio/mpg123 fails only on i386 (not on amd86).
	
>How-To-Repeat:
	gnome-libtool: link: mv -f ".libs/libmpg123.expT" ".libs/libmpg123.exp"
	gnome-libtool: link: cc -shared  -fPIC -DPIC  .libs/compat.o .libs/parse.o .libs/frame.o .libs/format.o .libs/dct64.o .libs/equalizer.o .libs/id3.o .libs/optimize.o .libs/readers.o .libs/tabinit.o .libs/libmpg123.o .libs/index.o .libs/stringbuf.o .libs/icy.o .libs/icy2utf8.o .libs/ntom.o .libs/synth.o .libs/synth_8bit.o .libs/layer1.o .libs/layer2.o .libs/layer3.o .libs/synth_s32.o .libs/synth_real.o .libs/dct64_i386.o .libs/synth_i586.o .libs/dct64_i386.o .libs/synth_3dnow.o .libs/dct64_3dnow.o .libs/equalizer_3dnow.o .libs/dct36_3dnow.o .libs/getcpuflags.o .libs/feature.o .libs/lfs_alias.o   -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libltdl.so -lm  -O   -Wl,-soname -Wl,libmpg123.so.0 -Wl,-retain-symbols-file -Wl,.libs/libmpg123.exp -o .libs/libmpg123.so.0
	.libs/dct64_i386.o(.text+0x0): In function `INT123_dct64_i386':
	: multiple definition of `INT123_dct64_i386'
	.libs/dct64_i386.o(.text+0x0): first defined here
	*** Error code 1

	Stop in /usr/local/work/usr/ports/audio/mpg123/work/mpg123-1.15.1/src/libmpg123.
	*** Error code 1

	Stop in /usr/local/work/usr/ports/audio/mpg123/work/mpg123-1.15.1/src.
	*** Error code 1

	Stop in /usr/local/work/usr/ports/audio/mpg123/work/mpg123-1.15.1/src.
	*** Error code 1

	Stop in /usr/local/work/usr/ports/audio/mpg123/work/mpg123-1.15.1.
	*** Error code 1

	Stop in /usr/ports/audio/mpg123.

	
>Fix:
	i have no idea.
	".libs/dct64_i386.o" appears twice in the list. i think this might be
	the reason.
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->novel 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Mar 8 07:10:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176743 
State-Changed-From-To: open->feedback 
State-Changed-By: novel 
State-Changed-When: Fri Mar 8 07:47:50 UTC 2013 
State-Changed-Why:  
I wasn't able to reproduce that on -CURRENT/i386. Could 
you please tar up working directory and send it to me? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176743 

From: Oliver Fromme <olli@grabthar.secnetix.de>
To: bug-followup@FreeBSD.org, turutani@scphys.kyoto-u.ac.jp, novel@FreeBSD.org
Cc:  
Subject: Re: ports/176743: building audio/mpg123 fails
Date: Mon, 11 Mar 2013 15:55:40 +0100 (CET)

 I had exactly the same problem.  This is FreeBSD 8 on i386,
 too. The complete output from "make" and a tarball of the
 work directory can be found here:
 
 http://www.secnetix.de/olli/tmp/mpg123/
 
 As you can see, there are a lot of error messages from the
 test(1) builtin of sh(1).  Upon further inspection it turns
 out that the older version of sh(1) in FreeBSD 8 does not
 support the "==" operator in the test(1) builtin.  So I've
 created a patch that replaces it with "=" in the configure
 script.  With this patch, the port builds fine.
 
 The patch should work with all versions of FreeBSD.  You can
 find it at the same URL above.  I've also appended it below,
 although GNATS might mangle it.
 
 Best regards
    Oliver
 
 
 
 --- configure.orig	2013-02-23 21:58:36.000000000 +0100
 +++ configure	2013-03-11 15:39:07.000000000 +0100
 @@ -15895,7 +15895,7 @@
    # Is local not POSIX sh?
    for given_word in "$@"
    do
 -    if test "x$word" == "x$given_word"; then
 +    if test "x$word" = "x$given_word"; then
        return 0
      fi
    done
 @@ -16097,7 +16097,7 @@
  		# QSA and ALSA are not distinguishable in these tests, need to block
  		# each other and play with test order depending on platform.
  		alsa)
 -			if test "x$HAVE_QSA" == xyes; then
 +			if test "x$HAVE_QSA" = xyes; then
  				HAVE_ALSA=no
  			else
  
 @@ -16160,7 +16160,7 @@
  			fi # HAVE_QSA
  		;;
  		qsa)
 -			if test "x$HAVE_ALSA" == xyes; then
 +			if test "x$HAVE_ALSA" = xyes; then
  				HAVE_QSA=no
  			else
  
 
 
 
 -- 
 Oliver Fromme,  secnetix GmbH & Co. KG,  Marktplatz 29, 85567 Grafing
 Handelsregister:  Amtsgericht Muenchen, HRA 74606, Geschftsfuehrung:
 secnetix Verwaltungsgesellsch. mbH, Handelsreg.: Amtsgericht Mnchen,
 HRB 125758, Geschftsfhrer:  Maik Bachmann,  Olaf Erb,  Ralf Gebhart
 
 FreeBSD-Dienstleistungen/-Produkte + mehr: http://www.secnetix.de/bsd
 
 "The most important decision in [programming] language design
 concerns what is to be left out."  --  Niklaus Wirth

From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To: Oliver Fromme <olli@grabthar.secnetix.de>
Cc: bug-followup@FreeBSD.org, novel@FreeBSD.org
Subject: Re: ports/176743: building audio/mpg123 fails
Date: Tue, 12 Mar 2013 18:31:35 +0900

 Hi,
 
 Thank you for your reply.
 
 It seems to be fine.  Great.
 I also checked word_in_list() in configure, but I used bash instead of sh...
 
 Sincerely,
 
 Oliver Fromme <olli@grabthar.secnetix.de> wrote:
 
 > I had exactly the same problem.  This is FreeBSD 8 on i386,
 > too. The complete output from "make" and a tarball of the
 > work directory can be found here:
 > 
 > http://www.secnetix.de/olli/tmp/mpg123/
 > 
 > As you can see, there are a lot of error messages from the
 > test(1) builtin of sh(1).  Upon further inspection it turns
 > out that the older version of sh(1) in FreeBSD 8 does not
 > support the "==" operator in the test(1) builtin.  So I've
 > created a patch that replaces it with "=" in the configure
 > script.  With this patch, the port builds fine.
 > 
 > The patch should work with all versions of FreeBSD.  You can
 > find it at the same URL above.  I've also appended it below,
 > although GNATS might mangle it.
 > 
 > Best regards
 >    Oliver
 > 
 > 
 > 
 > --- configure.orig	2013-02-23 21:58:36.000000000 +0100
 > +++ configure	2013-03-11 15:39:07.000000000 +0100
 > @@ -15895,7 +15895,7 @@
 >    # Is local not POSIX sh?
 >    for given_word in "$@"
 >    do
 > -    if test "x$word" == "x$given_word"; then
 > +    if test "x$word" = "x$given_word"; then
 >        return 0
 >      fi
 >    done
 > @@ -16097,7 +16097,7 @@
 >  		# QSA and ALSA are not distinguishable in these tests, need to block
 >  		# each other and play with test order depending on platform.
 >  		alsa)
 > -			if test "x$HAVE_QSA" == xyes; then
 > +			if test "x$HAVE_QSA" = xyes; then
 >  				HAVE_ALSA=no
 >  			else
 >  
 > @@ -16160,7 +16160,7 @@
 >  			fi # HAVE_QSA
 >  		;;
 >  		qsa)
 > -			if test "x$HAVE_ALSA" == xyes; then
 > +			if test "x$HAVE_ALSA" = xyes; then
 >  				HAVE_QSA=no
 >  			else
 >  
 > 
 > 
 > 
 > -- 
 > Oliver Fromme,  secnetix GmbH & Co. KG,  Marktplatz 29, 85567 Grafing
 > Handelsregister:  Amtsgericht Muenchen, HRA 74606, Gesch$BgG(Btsfuehrung:
 > secnetix Verwaltungsgesellsch. mbH, Handelsreg.: Amtsgericht M$B!&(Bchen,
 > HRB 125758, Gesch$BgG(Btsf$B!&(Brer:  Maik Bachmann,  Olaf Erb,  Ralf Gebhart
 > 
 > FreeBSD-Dienstleistungen/-Produkte + mehr: http://www.secnetix.de/bsd
 > 
 > "The most important decision in [programming] language design
 > concerns what is to be left out."  --  Niklaus Wirth
 > 
 

From: Roman Bogorodskiy <bogorodskiy@gmail.com>
To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Cc: Oliver Fromme <olli@grabthar.secnetix.de>, bug-followup@FreeBSD.org,
	novel@FreeBSD.org
Subject: Re: ports/176743: building audio/mpg123 fails
Date: Tue, 12 Mar 2013 20:38:44 +0400

 --LQksG6bCIzRHxTLp
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
   Tsurutani Naoki wrote:
 
 > Hi,
 >=20
 > Thank you for your reply.
 >=20
 > It seems to be fine.  Great.
 > I also checked word_in_list() in configure, but I used bash instead of sh=
 =2E..
 
 I have committed the patch for configure.
 
 Thanks!
 
 Roman Bogorodskiy
 
 --LQksG6bCIzRHxTLp
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (FreeBSD)
 
 iQEcBAEBAgAGBQJRP1oSAAoJEMltX/4IwiJqgNAIALRLY3zx5C2Pj/OuXPOv9JGN
 MCqO1n13n12gNq9CTfzfZTp0Gn5XoyEUAhZrLqFS6/38tUvLuObKcQVYYJczUQSC
 MecnGFRrUJygGaBuOQXwVjRdtOxr+unJd7bg0s/1dCfnYV1WxqIFbCBjSowqwUbZ
 KFbCi6QifkWy2d8SCFM1/YyKT/4VEjOGC9x1KjXGxQZ8ODlL/OroGA578TYUZbDD
 ND102uEdawka6x7DpM3cIyM2cGegOxcAOjgYu41+kwouk99paGGoGuW3NLHEtMvM
 FJPkXYXuEAduc47wlWEFCf96t9Vfu6LtZKP+ynPFw/9un+ZVbf0630g31q69WXk=
 =wLDd
 -----END PGP SIGNATURE-----
 
 --LQksG6bCIzRHxTLp--
State-Changed-From-To: feedback->closed 
State-Changed-By: novel 
State-Changed-When: Tue Mar 12 17:40:47 UTC 2013 
State-Changed-Why:  
Fix committed. 

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