NetBSD Problem Report #51209

From www@NetBSD.org  Wed Jun  1 15:12:22 2016
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5CEF37AAB0
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Jun 2016 15:12:22 +0000 (UTC)
Message-Id: <20160601151220.406A07ABD1@mollari.NetBSD.org>
Date: Wed,  1 Jun 2016 15:12:20 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: audio/lame build fails on i386-7.99.30
X-Send-Pr-Version: www-1.0

>Number:         51209
>Notify-List:    adrien_fernandes2@hotmail.com
>Category:       pkg
>Synopsis:       audio/lame build fails on i386-7.99.30
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 01 15:15:00 +0000 2016
>Closed-Date:    Wed Oct 05 10:31:32 +0000 2016
>Last-Modified:  Wed Oct 05 10:31:32 +0000 2016
>Originator:     John D. Baker
>Release:        NetBSD/i386-7.99.30, pkgsrc-2016Q1 (audio/lame updated to HEAD)
>Organization:
>Environment:
NetBSD plextwo 7.99.30 NetBSD 7.99.30 (PLEXOR) #2: Mon May 30 21:25:51 CDT 2016  sysop@hppldl380g5.technoskunk.fur:/d0/build/current/obj/i386/sys/arch/i386/compile/PLEXOR i386

>Description:
Building audio/lame on i386-current following the switch to GCC 5.3
fails as follows:

