NetBSD Problem Report #44611

From cheusov@tut.by  Sun Feb 20 10:04:46 2011
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1FC4263B842
	for <gnats-bugs@gnats.netbsd.org>; Sun, 20 Feb 2011 10:04:46 +0000 (UTC)
Message-Id: <87ei73hvik.fsf@asrock.chizhovka.net>
Date: Sun, 20 Feb 2011 12:04:35 +0200
From: cheusov@tut.by
To: gnats-bugs@gnats.NetBSD.org
Subject: libvdpau fails to build on SunOS [patch]
X-Send-Pr-Version: 3.95

>Number:         44611
>Category:       pkg
>Synopsis:       multimedia/libvdpau fails to build on SunOS [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    cheusov
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 20 10:05:00 +0000 2011
>Last-Modified:  Wed May 15 15:29:44 +0000 2013
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.1
>Organization:
>Environment:
System: SunOS sunos 5.11 oi_148 i86pc i386 i86pc Solaris
Architecture: x86_64
Machine: amd64
>Description:
(This is a maintainer's request)

CC=                     /opt/sunstudio12.1/bin/cc -m64
CXX=                    /opt/sunstudio12.1/bin/CC -m64
CPP=                    /opt/sunstudio12.1/bin/cc -m64 -E
LD is Sun's ld.

"bmake build" ends like the following

   libtool: link: cc -m64 -G -z defs -h libvdpau.so.1 -o .libs/libvdpau.so.1.0.0  .libs/vdpau_wrapper.o   -L/tmp/obj-pkgsrc/multimedia/libvdpau2/work/.buildlink/lib -lc  -m64 -Wl,-R/usr/pkg/lib  
   Undefined                       first referenced
    symbol                             in file
   XFree                               .libs/vdpau_wrapper.o
   ld: fatal: symbol referencing errors. No output written to .libs/libvdpau.so.1.0.0
   gmake[2]: *** [libvdpau.la] Error 1
>How-To-Repeat:
Build multimedia/libvdpau on OpenSolaris
>Fix:
Upstream has been notified about this problem.

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/libvdpau/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo	9 Nov 2010 00:39:56 -0000	1.2
+++ distinfo	20 Feb 2011 09:58:13 -0000
@@ -3,3 +3,4 @@
 SHA1 (libvdpau-0.4.1.tar.gz) = d09deff305e4927bc96fca8383f991d137e64d45
 RMD160 (libvdpau-0.4.1.tar.gz) = 94bd82e0c1a9d1fd3854bec4718720b9bc6894f1
 Size (libvdpau-0.4.1.tar.gz) = 456607 bytes
+SHA1 (patch-src_Makefile.in) = eee1081fdc114e7bcd8c1a74b8fa60c2f4d479dc
Index: patches/patch-src_Makefile.in
===================================================================
RCS file: patches/patch-src_Makefile.in
diff -N patches/patch-src_Makefile.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Makefile.in	20 Feb 2011 09:58:13 -0000
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Fix for SunOS/SunStudio/Sun ld
+--- src/Makefile.in.orig	2010-09-08 20:07:03.000000000 +0300
++++ src/Makefile.in	2011-02-25 07:33:48.524607086 +0200
+@@ -249,7 +249,7 @@
+     $(DLOPEN_LIBS) \
+     $(XEXT_LIBS)
+ 
+-libvdpau_la_LDFLAGS = -version-info 1:0:0 -no-undefined
++libvdpau_la_LDFLAGS = -version-info 1:0:0
+ libvdpauincludedir = $(includedir)/vdpau
+ libvdpauinclude_HEADERS = \
+     $(top_srcdir)/include/vdpau/vdpau.h \

>Release-Note:

>Audit-Trail:
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/44611 CVS commit: pkgsrc/multimedia/libvdpau
Date: Sun, 20 Feb 2011 14:24:05 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sun Feb 20 14:24:05 UTC 2011

 Modified Files:
 	pkgsrc/multimedia/libvdpau: distinfo
 Added Files:
 	pkgsrc/multimedia/libvdpau/patches: patch-src_Makefile.in

 Log Message:
 Solaris fix from maintainer Aleksey Cheusov in PR 44611.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/multimedia/libvdpau/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/multimedia/libvdpau/patches/patch-src_Makefile.in

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

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/44611: libvdpau fails to build on SunOS [patch]
Date: Sun, 20 Feb 2011 23:01:12 +0100

 On Sun, Feb 20, 2011 at 10:05:00AM +0000, cheusov@tut.by wrote:
 >    libtool: link: cc -m64 -G -z defs -h libvdpau.so.1 -o .libs/libvdpau.so.1.0.0  .libs/vdpau_wrapper.o   -L/tmp/obj-pkgsrc/multimedia/libvdpau2/work/.buildlink/lib -lc  -m64 -Wl,-R/usr/pkg/lib  
 >    Undefined                       first referenced
 >     symbol                             in file
 >    XFree                               .libs/vdpau_wrapper.o
 >    ld: fatal: symbol referencing errors. No output written to .libs/libvdpau.so.1.0.0
 >    gmake[2]: *** [libvdpau.la] Error 1

 How about explicitly linking against libXt instead?

 Joerg

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44611: libvdpau fails to build on SunOS [patch]
Date: Sun, 6 Mar 2011 05:10:34 +0000

 On Sun, Feb 20, 2011 at 10:05:04PM +0000, Joerg Sonnenberger wrote:
  >  >    Undefined                       first referenced
  >  >     symbol                             in file
  >  >    XFree                               .libs/vdpau_wrapper.o
  >  >    ld: fatal: symbol referencing errors. No output written to .libs/libvdpau.so.1.0.0
  >  >    gmake[2]: *** [libvdpau.la] Error 1
  >  
  >  How about explicitly linking against libXt instead?

 I assume you mean libX11...

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: pkg-manager->cheusov
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Wed, 15 May 2013 15:29:44 +0000
Responsible-Changed-Why:
Mine


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