Questions in building

Dehua Xu dehua.xu at cs2c.com.cn
Tue Mar 12 02:07:39 PDT 2013


Hello all
I met a building error in sot module, which is described in detail as
follows:
OS: fedora17 or ubuntu12.10
Compiler: gcc4.7 g++4.7
Source code: OOO330_m20
=============
Building module sot
=============
Entering /mnt/main/sot/inc
Entering /mnt/main/sot/source/sdstor
Entering /mnt/main/sot/source/base
Entering /mnt/main/sot/source/unoolestorage
Entering /mnt/main/sot/util
Making: libsotlx.so
../unxlngx6.pro/slo/ucbstorage.o: In function `UCBStorage_Impl::Commit()':
ucbstorage.cxx:(.text+0xc948): undefined reference to `non-virtual thunk
to utl::OOutputStreamWrapper::acquire()'
/usr/bin/ld: ../unxlngx6.pro/slo/ucbstorage.o: relocation R_X86_64_PC32
against undefined symbol `_ZThn40_N3utl20OOutputStreamWrapper7acquireEv'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
dmake: Error code 1, while making '../unxlngx6.pro/lib/libsotlx.so'
I tried to set CC="gcc -fPIC" in LinuxX86-64Env.set.sh and add CFLAGSCC=
-fPIC -pipe $(ARCH_FLAGS) to unxlng.mk, but didn't succeed.
So is there anyone that knows how to solve it? Thanks in advance.
Regards,
-- 

Dehua Xu
dehua.xu at cs2c.com.cn


More information about the LibreOffice mailing list