suggestion for adding sdk/lib to pluginapp.bin or libuno_sal.so symlink in ure/lib
Richard PALO
richard.palo at free.fr
Tue May 20 22:13:42 PDT 2014
Hi, I'm tinkering with lo 4.2.4.2 and am having a bit of an issue
building pluginapp.bin in the extensions path, as it needs libuno_sal.so
The following is where all the flavours are found in the build tree:
> $ find . -name 'libuno_sal.so*' | xargs stat -c"%N"
> ‘./instdir/sdk/lib/libuno_sal.so’ -> ‘../../ure-link/lib/libuno_sal.so.3’
> ‘./instdir/ure/lib/libuno_sal.so.3’
> ‘./instdir/ure/lib/libuno_sal.so.3-gdb.py’
> ‘./workdir/Dep/LinkTarget/Library/libuno_sal.so.3.d’
> ‘./workdir/LinkTarget/Library/libuno_sal.so.3.objectlist’
> ‘./workdir/LinkTarget/Library/libuno_sal.so.3.exports’
> ‘./workdir/Headers/Library/libuno_sal.so.3’
This is the error encountered:
==============================
S=/var/tmp/pkgsrc/misc/libreoffice4/work/libreoffice-4.2.4.2 &&
I=$S/instdir && W=$S/workdir && g++ -Wl,-z,origin
'-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib' -L$I/ure/lib -L$I/program
-z nodefs $W/CxxObject/extensions/source/plugin/unx/npwrap.o
$W/CxxObject/extensions/source/plugin/unx/npnapi.o -Wl,--start-group
$W/LinkTarget/StaticLibrary/libplugcon.a -lm -lnsl -lsocket -lXt
-lXext -lX11 -ldl -L/opt/local/lib -Wl,-R/opt/local/lib -lgthread-2.0
-lpthread -lthread -Wl,-R/opt/local/lib -lglib-2.0 -lintl
-L/opt/local/lib -Wl,-R/opt/local/lib -lgtk-x11-2.0 -Wl,-R/opt/local/lib
-lgdk-x11-2.0 -Wl,-R/opt/local/lib -lpangocairo-1.0 -Wl,-R/opt/local/lib
-latk-1.0 -Wl,-R/opt/local/lib -lcairo -Wl,-R/opt/local/lib -lgio-2.0
-Wl,-R/opt/local/lib -lpangoft2-1.0 -Wl,-R/opt/local/lib -lpango-1.0
-Wl,-R/opt/local/lib -lfontconfig -Wl,-R/opt/local/lib -lfreetype
-Wl,-R/opt/local/lib -lgdk_pixbuf_xlib-2.0 -Wl,-R/opt/local/lib
-lgmodule-2.0 -lpthread -lthread -Wl,-R/opt/local/lib -lgdk_pixbuf-2.0
-Wl,-R/opt/local/lib -lgobject-2.0 -Wl,-R/opt/local/lib -lglib-2.0
-lintl -L/opt/local/lib -Wl,-R/opt/local/lib -lgtk-x11-2.0
-Wl,-R/opt/local/lib -lgdk-x11-2.0 -Wl,-R/opt/local/lib -lpangocairo-1.0
-Wl,-R/opt/local/lib -latk-1.0 -Wl,-R/opt/local/lib -lcairo
-Wl,-R/opt/local/lib -lgdk_pixbuf-2.0 -Wl,-R/opt/local/lib -lgio-2.0
-Wl,-R/opt/local/lib -lpangoft2-1.0 -Wl,-R/opt/local/lib -lpango-1.0
-Wl,-R/opt/local/lib -lgobject-2.0 -Wl,-R/opt/local/lib -lglib-2.0
-lintl -Wl,-R/opt/local/lib -lfontconfig -Wl,-R/opt/local/lib -lfreetype
-Wl,--end-group -Wl,--no-as-needed -luno_sal -o $I/program/pluginapp.bin
ld: fatal: library -luno_sal: not found
=================================
Either 'sdk/lib' needs to be added as a runpath-link (which works fine
manually) or a symlink to libuno_sal.so.3 would need to be created in
'ure/lib' as that path is already used.
Thanks in advance for suggestions on how one might successfully do this,
it doesn't seem intuitive looking at the makefiles in
${src}/extensions/Executable_pluginapp.bin.mk and
${src}/sal/Library_sal.mk
FWIW, this is building with patches on pkgsrc under SunOS with gcc and
solaris ld so don't be too worried about the noise in the above fragment.
More information about the LibreOffice
mailing list