DEV300_m96: rtld difference on FreeBSD

Maho NAKATA <[email protected]> Sun, 30 Jan 2011 15:16:28 +0900 (JST)
Newsgroups gmane.comp.openoffice.devel.porting
Message-ID <[email protected]>
Hi Stephan, Bj=F6rn,

I encountered another build brekage of DEV300_m96 on FreeBSD.
it seems small difference rtld between Linux and FreeBSD.

On FreeBSD 8,

# cd basegfx/unxfbsdi.pro/lib ; ldd ./libbasegfxfi.so =

./libbasegfxfi.so:
/libexec/ld-elf.so.1: ./libbasegfxfi.so: Unexpected inconsistency: depe=
ndency libuno_sal.so.3 not found
./libbasegfxfi.so: exit status 1

On FreeBSD ldd erroneously exit on libbasegfxfi.so when it =

didn't find some libraries.  =


On Linux
maho@:~/DEV300_m96/basegfx/unxlngi6.pro/lib$ ldd ./libbasegfxli.so =

  linux-gate.so.1 =3D>  (0x0040d000)
  libuno_sal.so.3 =3D> not found
  libuno_cppuhelpergcc3.so.3 =3D> not found
  libuno_cppu.so.3 =3D> not found
  libstlport_gcc.so =3D> not found
  libstdc++.so.6 =3D> /usr/lib/libstdc++.so.6 (0x00542000)
  libm.so.6 =3D> /lib/tls/i686/cmov/libm.so.6 (0x00b77000)
  libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x00d8b000)
  libc.so.6 =3D> /lib/tls/i686/cmov/libc.so.6 (0x008d5000)
  /lib/ld-linux.so.2 (0x00e4b000)

problem here on FreeBSD is that ldd fails after it didn't find some lib=
raries,
whereas on Linux, it just says it doesn't found.

It prevents packaging process, so FreeBSD build is broken at instsetoo_=
native
like following:
**************************************************
ERROR: ERROR: unopkg sync --verbose -env:BUNDLED_EXTENSIONS_USER=3D"fil=
e:///work/OOO/debussy8i386/DEV300_m96/ports/editors/openoffice.org-3-de=
vel/work/DEV300_m96/instsetoo_native/unxfbsdi.pro/OpenOffice/archive/in=
stall/en-US_inprogress/OOo_3.4.0_FreeBSD_install-arc_en-US/openoffice.o=
rg3/share/prereg/bundled" -env:UserInstallation=3Dfile:///work/tmp/ooop=
ackaging/i_485471296326978/unxfbsdi.pro/OpenOffice/archive/uno/en-US -e=
nv:UNO_JAVA_JFW_ENV_JREHOME=3Dtrue 2>&1 | failed!
in function: register_extensions
**************************************************

**************************************************
ERROR: Saved logfile: /work/OOO/debussy8i386/DEV300_m96/ports/editors/o=
penoffice.org-3-devel/work/DEV300_m96/instsetoo_native/unxfbsdi.pro/Ope=
nOffice/archive/logging/en-US/log_DEV300_en-US.log
**************************************************
... cleaning the output tree ...
... removing directory /work/tmp/ooopackaging/i_485471296326978 ...
Sun Jan 30 03:54:19 2011 (04:41 min.)
dmake:  Error code 255, while making 'openoffice_en-US.archive'

.=


The relevant part of output of "DEV300_m96/instsetoo_native/unxfbsdi.pr=
o/OpenOffice/archive/logging/en-US/log_DEV300_en-US.log" is =


> /libexec/ld-elf.so.1: Shared object "libbasegfxfi.so" not found, requ=
ired by "libtlfi.so"

Systemcall: unopkg sync --verbose -env:BUNDLED_EXTENSIONS_USER=3D"file:=
///work/OOO/debussy8i386/DEV300_m96/ports/editors/openoffice.org-3-deve=
l/work/DEV300_m96/instsetoo_native/unxfbsdi.pro/OpenOffice/archive/inst=
all/en-US_inprogress/OOo_3.4.0_FreeBSD_install-arc_en-US/openoffice.org=
3/share/prereg/bundled" -env:UserInstallation=3Dfile:///work/tmp/ooopac=
kaging/i_671801296343016/unxfbsdi.pro/OpenOffice/archive/uno/en-US -env=
:UNO_JAVA_JFW_ENV_JREHOME=3Dtrue 2>&1 |
/libexec/ld-elf.so.1: Shared object "libbasegfxfi.so" not found, requir=
ed by "libtlfi.so"
ERROR: Could not execute "unopkg sync --verbose -env:BUNDLED_EXTENSIONS=
_USER=3D"file:///work/OOO/debussy8i386/DEV300_m96/ports/editors/openoff=
ice.org-3-devel/work/DEV300_m96/instsetoo_native/unxfbsdi.pro/OpenOffic=
e/archive/install/en-US_inprogress/OOo_3.4.0_FreeBSD_install-arc_en-US/=
openoffice.org3/share/prereg/bundled" -env:UserInstallation=3Dfile:///w=
ork/tmp/ooopackaging/i_671801296343016/unxfbsdi.pro/OpenOffice/archive/=
uno/en-US -env:UNO_JAVA_JFW_ENV_JREHOME=3Dtrue 2>&1 |"!Exitcode: '256'

It seems we need LD_LIBRARY_PATH at packaging process(?)

Thanks,

-- Nakata Maho http://accc.riken.jp/maho/ , JA OOO http://ja.openoffice=
.org/
http://blog.goo.ne.jp/nakatamaho/ ,GPG: http://accc.riken.jp/maho/maho.=
pgp.txt