Hello People,
I need help with compiling OpenOffice2. I always get the same error after hours
of compiling.
There are a cuple of threads about dependencies to FireFox-1.5 or FireFox-1.0.7
LDAP-headers.
in this mailing-list. Other say install OpenLDAP and advise OpenOffice2 to use
the OpenLDAP-Headers
by passing "--enable-openldap" to the configure-script of OpenOffice2. I tried
it but I don't get
the clue?!?
*********************************************************************************************
Recompiling FireFox-1.0.7 without configure-option "disable-ldap" gives me some
ldap-headers:
*********************************************************************************************
# ls -l /usr/include/firefox-1.0.7/ldap/
insgesamt 120
-rw-r--r-- 1 root root 10311 2002-03-26 21:52 disptmpl.h
-rw-r--r-- 1 root root 1570 2002-03-26 21:52 iutil.h
-rw-r--r-- 1 root root 11455 2002-03-26 21:53 lber.h
-rw-r--r-- 1 root root 7287 2002-03-26 21:53 ldap-deprecated.h
-rw-r--r-- 1 root root 26623 2002-03-26 21:53 ldap-extension.h
-rw-r--r-- 1 root root 1488 2002-03-26 21:53 ldap.h
-rw-r--r-- 1 root root 1975 2002-03-26 21:53 ldap-platform.h
-rw-r--r-- 1 root root 6902 2002-03-26 21:53 ldappr.h
-rw-r--r-- 1 root root 6447 2002-03-26 21:53 ldap_ssl.h
-rw-r--r-- 1 root root 18361 2005-12-19 21:25 ldap-standard.h
-rw-r--r-- 1 root root 7151 2002-03-26 21:53 ldap-to-be-deprecated.h
-rw-r--r-- 1 root root 3646 2002-03-26 21:53 srchpref.h
************************************************
Installing OpenLDAP gives me some other Headers:
************************************************
# ls -l /usr/include/ldap*
-rw-r--r-- 1 root root 9673 2005-12-18 22:52 /usr/include/ldap_cdefs.h
-rw-r--r-- 1 root root 1945 2005-12-18 22:52 /usr/include/ldap_features.h
-rw-r--r-- 1 root root 52617 2005-12-18 22:52 /usr/include/ldap.h
-rw-r--r-- 1 root root 9523 2005-12-18 22:52 /usr/include/ldap_schema.h
-rw-r--r-- 1 root root 3539 2005-12-18 22:52 /usr/include/ldap_utf8.h
*************************************************************
But there is always the same error when OpenOffice2 compiles:
*************************************************************
-------------
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap
------------------------------
Making: ../../../unxlngi6.pro/misc/ldapbe.dpc
dmake subdmake=true -f makefile.mk product="full" depend=t ALLDPC
Making : Dependencies
touch ../../../unxlngi6.pro/misc/ldapbe.dpc
------------------------------
Making: ../../../unxlngi6.pro/slo/componentdef.obj
g++ -Wreturn-type -fmessage-length=0 -c -I. -I. -I../inc -I../../../source/inc
-I../../../inc -I../../../unx/inc -I../../../unxlngi6.pro/inc -I.
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/stl
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/external
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc
-I/data/src/OOo_2.0.0rc3_src/solenv/unxlngi6/inc
-I/data/src/OOo_2.0.0rc3_src/solenv/inc -I/data/src/OOo_2.0.0rc3_src/res
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/stl
-I/data/src/OOo_2.0.0rc3_src/solenv/inc/Xp31 -INO_JAVA_HOME/include
-INO_JAVA_HOME/include/linux -INO_JAVA_HOME/include/native_threads/include
-I/usr/include
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/mozilla -I.
-I../../../res -I. -Os -fno-strict-aliasing -Wuninitialized -DWITH_OPENLDAP
-pipe -Wno-ctor-dtor-privacy
-fexceptions -fno-enforce-eh-specs -fpic -DLINUX -DUNX -DVCL -DGCC -DC341
-DINTEL
-DGXX_INCLUDE_PATH=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3
-DCVER=C341
-D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
-D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3
-DSUPD=680 -DPRODUCT -DNDEBUG
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DOOO680
-DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxlngi6.pro/slo/componentdef.o
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/componentdef.cxx
if ( -e ../../../unxlngi6.pro/slo/componentdef.o) touch
../../../unxlngi6.pro/slo/componentdef.obj
------------------------------
Making: ../../../unxlngi6.pro/slo/ldapaccess.obj
g++ -Wreturn-type -fmessage-length=0 -c -I. -I. -I../inc -I../../../source/inc
-I../../../inc -I../../../unx/inc -I../../../unxlngi6.pro/inc -I.
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/stl
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/external
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc
-I/data/src/OOo_2.0.0rc3_src/solenv/unxlngi6/inc
-I/data/src/OOo_2.0.0rc3_src/solenv/inc -I/data/src/OOo_2.0.0rc3_src/res
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/stl
-I/data/src/OOo_2.0.0rc3_src/solenv/inc/Xp31 -INO_JAVA_HOME/include
-INO_JAVA_HOME/include/linux -INO_JAVA_HOME/include/native_threads/include
-I/usr/include
-I/data/src/OOo_2.0.0rc3_src/solver/680/unxlngi6.pro/inc/mozilla -I.
-I../../../res -I. -Os -fno-strict-aliasing -Wuninitialized -DWITH_OPENLDAP
-pipe -Wno-ctor-dtor-privacy
-fexceptions -fno-enforce-eh-specs -fpic -DLINUX -DUNX -DVCL -DGCC -DC341
-DINTEL
-DGXX_INCLUDE_PATH=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.4.3
-DCVER=C341
-D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
-D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3
-DSUPD=680 -DPRODUCT -DNDEBUG
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DOOO680
-DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxlngi6.pro/slo/ldapaccess.o
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx: In
member function `void extensions::config::ldap::LdapConnection::disconnect()':
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:76:
error: `ldap_unbind_s' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:76:
error: (Each undeclared identifier is reported only once for each function it
appears in.)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx: In
member function `void
extensions::config::ldap::LdapConnection::connectSimple()':
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:151:
error: `ldap_simple_bind_s' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx: In
member function `void
extensions::config::ldap::LdapConnection::initConnection()':
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:171:
error: `ldap_init' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx: In
member function `void
extensions::config::ldap::LdapConnection::getUserProfile(const rtl::OUString&,
const
extensions::config::ldap::LdapUserProfileMap&,
extensions::config::ldap::LdapUserProfile&)':
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:202:
error: `ldap_search_s' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx: In
member function `rtl::OString
extensions::config::ldap::LdapConnection::findUserDn(const rtl::OString&)':
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:241:
error: `ldap_search_s' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx: In
member function `rtl::OString
extensions::config::ldap::LdapConnection::getSingleAttribute(const
rtl::OString&, const rtl::OString&)':
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:280:
error: `ldap_search_s' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:292:
error: `ldap_get_values' undeclared (first use this function)
/data/src/OOo_2.0.0rc3_src/extensions/source/config/ldap/ldapaccess.cxx:297:
error: `ldap_value_free' undeclared (first use this function)
dmake: Error code 1, while making '../../../unxlngi6.pro/slo/ldapaccess.obj'
'---* tg_merge.mk *---'
***********************************************
Here's are the configure-options to OpenOffice:
***********************************************
./configure --prefix=/opt/openoffice-2.0.0 \
--enable-libart \
--enable-libsn \
--enable-openldap \
--with-system-stdlibs \
--with-system-freetype \
--with-system-expat \
--with-system-libxml \
--with-system-zlib \
--with-system-mozilla \
--with-firefox \
--with-system-jpeg \
--with-system-python \
--with-system-db \
--with-system-curl \
--with-system-nas \
--without-java \
--without-fonts \
--disable-gnome-vfs \
--disable-fontooo \
--disable-binfilter \
--with-build-version=BLFS \
--with-package-format=native
**************************************************************
The other packages are compiled as described in the BLFS-BOOK.
Please help me/us. A search in the mailing-list gave me three
other threads with the same error as described above. I'm so
excited in the new application "base". I have been waiting for
such a thing for a long long time. Now there it is but the
strange behaviour in compilation steels me my nervs!!!
THX
hyroglyphix
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page