NetBSD Problem Report #48703

From www@NetBSD.org  Fri Apr  4 05:13:21 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8B553A5807
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  4 Apr 2014 05:13:21 +0000 (UTC)
Message-Id: <20140404051320.11DE0A580F@mollari.NetBSD.org>
Date: Fri,  4 Apr 2014 05:13:20 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: multimedia/libass 0.11.1 libtool --quiet --mode=compile "yasm" unable to infer tagged configuration
X-Send-Pr-Version: www-1.0

>Number:         48703
>Category:       pkg
>Synopsis:       multimedia/libass 0.11.1 libtool --quiet --mode=compile "yasm" unable to infer tagged configuration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 04 05:15:00 +0000 2014
>Closed-Date:    Fri Apr 04 08:46:27 +0000 2014
>Last-Modified:  Fri Aug 29 15:05:00 +0000 2014
>Originator:     David Shao
>Release:        NetBSD 6.99.36 amd64
>Organization:
>Environment:
NetBSD  6.99.36 NetBSD 6.99.36 (GENERIC) #1: Tue Mar 11 00:45:13 PDT 2014  xxxxx@:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
For latest cvs pkgsrc on a NetBSD 6.99.36 amd64 X11_TYPE=native system and a DragonFly 3.7-DEVELOPMENT x86_64 X11_TYPE=modular system, multimedia/libass 0.11.1 fails to build/replace

checking for yasm... yes
...
Making all in libass
  CC       ass.lo
ass.c: In function 'process_info_line':
ass.c:609:9: warning: array subscript has type 'char'
ass.c: In function 'sub_recode':
ass.c:1013:17: warning: passing argument 2 of 'iconv' from incompatible pointer type
/usr/include/iconv.h:46:8: note: expected 'const char ** restrict' but argument is of type 'char **'
...
  CC       ass_strtod.lo
ass_strtod.c: In function 'ass_strtod':
ass_strtod.c:103:5: warning: array subscript has type 'char'
ass_strtod.c:201:9: warning: array subscript has type 'char'
/bin/sh ../libtool --quiet --mode=compile "yasm"      -DARCH_X86_64=1 -m amd64     -o x86/blend_bitmaps.lo x86/blend_bitmaps.asm -prefer-non-pic
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
*** Error code 1

Stop.
make[2]: stopped in /usr/pkgsrc/multimedia/libass/work/libass-0.11.1/libass

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48703 CVS commit: pkgsrc/multimedia/libass
Date: Fri, 4 Apr 2014 05:52:17 +0000

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Fri Apr  4 05:52:17 UTC 2014

 Modified Files:
 	pkgsrc/multimedia/libass: Makefile

 Log Message:
 Exactly disable-asm (no dependency on yasm now).
 workaround of PR pkg/48703.


 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 pkgsrc/multimedia/libass/Makefile

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

From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/48703: multimedia/libass 0.11.1 libtool --quiet
 --mode=compile "yasm" unable to infer tagged configuration
Date: Thu, 3 Apr 2014 23:25:35 -0700

 multimedia/libass 0.11.1 now builds / is replaced on NetBSD 6.99.36
 amd64 and DragonFly 3.7-DEVELOPMENT x86_64 for pkgsrc cvs through

 Module Name:    pkgsrc
 Date:           Fri Apr  4 06:11:49 UTC 2014

 Modified Files:
         pkgsrc/doc: CHANGES-2014

 Log Message:
 Added devel/p5-Module-Build-XSUtil version 0.06

 Thanks for the instantaneous fix!

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 04 Apr 2014 08:46:27 +0000
State-Changed-Why:
obache fixed it, thanks for the feedback.


From: Richard PALO <richard@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/48703: multimedia/libass 0.11.1 libtool --quiet --mode=compile
 "yasm" unable to infer tagged configuration
