NetBSD Problem Report #39936

From reinoud@13thmonkey.org  Sun Nov 16 18:43:34 2008
Return-Path: <reinoud@13thmonkey.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 66D8963B874
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 16 Nov 2008 18:43:34 +0000 (UTC)
Message-Id: <20081116184340.AB500660A@aardappel.13thmonkey.org>
Date: Sun, 16 Nov 2008 19:43:40 +0100 (CET)
From: reinoud@NetBSD.org
Reply-To: reinoud@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: xsrc's /usr/X11R7/lib/libGLU.so badly linked; libgcc_s.so linkage?
X-Send-Pr-Version: 3.95

>Number:         39936
>Category:       xsrc
>Synopsis:       xsrc's /usr/X11R7/lib/libGLU.so badly linked; libgcc_s.so linkage?
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mrg
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 16 18:45:00 +0000 2008
>Closed-Date:    Fri Jan 09 16:25:29 +0000 2009
>Last-Modified:  Fri Jan 09 16:25:29 +0000 2009
>Originator:     Reinoud Zandijk
>Release:        NetBSD 5.99.02
>Organization:
NetBSD
>Environment:
System:
NetBSD heethoofdje.13thmonkey.org 5.99.02 NetBSD 5.99.02 (GENERIC) #5: Sat Nov 15 14:01:59 CET 2008
reinoud@heethoofdje.13thmonkey.org:/usr/sources/cvs.netbsd.org/src/sys/arch/i386/compile/GENERIC i386

Architecture: i386
Machine: i386
>Description:
When trying out Google SketchUp in pkgsrc/emulator/wine, i get the 
following error:

err:module:load_builtin_dll failed to load .so lib for builtin 
L"GLU32.dll":
/usr/X11R7/lib/libGLU.so.1: Undefined PLT symbol "_Unwind_Resume" (symnum =
86)
err:module:import_dll Loading library GLU32.dll (which is needed by
L"C:\\Program Files\\Google\\Google SketchUp 6\\SketchUp.exe") failed 
(error
c000007a).

It turns out that libGLU is using the symbol `_Unwind_Resume' that is 
defined in libgcc_s. Asking around it turns out that this symbol should not 
be present/needed by libGLU.

>How-To-Repeat:

>Fix:
Not known, correct linking of libGLU?


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: xsrc-manager->mrg
Responsible-Changed-By: mrg@NetBSD.org
Responsible-Changed-When: Sat, 06 Dec 2008 19:33:44 +0000
Responsible-Changed-Why:
i've taken care of this.


State-Changed-From-To: open->pending-pullups
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Sat, 06 Dec 2008 19:33:44 +0000
State-Changed-Why:
libGLU needed to be linked with "c++ -shared" not "cc -shared".  will submit
pullups for netbsd-5 after more testing.


From: matthew green <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39936 CVS commit: src
Date: Sat,  6 Dec 2008 19:32:05 +0000 (UTC)

 Module Name:	src
 Committed By:	mrg
 Date:		Sat Dec  6 19:32:05 UTC 2008

 Modified Files:
 	src/external/mit/xorg/lib/libGLU: Makefile
 	src/share/mk: bsd.README bsd.lib.mk

 Log Message:
 add LIBISCXX.  if it is != "no", use ${CXX} instead of ${CC} to link
 shared libraries.  use it for the one c++ library we have.

 fixes PR#39936.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 src/external/mit/xorg/lib/libGLU/Makefile
 cvs rdiff -r1.243 -r1.244 src/share/mk/bsd.README
 cvs rdiff -r1.290 -r1.291 src/share/mk/bsd.lib.mk

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

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39936 CVS commit: [netbsd-5] src
Date: Fri,  9 Jan 2009 03:35:51 +0000 (UTC)

 Module Name:	src
 Committed By:	snj
 Date:		Fri Jan  9 03:35:51 UTC 2009

 Modified Files:
 	src/external/mit/xorg/lib/libGLU [netbsd-5]: Makefile
 	src/share/mk [netbsd-5]: bsd.README bsd.lib.mk

 Log Message:
 Pull up following revision(s) (requested by mrg in ticket #242):
 	external/mit/xorg/lib/libGLU/Makefile: revision 1.3
 	share/mk/bsd.README: revision 1.244
 	share/mk/bsd.lib.mk: revision 1.291
 add LIBISCXX.  if it is != "no", use ${CXX} instead of ${CC} to link
 shared libraries.  use it for the one c++ library we have.
 fixes PR#39936.


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.2.8.1 src/external/mit/xorg/lib/libGLU/Makefile
 cvs rdiff -r1.236.2.4 -r1.236.2.5 src/share/mk/bsd.README
 cvs rdiff -r1.289.2.1 -r1.289.2.2 src/share/mk/bsd.lib.mk

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

State-Changed-From-To: pending-pullups->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Fri, 09 Jan 2009 16:25:29 +0000
State-Changed-Why:
all done, 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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.