[Libreoffice] Problem building the 3.5 branch on Windows, postgresql related.

Lionel Elie Mamane lionel at mamane.lu
Sat Feb 11 00:33:23 PST 2012

On Thu, Jan 05, 2012 at 02:28:14AM -0500, Kohei Yoshida wrote:

> I'm having trouble building the latest 3.5 branch on Windows.
> First, the postgresql module failed to build due to it not finding
> ldap.h from mozilla.  I had mozilla entirely disabled (I always
> had).

That's a bug that is now fixed (was reported to me over dinner at
FOSDEM). If Mozilla is entirely disabled, PostgreSQL should not try to
use it.

> So I decided to enable it to see if it would solve this.

> Now the postgresql module builds, but it fails in connectivity due to
> unresolved symbols (as follows).

> /MAP /OPT:NOREF -safeseh -nxcompat -dynamicbase -NODEFAULTLIB -RELEASE
> -out:../../../wntmsci12.pro/bin/postgresql-sdbc-impl.uno.dll
> -map:../../../wntmsci12.pro/misc/postgresql-sdbc-impl.uno.map
> -def:../../../wntmsci12.pro/misc/postgresql-sdbc-impl.uno.def
> -implib:../../../wntmsci12.pro/lib/ipostgresql_t2.lib
> ../../../wntmsci12.pro/slo/postgresql-sdbc-impl.uno_version.obj
> ../../../wntmsci12.pro/slb/postgresql-sdbc-impl.uno.lib icppu.lib
> icppuhelper.lib isal.lib isalhelper.lib
> C:/libo/libreoffice-3-5/solver/wntmsci12.pro/lib/libpq.lib ws2_32.lib
> secur32.lib advapi32.lib shell32.lib ssleay32.lib libeay32.lib
> msvcrt.lib msvcprt.lib uwinapi.lib kernel32.lib user32.lib
> oldnames.lib ../../../wntmsci12.pro/misc/postgresql-sdbc-impl.uno.res

>    Creating library ../../../wntmsci12.pro/lib/ipostgresql_t2.lib and
> object ../../../wntmsci12.pro/lib/ipostgresql_t2.exp

> libpq.lib(fe-connect.obj) : error LNK2019: unresolved external symbol
> _ldap_value_free_len at 4 referenced in function _ldapServiceLookup

That's yet another problem :-(

It seems the build variable LDAPSDKLIB is not (properly) set in
your build... It is supposed to contain "nsldap32v50.lib", which
provides these symbols. Could I see your build environment? (In
particular what is the value of "WITH_LDAP", "LDAPSDKLIB",


More information about the LibreOffice mailing list