[...]
gmake[3]: Entering directory '/var/tmp/pkgsrc/audio/lame/work/lame-3.99.5/libmp3lame/i386'
mkdir -p .libs
echo '# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)' >choose_table.lo
echo "pic_object='.libs/choose_table.o'" >>choose_table.lo
echo "non_pic_object='.libs/choose_table.o'" >>choose_table.lo
/usr/pkg/bin/nasm -f elf -i ../../libmp3lame/i386/ choose_table.nas -o .libs/choose_table.o -l choose_table.lo.lst
choose_table.nas:17: warning: Unknown section attribute 'class' ignored on declaration of section `.data'
choose_table.nas:17: warning: Unknown section attribute 'use32' ignored on declaration of section `.data'
choose_table.nas:131: warning: Unknown section attribute 'class' ignored on declaration of section `.text'
choose_table.nas:131: warning: Unknown section attribute 'use32' ignored on declaration of section `.text'
choose_table.nas:24: warning: label alone on a line without a colon might be in error
choose_table.nas:78: warning: label alone on a line without a colon might be in error
choose_table.nas:102: warning: label alone on a line without a colon might be in error
choose_table.nas:109: warning: label alone on a line without a colon might be in error
choose_table.nas:341: warning: label alone on a line without a colon might be in error
choose_table.nas:353: warning: label alone on a line without a colon might be in error
choose_table.nas:414: warning: label alone on a line without a colon might be in error
choose_table.nas:426: warning: label alone on a line without a colon might be in error
choose_table.nas:447: warning: label alone on a line without a colon might be in error
mkdir -p .libs
echo '# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)' >cpu_feat.lo
echo "pic_object='.libs/cpu_feat.o'" >>cpu_feat.lo
echo "non_pic_object='.libs/cpu_feat.o'" >>cpu_feat.lo
/usr/pkg/bin/nasm -f elf -i ../../libmp3lame/i386/ cpu_feat.nas -o .libs/cpu_feat.o -l cpu_feat.lo.lst
cpu_feat.nas:18: warning: Unknown section attribute 'class' ignored on declaration of section `.text'
cpu_feat.nas:18: warning: Unknown section attribute 'use32' ignored on declaration of section `.text'
cpu_feat.nas:107: warning: label alone on a line without a colon might be in error
mkdir -p .libs
echo '# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)' >fft3dn.lo
echo "pic_object='.libs/fft3dn.o'" >>fft3dn.lo
echo "non_pic_object='.libs/fft3dn.o'" >>fft3dn.lo
/usr/pkg/bin/nasm -f elf -i ../../libmp3lame/i386/ fft3dn.nas -o .libs/fft3dn.o -l fft3dn.lo.lst
fft3dn.nas:11: warning: Unknown section attribute 'class' ignored on declaration of section `.data'
fft3dn.nas:11: warning: Unknown section attribute 'use32' ignored on declaration of section `.data'
fft3dn.nas:25: warning: Unknown section attribute 'class' ignored on declaration of section `.text'
fft3dn.nas:25: warning: Unknown section attribute 'use32' ignored on declaration of section `.text'
fft3dn.nas:51: warning: label alone on a line without a colon might be in error
fft3dn.nas:267: warning: label alone on a line without a colon might be in error
fft3dn.nas:295: warning: label alone on a line without a colon might be in error
fft3dn.nas:484: warning: label alone on a line without a colon might be in error
mkdir -p .libs
echo '# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)' >fftsse.lo
echo "pic_object='.libs/fftsse.o'" >>fftsse.lo
echo "non_pic_object='.libs/fftsse.o'" >>fftsse.lo
/usr/pkg/bin/nasm -f elf -i ../../libmp3lame/i386/ fftsse.nas -o .libs/fftsse.o -l fftsse.lo.lst
fftsse.nas:11: warning: Unknown section attribute 'class' ignored on declaration of section `.data'
fftsse.nas:11: warning: Unknown section attribute 'use32' ignored on declaration of section `.data'
fftsse.nas:27: warning: Unknown section attribute 'class' ignored on declaration of section `.text'
fftsse.nas:27: warning: Unknown section attribute 'use32' ignored on declaration of section `.text'
fftsse.nas:422: warning: label alone on a line without a colon might be in error
/bin/sh ../../libtool --mode=link gcc  -Wall -pipe -O2 -I/usr/include  -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -o liblameasmroutines.la  choose_table.lo cpu_feat.lo fft3dn.lo fftsse.lo  
libtool: link: ar cru .libs/liblameasmroutines.a .libs/choose_table.o .libs/cpu_feat.o .libs/fft3dn.o .libs/fftsse.o 
libtool: link: ranlib .libs/liblameasmroutines.a
libtool: link: ( cd ".libs" && rm -f "liblameasmroutines.la" && ln -s "../liblameasmroutines.la" "liblameasmroutines.la" )
gmake[3]: Leaving directory '/var/tmp/pkgsrc/audio/lame/work/lame-3.99.5/libmp3lame/i386'
Making all in vector
gmake[3]: Entering directory '/var/tmp/pkgsrc/audio/lame/work/lame-3.99.5/libmp3lame/vector'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H  -I. -I../.. -I../../include -I. -I../../libmp3lame -I../../mpglib -I../..  -I/usr/include  -Wall -pipe -O2 -I/usr/include -MT xmm_quantize_sub.lo -MD -MP -MF .deps/xmm_quantize_sub.Tpo -c -o xmm_quantize_sub.lo xmm_quantize_sub.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../libmp3lame -I../../mpglib -Wall -pipe -O2 -MT xmm_quantize_sub.lo -MD -MP -MF .deps/xmm_quantize_sub.Tpo -c xmm_quantize_sub.c  -fPIC -DPIC -o .libs/xmm_quantize_sub.o
xmm_quantize_sub.c: In function 'fht_SSE2':
xmm_quantize_sub.c:172:20: warning: variable 'v_s2' set but not used [-Wunused-but-set-variable]
             __m128 v_s2;
                    ^
xmm_quantize_sub.c: In function 'init_xrpow_core_sse':
xmm_quantize_sub.c:65:18: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi]
     const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
                  ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:895:1: error: inlining failed in call to always_inline '_mm_set_ps1': target specific option mismatch
 _mm_set_ps1 (float __F)
 ^
xmm_quantize_sub.c:74:21: error: called from here
     vec_sum._m128 = _mm_set_ps1(0);
                     ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:895:1: error: inlining failed in call to always_inline '_mm_set_ps1': target specific option mismatch
 _mm_set_ps1 (float __F)
 ^
xmm_quantize_sub.c:73:27: error: called from here
     vec_xrpow_max._m128 = _mm_set_ps1(0);
                           ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:929:1: error: inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch
 _mm_loadu_ps (float const *__P)
 ^
