NetBSD Problem Report #52457

From www@NetBSD.org  Wed Aug  2 21:01:59 2017
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 "mail.NetBSD.org CA" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 53DA77A1FE
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  2 Aug 2017 21:01:59 +0000 (UTC)
Message-Id: <20170802210158.2168C7A27C@mollari.NetBSD.org>
Date: Wed,  2 Aug 2017 21:01:58 +0000 (UTC)
From: joernc@gmail.com
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: audio/rplay does not compile on NetBSD 7.1
X-Send-Pr-Version: www-1.0

>Number:         52457
>Category:       pkg
>Synopsis:       audio/rplay does not compile on NetBSD 7.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 02 21:05:00 +0000 2017
>Closed-Date:    
>Last-Modified:  Tue Feb 20 08:02:16 +0000 2018
>Originator:     Joern Clausen
>Release:        7.1
>Organization:
>Environment:
>Description:
Compiling audio/rplay fails on NetBSD 7.1/amd64 with

gcc -c -I/usr/pkg/include -I/usr/include -I. -I../include -I. -I./../include  -I./../lib -I./../adpcm   -DHAVE_CONFIG_H  -DRPLAY_CONF=\"/usr/pkg/etc/rplay.conf\"  -DRPLAY_HOSTS=\"/usr/pkg/etc/rplay.hosts\"  -DRPLAY_SERVERS=\"/usr/pkg/etc/rplay.servers\"  -DRPLAY_HELPERS=\"/usr/pkg/etc/rplay.helpers\"  -DRPLAY_CACHE=\"/tmp/.rplay-cache\"  -DRPLAY_LOG=\"/tmp/rplay.log\"  -DRPLAYDRC=\"\~/.rplaydrc\" -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include cache.c
cache.c: In function 'cache_next':
cache.c:131:88: error: macro "__ssp_bos" passed 2 arguments, but takes just 1
     SNPRINTF(SIZE(cache_path, sizeof(cache_path)), "%s/%s", cache_directory, dp->d_name);
                                                                                        ^
In file included from /usr/include/stdio.h:593:0,
                 from cache.c:40:
../include/config.h:291:18: error: '__ssp_bos' undeclared (first use in this function)
 #define SNPRINTF snprintf
                  ^
cache.c:131:5: note: in expansion of macro 'SNPRINTF'
     SNPRINTF(SIZE(cache_path, sizeof(cache_path)), "%s/%s", cache_directory, dp->d_name);
     ^
../include/config.h:291:18: note: each undeclared identifier is reported only once for each function it appears in
 #define SNPRINTF snprintf
                  ^
cache.c:131:5: note: in expansion of macro 'SNPRINTF'


and some more failures.
>How-To-Repeat:

>Fix:
Instead of fixing rplay, removing it as a dependency for wm/vtwm is also okay for me :)

>Release-Note:

