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

Richard PALO richard.palo at
Tue May 20 22:13:42 PDT 2014

Hi, I'm tinkering with lo and am having a bit of an issue 
building pluginapp.bin in the extensions path, as it needs

The following is where all the flavours are found in the build tree:
> $ find . -name '*' | xargs stat -c"%N"
> ‘./instdir/sdk/lib/’ -> ‘../../ure-link/lib/’
> ‘./instdir/ure/lib/’
> ‘./instdir/ure/lib/’
> ‘./workdir/Dep/LinkTarget/Library/’
> ‘./workdir/LinkTarget/Library/’
> ‘./workdir/LinkTarget/Library/’
> ‘./workdir/Headers/Library/’

This is the error encountered:
S=/var/tmp/pkgsrc/misc/libreoffice4/work/libreoffice- && 
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 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/ and

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