Date: Fri, 29 Aug 2014 17:00:35 +0200

 This is a multi-part message in MIME format.
 --------------010805020209000405080900
 Content-Type: text/plain; charset=UTF-8; format=flowed
 Content-Transfer-Encoding: 8bit

 Le 04/04/14 07:15, davshao@gmail.com a écrit :
 >> Number:         48703
 >> Category:       pkg
 >> Synopsis:       multimedia/libass 0.11.1 libtool --quiet --mode=compile "yasm" unable to infer tagged configuration
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       low
 >> Responsible:    pkg-manager
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Fri Apr 04 05:15:00 +0000 2014
 >> Originator:     David Shao
 >> Release:        NetBSD 6.99.36 amd64
 >> Organization:
 >> Environment:
 > NetBSD  6.99.36 NetBSD 6.99.36 (GENERIC) #1: Tue Mar 11 00:45:13 PDT 2014  xxxxx@:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
 >
 >> Description:
 > For latest cvs pkgsrc on a NetBSD 6.99.36 amd64 X11_TYPE=native system and a DragonFly 3.7-DEVELOPMENT x86_64 X11_TYPE=modular system, multimedia/libass 0.11.1 fails to build/replace
 >
 > checking for yasm... yes
 > ...
 > Making all in libass
 >    CC       ass.lo
 > ass.c: In function 'process_info_line':
 > ass.c:609:9: warning: array subscript has type 'char'
 > ass.c: In function 'sub_recode':
 > ass.c:1013:17: warning: passing argument 2 of 'iconv' from incompatible pointer type
 > /usr/include/iconv.h:46:8: note: expected 'const char ** restrict' but argument is of type 'char **'
 > ...
 >    CC       ass_strtod.lo
 > ass_strtod.c: In function 'ass_strtod':
 > ass_strtod.c:103:5: warning: array subscript has type 'char'
 > ass_strtod.c:201:9: warning: array subscript has type 'char'
 > /bin/sh ../libtool --quiet --mode=compile "yasm"      -DARCH_X86_64=1 -m amd64     -o x86/blend_bitmaps.lo x86/blend_bitmaps.asm -prefer-non-pic
 > libtool: compile: unable to infer tagged configuration
 > libtool: compile: specify a tag with `--tag'
 > *** Error code 1
 >
 > Stop.
 > make[2]: stopped in /usr/pkgsrc/multimedia/libass/work/libass-0.11.1/libass
 >
 >> How-To-Repeat:
 >
 >> Fix:
 >
 >
 I'm able to build this with the attached patch on SunOS.
 Seems okay on both i386 and x86_64... buildwise anyway,
 will see about run-time..

 --------------010805020209000405080900
 Content-Type: text/x-patch;
  name="libass.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="libass.patch"

 diff --git a/multimedia/libass/Makefile b/multimedia/libass/Makefile
 index 3814cee..eea3a29 100644
 --- a/multimedia/libass/Makefile
 +++ b/multimedia/libass/Makefile
 @@ -13,11 +13,18 @@ LICENSE=	isc
  USE_LIBTOOL=		yes
  USE_TOOLS+=		pkg-config
  GNU_CONFIGURE=		yes
 -CONFIGURE_ARGS+=	--disable-asm
  PKGCONFIG_OVERRIDE+=	libass.pc.in

  LDFLAGS+=	${BUILDLINK_LDADD.iconv}

 +.include "../../mk/bsd.prefs.mk"
 +.if ${OPSYS} == "SunOS"
 +CONFIGURE_ENV+=	ASFLAGS="-f elf"
 +BUILD_DEPENDS+= 	yasm-[0-9]*:../../devel/yasm
 +.else
 +CONFIGURE_ARGS+=	--disable-asm
 +.endif
 +
  BUILDLINK_API_DEPENDS.fribidi+=	fribidi>=0.19.0
  .include "../../converters/fribidi/buildlink3.mk"
  .include "../../converters/libiconv/buildlink3.mk"
 diff --git a/multimedia/libass/distinfo b/multimedia/libass/distinfo
 index 1333ce0..560037a 100644
 --- a/multimedia/libass/distinfo
 +++ b/multimedia/libass/distinfo
 @@ -3,3 +3,4 @@ $NetBSD: distinfo,v 1.5 2014/06/04 10:25:18 adam Exp $
  SHA1 (libass-0.11.2.tar.xz) = 1bffc32d0a601ee6cf289797557bb38636e185b5
  RMD160 (libass-0.11.2.tar.xz) = a82c57d849ccef01b8d0844b03cc9adeeea1469e
  Size (libass-0.11.2.tar.xz) = 297172 bytes
 +SHA1 (patch-libass_Makefile.in) = 825e3c83d02293dabdf1bd2fbe9060d4f3a48adf
 diff --git a/multimedia/libass/patches/patch-libass_Makefile.in b/multimedia/libass/patches/patch-libass_Makefile.in
 new file mode 100644
 index 0000000..1f742c4
 --- /dev/null
 +++ b/multimedia/libass/patches/patch-libass_Makefile.in
 @@ -0,0 +1,15 @@
 +$NetBSD$
 +
 +Workaround for libtool missing tag with asm seems to be --tag=CC
 +
 +--- libass/Makefile.in.orig	2014-04-25 17:29:58.000000000 +0000
 ++++ libass/Makefile.in
 +@@ -744,7 +744,7 @@ uninstall-am: uninstall-dist_assheadersH
 + 
 + 
 + .asm.lo:
 +-	$(yasm_verbose)$(LIBTOOL) $(AM_V_lt) --mode=compile $(AS) $(ASFLAGS) -o $@ $< -prefer-non-pic
 ++	$(yasm_verbose)$(LIBTOOL) $(AM_V_lt) --mode=compile --tag=CC $(AS) $(ASFLAGS) -o $@ $< -prefer-non-pic
 + 
 + # Tell versions [3.59,3.63) of GNU make to not export all variables.
 + # Otherwise a system limit (for SysV at least) may be exceeded.

 --------------010805020209000405080900--

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.