From owner-freebsd-openoffice@FreeBSD.ORG Sat Jan 22 16:00:51 2005 Return-Path: Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D954416A4CE for ; Sat, 22 Jan 2005 16:00:51 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A88E143D3F for ; Sat, 22 Jan 2005 16:00:51 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0MG0pRf045426 for ; Sat, 22 Jan 2005 16:00:51 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0MG0ptq045425; Sat, 22 Jan 2005 16:00:51 GMT (envelope-from gnats) Date: Sat, 22 Jan 2005 16:00:51 GMT Message-Id: <200501221600.j0MG0ptq045425@freefall.freebsd.org> To: openoffice@FreeBSD.org From: Jason Bacon Subject: Re: ports/75039: OpenOffice 1.1.2 javaldx crashes at startup X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jason Bacon List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2005 16:00:52 -0000 The following reply was made to PR ports/75039; it has been noted by GNATS. From: Jason Bacon To: Chris Bongaarts Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: ports/75039: OpenOffice 1.1.2 javaldx crashes at startup Date: Sat, 22 Jan 2005 09:52:11 -0600 (CST) Interesting... I've actually never used an upgrade - as always, I reformatted everything except /usr, and there I dropped to single user mode and rm -rf'd everthing except home before installing. I did this twice this time around, on the assumption that something may have gotten corrupted during the first install, so I was careful not to stray from standard procedures the second time around. My original ld-elf: <<>> /home/bacon 372 # ls -lo /libexec/ld-elf.so.1 -r-xr-xr-x 1 root wheel - 141604 Nov 4 19:24 /libexec/ld-elf.so.1* I ran chflags anyway, and it had no effect. Interesting part is, rebuilding it did the trick. <<>> /usr/src/libexec/rtld-elf 386 # make obj /usr/obj/usr/src/libexec/rtld-elf created for /usr/src/libexec/rtld-elf <<>> /usr/src/libexec/rtld-elf 387 # make cc -O -pipe -Wall -DFREEBSD_ELF -DIN_RTLD -I/usr/src/libexec/rtld-elf/i386 -I/u [snip] <<>> /usr/src/libexec/rtld-elf 388 # make install chflags noschg /usr/libexec/ld-elf.so.1 install -s -o root -g wheel -m 555 -fschg -C -b ld-elf.so.1 /libexec install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1 /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 Now openoffice-1.1.3 works, but I'm a bit confused, since it appears make install set schg: <<>> /usr/src/libexec/rtld-elf 393 # ls -lo /libexec/ld-elf.so.1 -r-xr-xr-x 1 root wheel schg 141604 Nov 4 19:24 /libexec/ld-elf.so.1* A little experiment: <<>> /usr/src/libexec/rtld-elf 397 # chflags noschg /libexec/ld-elf.so.1 <<>> /usr/src/libexec/rtld-elf 398 # ls -lo /libexec/ld-elf.so.1 -r-xr-xr-x 1 root wheel - 141604 Nov 4 19:24 /libexec/ld-elf.so.1* OpenOffice still works! <<>> /usr/src/libexec/rtld-elf 399 # chflags schg /libexec/ld-elf.so.1 <<>> /usr/src/libexec/rtld-elf 400 # ls -lo /libexec/ld-elf.so.1 -r-xr-xr-x 1 root wheel schg 141604 Nov 4 19:24 /libexec/ld-elf.so.1* Still works! So rebuilding ld-elf.so.1 did the trick, but not because of the schg flag. Furthermore, the old ld-elf.so.1 and the alleged new one I just built are the same size so I ran a cmp (against one from another machine installed from the same iso image) - it verified that they're identical. I doubt the binary was corrupted during install, since as I said, I did TWO pristine installations with the same results (the second was from a new CD as well). The only other thing the install did was create a link in /usr/libexec, so I removed it and tried running OpenOffice again, but it just said ELF interpreter /usr/libexec/ld-elf.so.1 not found Well, it bugs me that I don't know why it's working, but it is, so thanks! Jason On Sat, 22 Jan 2005, Chris Bongaarts wrote: > FYI, I had a similar problem with bind causing crashes on a box that was > upgraded from 5.2.1. The problem was that the schg flag is set on > /libexec/ld-elf.so.1, and a binary upgrade doesn't account for that. If you > check the timestamp of the ld-elf.so.1 file and it is older than November > 2004, I bet this is the problem. Run "chflags noschg /libexec/ld-elf.so.1", > then copy over the correct binary version, or make obj/make/make install in > /usr/src/libexec/rtld-elf to get a recent copy, and all affected applications > should start working again. > >