[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#578023: openoffice.org on GNU/kFreeBSD



"fakeroot debian/rules binary"
   it fails with
      debian/ure/usr/lib/openoffice/ure/bin/regcomp -revoke
      ...
      debian/ure/usr/lib/openoffice/ure/bin/javaldx: error while loading
             shared libraries: libuno_sal.so.3: cannot open shared object
             file: No such file ordirectory
      debian/ure/usr/lib/openoffice/ure/bin/regcomp.bin: error while
             loading shared libraries: libuno_sal.so.3: cannot open shared
             object file: No such file or directory

export LD_LIBRARY_PATH=debian/ure/usr/lib/openoffice/ure/lib/
"fakeroot debian/rules binary"

Mmh. then something is wrong, because that should actually work. (There's
a RPATH set)


The problem is in our ld.so,
resp. the generic implementation in eglibc uses only environment variable LD_ORIGIN_PATH, while linux's one have also

diff -ub elf/dl-origin.c sysdeps/unix/sysv/linux/dl-origin.c:

+/* On Linux >= 2.1 systems which have the dcache implementation we can get
+   the path of the application from the /proc/self/exe symlink.  Try this
+   first and fall back on the generic method if necessary.  */

+  len = INTERNAL_SYSCALL (readlink, err, 3, "/proc/self/exe", linkval,
+                         sizeof (linkval));


Our /proc also have the same symlink, so we could just use
similar implementation. I will take care about this part.

Cheers

		Petr




Reply to: