You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Liang Weike <we...@cs2c.com.cn> on 2013/03/08 09:37:31 UTC

Building error in sot module

Hi all,

Recently 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/dev6-main/sot/inc

Entering /mnt/dev6-main/sot/source/sdstor

Entering /mnt/dev6-main/sot/source/base

Entering /mnt/dev6-main/sot/source/unoolestorage

Entering /mnt/dev6-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,
Liang Weike