suggestion for adding sdk/lib to pluginapp.bin or libuno_sal.so symlink in ure/lib

Stephan Bergmann sbergman at redhat.com
Wed May 21 01:56:51 PDT 2014


On 05/21/2014 07:13 AM, Richard PALO wrote:
> 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.

-L$I/sdk/lib should be on the above command line (and is on Linux) via 
-L$(INSTDIR)/$(SDKDIRNAME)/lib in the definition of 
gb_LinkTarget_get_linksearchpath_for_layer in 
solenv/gbuild/platform/com_GCC_class.mk.  No idea why that does not work 
for you on SunOS.

Stephan


More information about the LibreOffice mailing list