>Audit-Trail:
From: =?UTF-8?Q?J=C3=B6rn_Clausen?= <joernc@googlemail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/52457: audio/rplay does not compile on NetBSD 7.1
Date: Sun, 6 Aug 2017 18:32:38 +0200

 Unless someone steps forward and is actually using vtwm from pkgsrc
 with sound, this should fix the problem:

 --- Makefile    2017/08/06 16:21:35     1.1
 +++ Makefile    2017/08/06 16:21:43
 @@ -15,7 +15,6 @@
  USE_IMAKE=3D     YES
  USE_TOOLS+=3D    flex yacc

 -.include "../../audio/rplay/buildlink3.mk"
  .include "../../x11/libXext/buildlink3.mk"
  .include "../../x11/libXmu/buildlink3.mk"
  .include "../../x11/libXpm/buildlink3.mk"

 and patch-aa

 $NetBSD: patch-aa,v 1.2 2006/01/02 22:13:26 joerg Exp $

 --- Imakefile.orig    2005-05-09 12:46:24.000000000 +0000
 +++ Imakefile
 @@ -26,10 +26,10 @@ XCOMM and comment these
  XCOMM (the library must conform to the POSIX 1003.2 specification)

  XCOMM To omit sound support, uncomment this
 -XCOMM NO_SOUND_SUPPORT =3D -DNO_SOUND_SUPPORT
 +NO_SOUND_SUPPORT =3D -DNO_SOUND_SUPPORT
  XCOMM and comment these
 -SOUNDLIB =3D -L/usr/local/lib -lrplay
 -SOUNDINC =3D -I/usr/local/include
 +XCOMM SOUNDLIB =3D -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lr=
 play
 +XCOMM SOUNDINC =3D -I/usr/local/include
  XCOMM (sound is supported only by way of the rplay library)

  XCOMM To omit Internationalization support, uncomment this
 @@ -57,7 +57,7 @@ XCOMM Installation path for the binary
         VTWMBINDIR =3D $(BINDIR)

  XCOMM Installation path for the system resource file
 -       VTWMLIBDIR =3D $(LIBDIR)/twm
 +       VTWMLIBDIR =3D $(LIBDIR)/vtwm

  XCOMM Installation path for the man page
         VTWMMANDIR =3D $(MANDIR)



 On Wed, Aug 2, 2017 at 11:05 PM,  <joernc@gmail.com> wrote:
 >>Number:         52457
 >>Category:       pkg
 >>Synopsis:       audio/rplay does not compile on NetBSD 7.1
 >>Confidential:   no
 >>Severity:       serious
 >>Priority:       medium
 >>Responsible:    pkg-manager
 >>State:          open
 >>Class:          sw-bug
 >>Submitter-Id:   net
 >>Arrival-Date:   Wed Aug 02 21:05:00 +0000 2017
 >>Originator:     Joern Clausen
 >>Release:        7.1
 >>Organization:
 >>Environment:
 >>Description:
 > Compiling audio/rplay fails on NetBSD 7.1/amd64 with
 >
 > gcc -c -I/usr/pkg/include -I/usr/include -I. -I../include -I. -I./../incl=
 ude  -I./../lib -I./../adpcm   -DHAVE_CONFIG_H  -DRPLAY_CONF=3D\"/usr/pkg/e=
 tc/rplay.conf\"  -DRPLAY_HOSTS=3D\"/usr/pkg/etc/rplay.hosts\"  -DRPLAY_SERV=
 ERS=3D\"/usr/pkg/etc/rplay.servers\"  -DRPLAY_HELPERS=3D\"/usr/pkg/etc/rpla=
 y.helpers\"  -DRPLAY_CACHE=3D\"/tmp/.rplay-cache\"  -DRPLAY_LOG=3D\"/tmp/rp=
 lay.log\"  -DRPLAYDRC=3D\"\~/.rplaydrc\" -O2 -D_FORTIFY_SOURCE=3D2 -I/usr/p=
 kg/include -I/usr/include cache.c
 > cache.c: In function 'cache_next':
 > cache.c:131:88: error: macro "__ssp_bos" passed 2 arguments, but takes ju=
 st 1
 >      SNPRINTF(SIZE(cache_path, sizeof(cache_path)), "%s/%s", cache_direct=
 ory, dp->d_name);
 >                                                                          =
                ^
 > In file included from /usr/include/stdio.h:593:0,
 >                  from cache.c:40:
 > ../include/config.h:291:18: error: '__ssp_bos' undeclared (first use in t=
 his function)
 >  #define SNPRINTF snprintf
 >                   ^
 > cache.c:131:5: note: in expansion of macro 'SNPRINTF'
 >      SNPRINTF(SIZE(cache_path, sizeof(cache_path)), "%s/%s", cache_direct=
 ory, dp->d_name);
 >      ^
 > ../include/config.h:291:18: note: each undeclared identifier is reported =
 only once for each function it appears in
 >  #define SNPRINTF snprintf
 >                   ^
 > cache.c:131:5: note: in expansion of macro 'SNPRINTF'
 >
 >
 > and some more failures.
 >>How-To-Repeat:
 >
 >>Fix:
 > Instead of fixing rplay, removing it as a dependency for wm/vtwm is also =
 okay for me :)
 >



 --=20
 Joern Clausen
 http://www.oe-files.de/photography/

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 20 Feb 2018 08:02:16 +0000
State-Changed-Why:
Should be fixed with rplay-3.3.2nb8 a month ago.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.