NetBSD Problem Report #46983
From he@smistad.uninett.no Wed Sep 19 12:26:24 2012
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 0BED763B907
for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 Sep 2012 12:26:24 +0000 (UTC)
Message-Id: <20120919122619.56CA43D0B5@smistad.uninett.no>
Date: Wed, 19 Sep 2012 14:26:19 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: openoffice3 fails to start properly
X-Send-Pr-Version: 3.95
>Number: 46983
>Category: pkg
>Synopsis: openoffice3 fails to start properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 19 12:30:00 +0000 2012
>Closed-Date: Sat Jun 29 02:34:30 +0000 2013
>Last-Modified: Sat Jun 29 02:34:30 +0000 2013
>Originator: Havard Eidnes
>Release: NetBSD 6.0_RC1
>Organization:
None
>Environment:
System: NetBSD jonsvatnet.uninett.no 6.0_RC1 NetBSD 6.0_RC1 (JONSVATNET) #9: Mon Aug 20 12:57:46 CEST 2012 he@jonsvatnet.uninett.no:/usr/obj/sys/arch/i386/compile/JONSVATNET i386
Architecture: i386
Machine: i386
>Description:
I've recently upgraded the packages on my laptop using
"pkgin", and after that upgrade, openoffice3 fails to work.
When started either with or without a document file name given
as argument, it fails to start and spews
DB->pget: method not permitted before handle's open method
terminate called after throwing an instance of 'com::sun::star::lang::DisposedException'
DB->pget: method not permitted before handle's open method
on stderr and simply exists.
>How-To-Repeat:
Try a recently updated openoffice3 on 6.0_RC1, watch it fail
to start properly.
>Fix:
Don't know, sorry.
>Release-Note:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Sat, 10 Nov 2012 09:18:07 +0000
(sent to gnats@ instead of gnats-bugs@)
------
From: Havard Eidnes <he@NetBSD.org>
To: gnats@netbsd.org
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Fri, 09 Nov 2012 11:59:16 +0100 (CET)
Hi,
I've done more testing, this time with two i386 systems running
NetBSD 6.0 and NetBSD 5.1.2 respectively, both using the binary
packages from ftp.netbsd.org from 6.0_2012Q3 and 5.1_2012Q3
respectively.
On the NetBSD 5.1.2 system, openoffice3 works the way I'm used
to -- you can click "Text document" in the opening frame, and it
will open a text editing window.
On the NetBSD 6.0 system, openoffice3 gets a segmentation fault
early during startup.
So it appears that openoffice3 3.1.1nb31 is broken in NetBSD/i386
6.0.
Regards,
- H?vard
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Tue, 12 Mar 2013 00:39:55 +0900
The attached patch to www/curl and misc/openoffice3 makes
openoffice3 binary work on pkgsrc HEAD and NetBSD/i386 6.0.1.
- openoffice3 binary in pkgsrc-2012Q1 works, and pkgsrc-2012Q2 doesn't
- per investigation by Yasushi Oshima,
openoffice3 binary using pkgsrc-HEAD 20120415 works, and 20120418 doesn't
- only www/curl was updated from 7.24.0 to 7.25.0 in that period
http://mail-index.netbsd.org/pkgsrc-changes/2012/04/17/msg071234.html
- curl-config command was changed in 7.25.0 that no longer prints
"-Wl,-R/usr/pkg/lib" on "curl-config --libs"
- openoffice3 build failed due to lack of the above curl linkflags
and patch-ch and patch-cs were changed to explicitly pass
-Wl,-rpath,/usr/pkg/lib instead of the original "$ORIGIN"
http://mail-index.netbsd.org/pkgsrc-changes/2012/06/29/msg074788.html
- probably that $ORIGIN value is mandatory for all possible necessary
libraries on openoffice3 build (but not sure how this could cause segv)
The patch just changes:
- make "curl-config --libs" also return @LDFLAGS@ that will contain
"-Wl,-R/usr/pkg/lib" (not sure why only --static-libs has it)
- revert patch-ch rev 1.3 and patch-cs rev 1.4 to pass $ORIGIN for -rpath
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/misc/openoffice3/patches/patch-ch.diff?r1=1.2&r2=1.3
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/misc/openoffice3/patches/patch-cs.diff?r1=1.3&r2=1.4
openoffice3-3.1.1nb40 in HEAD works fine on NetBSD/i386 6.0.1
with this patch.
Index: misc/openoffice3/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/misc/openoffice3/distinfo,v
retrieving revision 1.33
diff -u -r1.33 distinfo
--- misc/openoffice3/distinfo 29 Jun 2012 12:36:39 -0000 1.33
+++ misc/openoffice3/distinfo 10 Mar 2013 16:36:25 -0000
@@ -56,7 +56,7 @@
SHA1 (patch-bw) = 223963fe59b71468420a697d8ea27c153b9f37ce
SHA1 (patch-bx) = 157878e1fb4297f118ed0bbf06009506666fbc1c
SHA1 (patch-by) = 1612b765467e51ca7498497d38a0bb6ac694f9a6
-SHA1 (patch-ch) = 1e456a34ebcf8639aa1a976e8c5fd05d1ef3ef5c
+SHA1 (patch-ch) = 754a8df8c7002cfee53edf288cfc13fbc8d7db15
SHA1 (patch-ci) = 4743cee1c391e04a53bd83f6ae7e58e737d08d1e
SHA1 (patch-cj) = 45ff359ec795e5ef5c692e954d88912c74017162
SHA1 (patch-ck) = 01925efa75759b3b8efda3ab109b0f6481f45a7f
@@ -64,7 +64,7 @@
SHA1 (patch-configmgr_source_treemgr_templateimpl.hxx) = d34ed7ddfcd879072993f84e44b32e52c961dffe
SHA1 (patch-cp) = 35151ba658859c9d116ccdf44ec372c9e66435b1
SHA1 (patch-cq) = 6691fd7fa330db000ec5a9319bf9030b83aa593d
-SHA1 (patch-cs) = 49b457e23f9edca560abee0acfbbe5ea64b5ea1a
+SHA1 (patch-cs) = 0e5736bf2544dd8d3c5e2b54d4c8c47227b7ef01
SHA1 (patch-ct) = a06c5cbc543acecb4f18e858cd844302bbdb50b4
SHA1 (patch-cu) = b930fd94413c2bdf23ea94b074e3bb5e93784009
SHA1 (patch-cv) = 2e14a54d369a255ee39fcec7d4f1d2b11a8f4d2e
Index: misc/openoffice3/patches/patch-ch
===================================================================
RCS file: /cvsroot/pkgsrc/misc/openoffice3/patches/patch-ch,v
retrieving revision 1.3
diff -u -r1.3 patch-ch
--- misc/openoffice3/patches/patch-ch 29 Jun 2012 12:36:39 -0000 1.3
+++ misc/openoffice3/patches/patch-ch 10 Mar 2013 16:36:25 -0000
@@ -112,7 +112,7 @@
+
+# default linker flags
+LINKFLAGSDEFS*=-Wl,-z,defs
-+LINKFLAGSRUNPATH*=-Wl,-rpath,${PREFIX}/lib
++LINKFLAGSRUNPATH*=-Wl,-rpath,\''$$ORIGIN'\'
+LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGSRUNPATH)
+
+# linker flags for linking applications
Index: misc/openoffice3/patches/patch-cs
===================================================================
RCS file: /cvsroot/pkgsrc/misc/openoffice3/patches/patch-cs,v
retrieving revision 1.4
diff -u -r1.4 patch-cs
--- misc/openoffice3/patches/patch-cs 29 Jun 2012 12:36:39 -0000 1.4
+++ misc/openoffice3/patches/patch-cs 10 Mar 2013 16:36:25 -0000
@@ -112,7 +112,7 @@
+
+# default linker flags
+LINKFLAGSDEFS*=-Wl,-z,defs
-+LINKFLAGSRUNPATH*=-Wl,-rpath,${PREFIX}/lib
++LINKFLAGSRUNPATH*=-Wl,-rpath,\''$$ORIGIN'\'
+LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGSRUNPATH)
+
+# linker flags for linking applications
Index: www/curl/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/www/curl/distinfo,v
retrieving revision 1.83
diff -u -r1.83 distinfo
--- www/curl/distinfo 10 Mar 2013 13:21:05 -0000 1.83
+++ www/curl/distinfo 10 Mar 2013 16:36:25 -0000
@@ -4,4 +4,5 @@
RMD160 (curl-7.29.0.tar.bz2) = 50c2ee716736dc0f1de26e032f525e7511912b95
Size (curl-7.29.0.tar.bz2) = 2556495 bytes
SHA1 (patch-aa) = 07e12cd0576b87cfed74a6a2bf8dd42cb2f5a570
+SHA1 (patch-curl-config.in) = 1cdfcc7e419d8e1c5abba607f16f3e1f8dc74355
SHA1 (patch-lib_multi.c) = ead077ecdb819081e7a271feb6e249a20e025f75
--- /dev/null
+++ www/curl/patches/patch-curl-config.in
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- curl-config.in.orig 2012-08-08 21:38:25.000000000 +0000
++++ curl-config.in
+@@ -148,9 +148,9 @@
+ CURLLIBDIR=""
+ fi
+ if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
+- echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
++ echo ${CURLLIBDIR}-lcurl @LDFLAGS@ @LIBCURL_LIBS@
+ else
+- echo ${CURLLIBDIR}-lcurl
++ echo ${CURLLIBDIR}-lcurl @LDFLAGS@
+ fi
+ ;;
+
---
Izumi Tsutsui
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Mon, 11 Mar 2013 17:37:31 +0100
On Mon, Mar 11, 2013 at 03:40:13PM +0000, Izumi Tsutsui wrote:
> - revert patch-ch rev 1.3 and patch-cs rev 1.4 to pass $ORIGIN for -rpath
I disagree with this part. We don't support $ORIGIN e.g. on NetBSD and
it shouldn't be used in pkgsrc.
Joerg
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Tue, 12 Mar 2013 03:09:02 +0900
joerg@ wrote:
> On Mon, Mar 11, 2013 at 03:40:13PM +0000, Izumi Tsutsui wrote:
> > - revert patch-ch rev 1.3 and patch-cs rev 1.4 to pass $ORIGIN for -rpath
>
> I disagree with this part. We don't support $ORIGIN e.g. on NetBSD and
> it shouldn't be used in pkgsrc.
If you can't build working binaries, such policy without analysys
doesn't make sense.
---
Izumi Tsutsui
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Mon, 11 Mar 2013 19:30:54 +0100
On Mon, Mar 11, 2013 at 06:10:04PM +0000, Izumi Tsutsui wrote:
> joerg@ wrote:
>
> > On Mon, Mar 11, 2013 at 03:40:13PM +0000, Izumi Tsutsui wrote:
> > > - revert patch-ch rev 1.3 and patch-cs rev 1.4 to pass $ORIGIN for -rpath
> >
> > I disagree with this part. We don't support $ORIGIN e.g. on NetBSD and
> > it shouldn't be used in pkgsrc.
>
> If you can't build working binaries, such policy without analysys
> doesn't make sense.
$ORIGIN simply doesn't work, as such it can't be correct. I haven't done
a full analysis to understand why the patch doesn't work or changing it
back seems to fix the issue. What does end up in the final binary in
both cases (with and without the patches)?
Joerg
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Tue, 12 Mar 2013 23:59:13 +0900
joerg@ wrote:
> On Mon, Mar 11, 2013 at 06:10:04PM +0000, Izumi Tsutsui wrote:
> > joerg@ wrote:
> >
> > > On Mon, Mar 11, 2013 at 03:40:13PM +0000, Izumi Tsutsui wrote:
> > > > - revert patch-ch rev 1.3 and patch-cs rev 1.4 to pass $ORIGIN for -rpath
> > >
> > > I disagree with this part. We don't support $ORIGIN e.g. on NetBSD and
> > > it shouldn't be used in pkgsrc.
> >
> > If you can't build working binaries, such policy without analysys
> > doesn't make sense.
>
> $ORIGIN simply doesn't work, as such it can't be correct. I haven't done
> a full analysis to understand why the patch doesn't work or changing it
> back seems to fix the issue. What does end up in the final binary in
> both cases (with and without the patches)?
You can simply test it:
# pkg_add http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.0_2012Q4/All/openoffice3
% soffice
With the original patches (i.e. package binaries currently available),
soffice hangs (or dumps core, seems to depend on environments)
right after startup splash window shows all modules are loaded.
With the reverted patches (without -Wl,-rpath,${PREFIX}/lib),
soffice just works and I could create slides for event last weekend.
Oshima-san also reports that removing whole
"LINKFLAGSRUNPATH*=-Wl,-rpath,${PREFIX}/lib"
line also makes soffice binary work.
Does it make sense for you?
Probably unconditional "-rpath,/usr/pkg/lib" makes some openoffice3
internal binaries loading wrong libs.
---
Izumi Tsutsui
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46983 CVS commit: pkgsrc/www/curl
Date: Sun, 17 Mar 2013 21:33:34 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Sun Mar 17 21:33:34 UTC 2013
Modified Files:
pkgsrc/www/curl: Makefile distinfo
Added Files:
pkgsrc/www/curl/patches: patch-curl-config.in
Log Message:
Make "curl-config --libs" return proper ldflags for shared libraries.
After curl 7.25.0 update (imported to pkgsrc at 20120417),
"curl-config --libs" no longer returns "-Wl,-R/usr/pkg/lib"
while "curl-config --static-libs" still returns it.
Fixes the root cause of libcurl part of PR pkg/46567, and this is
also required to fix openoffice3 issue as mentioned in PR pkg/46983.
The problem is tracked and reported by Yasushi Oshima.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 pkgsrc/www/curl/Makefile
cvs rdiff -u -r1.83 -r1.84 pkgsrc/www/curl/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/curl/patches/patch-curl-config.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/46983 CVS commit: pkgsrc/misc/openoffice3
Date: Sun, 17 Mar 2013 21:37:31 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Sun Mar 17 21:37:31 UTC 2013
Modified Files:
pkgsrc/misc/openoffice3: Makefile distinfo
pkgsrc/misc/openoffice3/patches: patch-ch patch-cs
Log Message:
Remove LINKFLAGSRUNPATH lines that specify -Wl,-rpath,${PREFIX}/lib.
These lines were changed as workaround of libcurl part of PR pkg/46567,
but the actual libcurl problem in curl-config is now fixed and
these unconditional -rpath flags seem to cause non-working binaries
as mentioned in PR pkg/46983.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 pkgsrc/misc/openoffice3/Makefile
cvs rdiff -u -r1.33 -r1.34 pkgsrc/misc/openoffice3/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/misc/openoffice3/patches/patch-ch
cvs rdiff -u -r1.4 -r1.5 pkgsrc/misc/openoffice3/patches/patch-cs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: David Holland <dholland-gnats@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Sun, 2 Jun 2013 00:43:36 +0000
Not sent to gnats.
------
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
he@NetBSD.org
Subject: Re: pkg/46983: openoffice3 fails to start properly
Date: Mon, 11 Mar 2013 19:43:37 +0100
On Mon, Mar 11, 2013 at 06:35:02PM +0000, Joerg Sonnenberger wrote:
> $ORIGIN simply doesn't work, as such it can't be correct. I haven't done
> a full analysis to understand why the patch doesn't work or changing it
> back seems to fix the issue. What does end up in the final binary in
> both cases (with and without the patches)?
Additionally, it might be necessary to export LD_LIBRARY_PATH, if the
build depends on executing binaries during the build. I couldn't find
shared libraries when looking at the PLIST, so this might be a wild
guess.
Joerg
State-Changed-From-To: open->closed
State-Changed-By: tsutsui@NetBSD.org
State-Changed-When: Sat, 29 Jun 2013 02:34:30 +0000
State-Changed-Why:
openoffice3 works fine on NetBSD/i386 6.1 + pkgsrc-2013Q1.
>Unformatted:
(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.