xmm_quantize_sub.c:65:18: error: called from here
     const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
                  ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:895:1: error: inlining failed in call to always_inline '_mm_set_ps1': target specific option mismatch
 _mm_set_ps1 (float __F)
 ^
xmm_quantize_sub.c:74:21: error: called from here
     vec_sum._m128 = _mm_set_ps1(0);
                     ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:895:1: error: inlining failed in call to always_inline '_mm_set_ps1': target specific option mismatch
 _mm_set_ps1 (float __F)
 ^
xmm_quantize_sub.c:73:27: error: called from here
     vec_xrpow_max._m128 = _mm_set_ps1(0);
                           ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:978:1: error: inlining failed in call to always_inline '_mm_storeu_ps': target specific option mismatch
 _mm_storeu_ps (float *__P, __m128 __A)
 ^
xmm_quantize_sub.c:82:9: error: called from here
         _mm_storeu_ps(&(xrpow[i]), vec_tmp._m128); /* store into xrpow[] */
         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:229:1: error: inlining failed in call to always_inline '_mm_max_ps': target specific option mismatch
 _mm_max_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:81:31: error: called from here
         vec_xrpow_max._m128 = _mm_max_ps(vec_xrpow_max._m128, vec_tmp._m128); /* retrieve max */
                               ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:205:1: error: inlining failed in call to always_inline '_mm_sqrt_ps': target specific option mismatch
 _mm_sqrt_ps (__m128 __A)
 ^
xmm_quantize_sub.c:80:25: error: called from here
         vec_tmp._m128 = _mm_sqrt_ps(_mm_mul_ps(vec_tmp._m128, _mm_sqrt_ps(vec_tmp._m128)));
                         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:193:1: error: inlining failed in call to always_inline '_mm_mul_ps': target specific option mismatch
 _mm_mul_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:80:25: error: called from here
         vec_tmp._m128 = _mm_sqrt_ps(_mm_mul_ps(vec_tmp._m128, _mm_sqrt_ps(vec_tmp._m128)));
                         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:205:1: error: inlining failed in call to always_inline '_mm_sqrt_ps': target specific option mismatch
 _mm_sqrt_ps (__m128 __A)
 ^
xmm_quantize_sub.c:80:25: error: called from here
         vec_tmp._m128 = _mm_sqrt_ps(_mm_mul_ps(vec_tmp._m128, _mm_sqrt_ps(vec_tmp._m128)));
                         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:181:1: error: inlining failed in call to always_inline '_mm_add_ps': target specific option mismatch
 _mm_add_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:79:25: error: called from here
         vec_sum._m128 = _mm_add_ps(vec_sum._m128, vec_tmp._m128);
                         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:237:1: error: inlining failed in call to always_inline '_mm_and_ps': target specific option mismatch
 _mm_and_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:78:25: error: called from here
         vec_tmp._m128 = _mm_and_ps(vec_tmp._m128, vec_fabs_mask); /* fabs */
                         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:929:1: error: inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch
 _mm_loadu_ps (float const *__P)
 ^
xmm_quantize_sub.c:77:25: error: called from here
         vec_tmp._m128 = _mm_loadu_ps(&(cod_info->xr[i])); /* load */
                         ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:895:1: error: inlining failed in call to always_inline '_mm_set_ps1': target specific option mismatch
 _mm_set_ps1 (float __F)
 ^
xmm_quantize_sub.c:84:21: error: called from here
     vec_tmp._m128 = _mm_set_ps1(0);
                     ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:229:1: error: inlining failed in call to always_inline '_mm_max_ps': target specific option mismatch
 _mm_max_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:92:35: error: called from here
             vec_xrpow_max._m128 = _mm_max_ps(vec_xrpow_max._m128, vec_tmp._m128); /* retrieve max */
                                   ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:205:1: error: inlining failed in call to always_inline '_mm_sqrt_ps': target specific option mismatch
 _mm_sqrt_ps (__m128 __A)
 ^
