C++ Macro example: DocumentLoader

Rene Engelhard rene at debian.org
Sat Apr 2 16:19:31 UTC 2016


On Mon, Mar 21, 2016 at 01:56:42PM +0100, Stephan Bergmann wrote:
> Smells like a bug in Debian's packaging of the LibreOffice SDK.  The problem

Not everything which goes wrong somewhere is a bug in a package.

> is the
> 
>   -L""
> 
> in the gcc invocation above.  Per the SDK's settings/settings.mk, that's
> expanded from
> 
>   -L"$(OO_SDK_URE_LIB_DIR)"
> 
> and OO_SDK_URE_LIB_DIR should be set as an environment variable in the SDK's
> setsdkenv_unix.sh.in (when you run the setsdkenv_unix script), but looks
> like in your case is empty or unset, for whatever reason.

When I look in above-mentioned setsdkenv_unix.sh I see:

# URE installation directory.
# Example: OO_SDK_URE_HOME=/opt/libreoffice/ure
OO_SDK_URE_HOME='/usr/lib/libreoffice/ure-link'
export OO_SDK_URE_HOME
[...]
if [ "${OO_SDK_URE_HOME}" ]
then
    OO_SDK_URE_BIN_DIR=${OO_SDK_URE_HOME}/bin
    OO_SDK_URE_LIB_DIR=${OO_SDK_URE_HOME}/lib
    OO_SDK_URE_JAVA_DIR=${OO_SDK_URE_HOME}/share/java
else
    OO_SDK_URE_BIN_DIR=${OFFICE_PROGRAM_PATH}
    OO_SDK_URE_LIB_DIR=${OFFICE_PROGRAM_PATH}
    OO_SDK_URE_JAVA_DIR=${OFFICE_PROGRAM_PATH}/classes
fi
export OO_SDK_URE_BIN_DIR
export OO_SDK_URE_LIB_DIR
export OO_SDK_URE_JAVA_DIR

so it should be set. If I do echos for them:

# ./setsdkenv_unix.sh
/usr/lib/libreoffice/ure-link/bin
/usr/lib/libreoffice/ure-link/lib
/usr/lib/libreoffice/ure-link/share/java

 ************************************************************************
 *
 * SDK environment is prepared for Linux
 *
 * SDK = /usr/lib/libreoffice/sdk
 * Office = /usr/lib/libreoffice
 * URE = /usr/lib/libreoffice/ure-link
 * Make = /usr/bin
 * Zip = /usr/bin
 * cat = /usr/bin
 * sed = /usr/bin
 * C++ Compiler = /usr/bin
 * Java = /usr/lib/jvm/default-java
 * SDK Output directory = /root/openoffice.org4.3_sdk
 * Auto deployment = NO
 *
 ************************************************************************

So it is not empty.

Regards,

Rene


More information about the LibreOffice mailing list