On Mon, Nov 07, 2011 at 06:08:36AM -0800, Pedro Giffuni wrote:
> OK
> hmm.. you asked for it ;)
> 
> =============
> Building module vcl
> =============
> 
> Entering /usr/ports/editors/openoffice.org-3-devel/work/ooo/main/vcl/prj
> 
> cd .. && gmake  -r -j1 
> [ build LNK ] Library/libvcl.so

splitting the command:

c++ -shared 
-Wl,-z,noexecstack 
'-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib' 
'-Wl,-rpath-link,$O/lib' 
-Wl,-rpath-link,/lib:/usr/lib 
-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  
-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 
-li18nisolang1gcc3 
-li18npaper 
-li18nutilgcc3 
-ljvmaccessgcc3 
-lstlport_gcc 
-luno_cppu 
-luno_sal 
-lvos3gcc3 
-lfreetype  

-Wl,--start-group  
-Wl,--end-group 
-o $W/LinkTarget/Library/libvcl.so


* you have the libraries: -licuuc -licule
* the linker search path: -L/usr/local/lib
* you don't have /usr/local/lib in the -rpath-link

> Also:
> 
> ls /usr/local/lib/libicu*
> /usr/local/lib/libicudata.so      /usr/local/lib/libiculx.so
> /usr/local/lib/libicudata.so.48   /usr/local/lib/libiculx.so.48
> /usr/local/lib/libicudata.so.48.1 /usr/local/lib/libiculx.so.48.1
> /usr/local/lib/libicui18n.so      /usr/local/lib/libicutest.so
> /usr/local/lib/libicui18n.so.48   /usr/local/lib/libicutest.so.48
> /usr/local/lib/libicui18n.so.48.1 /usr/local/lib/libicutest.so.48.1
> /usr/local/lib/libicuio.so        /usr/local/lib/libicutu.so
> /usr/local/lib/libicuio.so.48     /usr/local/lib/libicutu.so.48
> /usr/local/lib/libicuio.so.48.1   /usr/local/lib/libicutu.so.48.1
> /usr/local/lib/libicule.so        /usr/local/lib/libicuuc.so
> /usr/local/lib/libicule.so.48     /usr/local/lib/libicuuc.so.48
> /usr/local/lib/libicule.so.48.1   /usr/local/lib/libicuuc.so.48.1
> 
> I see the path is right, 

you are missing the runtime linker path. This may or may not be the
problem, depending on your system configuration. In Fedora
/usr/local/lib[64] is not in the linker's default search path (manual
tweak of /etc/ld.so.conf is required). So in Fedora, -L/usr/local/lib 
is not enough.

By the way, why do have icu in /usr/local/lib? Is this the default path?
Do you have another icu version in another directory?

> however it's not clear where the iculibs
> are added in the SYSTEM_ICU case, 

nowhere, AFAIK.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpb7q7VsDukX.pgp
Description: PGP signature

Reply via email to