xmm_quantize_sub.c:91:29: error: called from here
             vec_tmp._m128 = _mm_sqrt_ps(_mm_mul_ps(vec_tmp._m128, _mm_sqrt_ps(vec_tmp._m128)));
                             ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:193:1: error: inlining failed in call to always_inline '_mm_mul_ps': target specific option mismatch
 _mm_mul_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:91:29: error: called from here
             vec_tmp._m128 = _mm_sqrt_ps(_mm_mul_ps(vec_tmp._m128, _mm_sqrt_ps(vec_tmp._m128)));
                             ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:205:1: error: inlining failed in call to always_inline '_mm_sqrt_ps': target specific option mismatch
 _mm_sqrt_ps (__m128 __A)
 ^
xmm_quantize_sub.c:91:29: error: called from here
             vec_tmp._m128 = _mm_sqrt_ps(_mm_mul_ps(vec_tmp._m128, _mm_sqrt_ps(vec_tmp._m128)));
                             ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:181:1: error: inlining failed in call to always_inline '_mm_add_ps': target specific option mismatch
 _mm_add_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:90:29: error: called from here
             vec_sum._m128 = _mm_add_ps(vec_sum._m128, vec_tmp._m128);
                             ^
In file included from xmm_quantize_sub.c:37:0:
/usr/include/gcc-5/xmmintrin.h:237:1: error: inlining failed in call to always_inline '_mm_and_ps': target specific option mismatch
 _mm_and_ps (__m128 __A, __m128 __B)
 ^
xmm_quantize_sub.c:89:29: error: called from here
             vec_tmp._m128 = _mm_and_ps(vec_tmp._m128, vec_fabs_mask); /* fabs */
                             ^
