Hi; After reviewing again the linking I arrived to the conclusion the problem is not in the linking command.
I think the problem is some incompatibility between icu 4.8.1 (which is used by the system) and the very outdated version expected by OOo: http://linuxtesting.org/upstream-tracker/compat_reports/icu4c/4.6.1_to_4.8/abi_compat_report.html For the time being I am building the internal ICU and crossing fingers so that it doesn't cause trouble with some other external libraries :(. cheers, Pedro. --- On Thu, 11/10/11, Ariel Constenla-Haile wrote: > Hello Pedro, > > On Thu, Nov 10, 2011 at 04:34:13PM -0800, Pedro Giffuni > wrote: > > Hi Ariel; > > > > Unfortunately I still have problems building vcl with > > the external ICU: > > > > [ build DEP ] LNK:StaticLibrary/libvclmain.a > > R=/usr/ports/editors/openoffice.org-3-devel/work/ooo > && S=$R/main && O=$S/solver/340/unxfbsdx.pro > && W=$O/workdir && mkdir -p > $W/Dep/LinkTarget/StaticLibrary/ && > RESPONSEFILE=/tmp/gbuild.uNSUdc && cat > ${RESPONSEFILE} /dev/null | xargs -n 200 cat > > $W/Dep/LinkTarget/StaticLibrary/libvclmain.a.d && rm > -f ${RESPONSEFILE} > > [ build DEP ] LNK:Library/libvcl.so > > R=/usr/ports/editors/openoffice.org-3-devel/work/ooo > && S=$R/main && O=$S/solver/340/unxfbsdx.pro > && W=$O/workdir && mkdir -p > $W/Dep/LinkTarget/Library/ && > RESPONSEFILE=/tmp/gbuild.MjHeWC && cat > ${RESPONSEFILE} /dev/null | xargs -n 200 cat > > $W/Dep/LinkTarget/Library/libvcl.so.d && rm -f > ${RESPONSEFILE} > > [ build LNK ] Library/libvcl.so > R=/usr/ports/editors/openoffice.org-3-devel/work/ooo > && > S=$R/main && > O=$S/solver/340/unxfbsdx.pro && > W=$O/workdir && > mkdir -p $W/LinkTarget/Library/ && > c++ -shared > -Wl,-z,noexecstack > -Wl,-z,origin > -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib' > -Wl,-rpath-link,'$O/lib' > > -Wl,-rpath-link=:/lib:/usr/lib:/usr/local/lib <--- > ok > > -Wl,-z,combreloc > -Wl,-z,defs > -L$S/solenv/unxfbsdx/lib > -L$O/lib > -L$S/solenv/unxfbsdx/lib > -L/usr/local/openjdk6/lib > -L/usr/local/openjdk6/jre/lib/amd64 > -L/usr/local/openjdk6/jre/lib/amd64/server > -L/usr/local/openjdk6/jre/lib/amd64/native_threads > > -L/usr/local/lib <--- ok > > -Wl,--hash-style=both > -Wl,--dynamic-list-cpp-new > -Wl,--dynamic-list-cpp-typeinfo > -Wl,-Bsymbolic-functions > -ltl -lutl -lsot -lucbhelper4gcc3 -lbasegfx -lcomphelpgcc3 > -luno_cppuhelpergcc3 > > -licuuc -licule <--- ok > > -li18nisolang1gcc3 -li18npaper -li18nutilgcc3 > -ljvmaccessgcc3 -lstdc++ -luno_cppu -luno_sal -lvos3gcc3 > -lfreetype > .... > -Wl,--start-group -Wl,--end-group -o > $W/LinkTarget/Library/libvcl.so > > the command looks ok > > > > > /usr/ports/editors/openoffice.org-3-devel/work/ooo/main/solver/340/unxfbsdx.pro/workdir/CxxObject/vcl/source/glyphs/gcach_layout.o: > In function > `IcuLayoutEngine::operator()(ServerFontLayout&, > ImplLayoutArgs&)': > > gcach_layout.cxx:(.text+0x7f4): undefined reference to > `uscript_getScript_48' > > gcach_layout.cxx:(.text+0x853): undefined reference to > `icu_48::LayoutEngine::layoutEngineFactory(icu_48::LEFontInstance > const*, int, int, LEErrorCode&)' > > gcach_layout.cxx:(.text+0x8f4): undefined reference to > `icu_48::LayoutEngine::getGlyphs(unsigned int*, > LEErrorCode&) const' > > gcach_layout.cxx:(.text+0x90e): undefined reference to > `icu_48::LayoutEngine::getCharIndices(int*, > LEErrorCode&) const' > > gcach_layout.cxx:(.text+0x92c): undefined reference to > `icu_48::LayoutEngine::getGlyphPositions(float*, > LEErrorCode&) const' > > > /usr/ports/editors/openoffice.org-3-devel/work/ooo/main/solver/340/unxfbsdx.pro/workdir/CxxObject/vcl/source/glyphs/gcach_layout.o: > In function > `IcuFontFromServerFont::~IcuFontFromServerFont()': > > > gcach_layout.cxx:(.text._ZN21IcuFontFromServerFontD0Ev[_ZN21IcuFontFromServerFontD0Ev]+0x13): > undefined reference to > `icu_48::LEFontInstance::~LEFontInstance()' > > > gcach_layout.cxx:(.text._ZN21IcuFontFromServerFontD0Ev[_ZN21IcuFontFromServerFontD0Ev]+0x1c): > undefined reference to `icu_48::UMemory::operator > delete(void*)' > > I thought you already solved this. Didn't you finish > building vcl the > other time? Is your solver clean? or is there a chance that > you tried to > build with the packaged icu and so you have these libs in > solver? Now > looks like it can't find icu 4.8 libs, this may be the case > if the linker > finds first an older icu (like the one in OOo)... > Do you have another icu version in the linker search path? > I can't imagine other root cause :/ > > Regards > -- > Ariel Constenla-Haile > La Plata, Argentina >