Makefile:319: recipe for target 'xmm_quantize_sub.lo' failed
gmake[3]: *** [xmm_quantize_sub.lo] Error 1
gmake[3]: Leaving directory '/var/tmp/pkgsrc/audio/lame/work/lame-3.99.5/libmp3lame/vector'
Makefile:547: recipe for target 'all-recursive' failed
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory '/var/tmp/pkgsrc/audio/lame/work/lame-3.99.5/libmp3lame'
Makefile:349: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/var/tmp/pkgsrc/audio/lame/work/lame-3.99.5'
Makefile:276: recipe for target 'all' failed
gmake: *** [all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /x/pkgsrc/audio/lame
*** Error code 1

Stop.
make: stopped in /x/pkgsrc/audio/lame

>How-To-Repeat:
See above.

I've submitted this as category "pkg", but possibly it could be
"toolchain".

This is the only such occurrance I've seen.  So far, all the other
packages I built on i386-current had no trouble.  "audio/lame" builds
without problems on amd64-current and macppc-current.
>Fix:

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51209: audio/lame build fails on i386-7.99.30
Date: Fri, 10 Jun 2016 10:38:00 -0500 (CDT)

 Following the update to GCC 5.4 in NetBSD-current, this problem still
 occurs.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51209: audio/lame build fails on i386-7.99.30
Date: Thu, 7 Jul 2016 07:09:15 -0500 (CDT)

 As an additional data point, "audio/lame" builds successfully on
 NetBSD/macppc-7.99.32 (GCC 5.4).

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51209
Date: Thu, 7 Jul 2016 20:09:00 +0200

 Adding

 http://svnweb.freebsd.org/ports/head/audio/lame/files/patch-configure?revision=407500&view=co

 to patch-configure en patch-configure.in seems work.

 --- configure.in.orig	2012-02-28 19:50:27.000000000 +0100
 +++ configure.in	2016-07-07 20:02:14.313502071 +0200
 @@ -96,9 +96,19 @@
  		 sys/soundcard.h \
  		 sys/time.h \
  		 unistd.h \
 -		 xmmintrin.h \
  		 linux/soundcard.h)

 +dnl Checks for actually working SSE intrinsics
 +AC_MSG_CHECKING(working SSE intrinsics)
 +AC_COMPILE_IFELSE(
 +    [AC_LANG_PROGRAM(
 +	[[#include <xmmintrin.h>]],
 +	[[_mm_sfence();]])],
 +    [AC_DEFINE([HAVE_XMMINTRIN_H], [1], [Define if SSE intrinsics work.])
 +     ac_cv_header_xmmintrin_h=yes],
 +   [ac_cv_header_xmmintrin_h=no])
 +AC_MSG_RESULT(${ac_cv_header_xmmintrin_h})
 +
  dnl Checks for typedefs, structures, and compiler characteristics.
  AC_C_CONST
  AC_C_INLINE
 @@ -372,9 +382,9 @@

  AC_CHECK_HEADERS(termcap.h)
  AC_CHECK_HEADERS(ncurses/termcap.h)
 -AC_CHECK_LIB(termcap, initscr, HAVE_TERMCAP="termcap")
 -AC_CHECK_LIB(curses, initscr, HAVE_TERMCAP="curses")
 -AC_CHECK_LIB(ncurses, initscr, HAVE_TERMCAP="ncurses")
 +AC_CHECK_LIB(termcap, tgetent, HAVE_TERMCAP="termcap")
 +AC_CHECK_LIB(curses, tgetent, HAVE_TERMCAP="curses")
 +AC_CHECK_LIB(ncurses, tgetent, HAVE_TERMCAP="ncurses")

  AM_ICONV


 --- configure.orig	2012-02-28 19:54:37.000000000 +0100
 +++ configure	2016-07-07 20:02:10.412376884 +0200
 @@ -11922,7 +11922,6 @@
  		 sys/soundcard.h \
  		 sys/time.h \
  		 unistd.h \
 -		 xmmintrin.h \
  		 linux/soundcard.h
  do :
    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 @@ -11937,6 +11936,31 @@
  done


 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5
 +$as_echo_n "checking working SSE intrinsics... " >&6; }
 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 +/* end confdefs.h.  */
 +#include <xmmintrin.h>
 +int
 +main ()
 +{
 +_mm_sfence();
 +  ;
 +  return 0;
 +}
 +_ACEOF
 +if ac_fn_c_try_compile "$LINENO"; then :
 +
 +$as_echo "#define HAVE_XMMINTRIN_H 1" >>confdefs.h
 +
 +     ac_cv_header_xmmintrin_h=yes
 +else
 +  ac_cv_header_xmmintrin_h=no
 +fi
 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5
 +$as_echo "${ac_cv_header_xmmintrin_h}" >&6; }
 +
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  if ${ac_cv_c_const+:} false; then :
 @@ -13602,9 +13626,9 @@

  done

 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -ltermcap" >&5
 -$as_echo_n "checking for initscr in -ltermcap... " >&6; }
 -if ${ac_cv_lib_termcap_initscr+:} false; then :
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
 +$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
 +if ${ac_cv_lib_termcap_tgetent+:} false; then :
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
 @@ -13618,33 +13642,33 @@
  #ifdef __cplusplus
  extern "C"
  #endif
 -char initscr ();
 +char tgetent ();
  int
  main ()
  {
 -return initscr ();
 +return tgetent ();
    ;
    return 0;
  }
  _ACEOF
  if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_lib_termcap_initscr=yes
 +  ac_cv_lib_termcap_tgetent=yes
  else
 -  ac_cv_lib_termcap_initscr=no
 +  ac_cv_lib_termcap_tgetent=no
  fi
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  LIBS=$ac_check_lib_save_LIBS
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_initscr" >&5
 -$as_echo "$ac_cv_lib_termcap_initscr" >&6; }
 -if test "x$ac_cv_lib_termcap_initscr" = xyes; then :
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
 +$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
 +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
    HAVE_TERMCAP="termcap"
  fi

 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
 -$as_echo_n "checking for initscr in -lcurses... " >&6; }
 -if ${ac_cv_lib_curses_initscr+:} false; then :
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
 +$as_echo_n "checking for tgetent in -lcurses... " >&6; }
 +if ${ac_cv_lib_curses_tgetent+:} false; then :
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
 @@ -13658,33 +13682,33 @@
  #ifdef __cplusplus
  extern "C"
  #endif
 -char initscr ();
 +char tgetent ();
  int
  main ()
  {
 -return initscr ();
 +return tgetent ();
    ;
    return 0;
  }
  _ACEOF
  if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_lib_curses_initscr=yes
 +  ac_cv_lib_curses_tgetent=yes
  else
 -  ac_cv_lib_curses_initscr=no
 +  ac_cv_lib_curses_tgetent=no
  fi
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  LIBS=$ac_check_lib_save_LIBS
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
 -$as_echo "$ac_cv_lib_curses_initscr" >&6; }
 -if test "x$ac_cv_lib_curses_initscr" = xyes; then :
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
 +$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
 +if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
    HAVE_TERMCAP="curses"
  fi

 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
 -$as_echo_n "checking for initscr in -lncurses... " >&6; }
 -if ${ac_cv_lib_ncurses_initscr+:} false; then :
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
 +$as_echo_n "checking for tgetent in -lncurses... " >&6; }
 +if ${ac_cv_lib_ncurses_tgetent+:} false; then :
    $as_echo_n "(cached) " >&6
  else
    ac_check_lib_save_LIBS=$LIBS
 @@ -13698,27 +13722,27 @@
  #ifdef __cplusplus
  extern "C"
  #endif
 -char initscr ();
 +char tgetent ();
  int
  main ()
  {
 -return initscr ();
 +return tgetent ();
    ;
    return 0;
  }
  _ACEOF
  if ac_fn_c_try_link "$LINENO"; then :
 -  ac_cv_lib_ncurses_initscr=yes
 +  ac_cv_lib_ncurses_tgetent=yes
  else
 -  ac_cv_lib_ncurses_initscr=no
 +  ac_cv_lib_ncurses_tgetent=no
  fi
  rm -f core conftest.err conftest.$ac_objext \
      conftest$ac_exeext conftest.$ac_ext
  LIBS=$ac_check_lib_save_LIBS
  fi
 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
 -$as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
 -if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
 +$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
 +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
    HAVE_TERMCAP="ncurses"
  fi

 @@ -16953,6 +16977,8 @@
    case $ac_option in
    # Handling of the options.
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 +	: Avoid regenerating within pkgsrc
 +	exit 0
      ac_cs_recheck=: ;;
    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
      $as_echo "$ac_cs_version"; exit ;;

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51209
Date: Thu, 7 Jul 2016 14:53:30 -0500 (CDT)

 On Thu, 7 Jul 2016, Onno van der Linden wrote:

 >  Adding
 >  
 >  http://svnweb.freebsd.org/ports/head/audio/lame/files/patch-configure?revision=407500&view=co
 >  
 >  to patch-configure en patch-configure.in seems work.

 After separating out the patches and replacing the existing
 "patches/patch-configure" and "patches/patch-configure.in" with them
 (and 'make makepatchsum'), "audio/lame" builds successfully on
 i386-7.99.33.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51209 CVS commit: pkgsrc/audio/lame
Date: Fri, 2 Sep 2016 14:07:43 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Fri Sep  2 14:07:43 UTC 2016

 Modified Files:
 	pkgsrc/audio/lame: Makefile distinfo
 	pkgsrc/audio/lame/patches: patch-configure

 Log Message:
 Use a compile test at configure to check for SSE, not just the existence
 of a header.
 Default compiler setup in netbsd disables SSE, we cannot compile stuff
 that uses it - but we do have the headers for it.

 Allows us to get rid of SSE disabling for sunpro compiler, it should
 fail the compile test as well.

 Patch from FreeBSD (pointed out by John D. Baker)

 Fixes PR pkg/51209: audio/lame build fails on i386-7.99.30


 To generate a diff of this commit:
 cvs rdiff -u -r1.78 -r1.79 pkgsrc/audio/lame/Makefile
 cvs rdiff -u -r1.26 -r1.27 pkgsrc/audio/lame/distinfo
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/audio/lame/patches/patch-configure

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

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 02 Sep 2016 14:12:28 +0000
State-Changed-Why:
I applied part of the patch, it works now.


From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51209 (audio/lame build fails on i386-7.99.30)
Date: Wed, 5 Oct 2016 05:28:10 -0500 (CDT)

 On Fri, 2 Sep 2016, maya@NetBSD.org wrote:

 > State-Changed-Why:
 > I applied part of the patch, it works now.

 Confirmed.  It builds without incident on NetBSD/i386-7.99.39.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 05 Oct 2016 10:31:32 +0000
State-Changed-Why:
Confirmed fixed, thanks!


>Unformatted:

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.