Re: [dev] Perl OpenOffice::UNO
On 09/24/09 23:49, Michael Mellinger wrote: I'm trying install the Perl module OpenOffice::UNO and I get the error below (OpenOffice::UNO Error). Has anyone seen this before? I using Sun's compiler and I was wondering C++ compiler was used to compile the Solaris version of OpenOffice and the SDK. Perl seems to be croaking with C++ name mangling. Perl Loader Error DB1 use OpenOffice::UNO; Can't load '/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/OpenOffice/UNO/UNO.so' for module OpenOffice::UNO: ld.so.1: perl: fatal: relocation error: file /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/OpenOffice/UNO/UNO.so: symbol __1cDstdJbad_allocG__vtbl_: referenced symbol not found at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230. = OpenOffice::UNO Error == [r...@dsol2 OpenOffice-UNO-0.06]# make rm -f blib/arch/auto/OpenOffice/UNO/UNO.so LD_RUN_PATH=/opt/openoffice.org/ure/lib CC -L/opt/openoffice.org/ure/lib -G UNO.o -o blib/arch/auto/OpenOffice/UNO/UNO.so \ -L/opt/openoffice.org/ure/lib -luno_salhelperC52 -luno_cppuhelperC52 -luno_cppu -lstlport_sunpro -luno_salhelperC52 \ ld: fatal: library -luno_salhelperC52: not found ld: fatal: library -luno_cppuhelperC52: not found ld: fatal: library -luno_cppu: not found ld: fatal: library -luno_salhelperC52: not found ld: fatal: File processing errors. No output written to I have no idea what the OpenOffice::UNO Perl module is or who wrote it, but it appears that that module expects to find the dynamic libraries of the OOo's URE sub-component and fails. I assume you are on Solaris (the C52 in the libraries' names would indicate this), right? Starting with OOo 3, those libraries are indeed stored at /opt/openoffice.org/ure/lib. What version of OOo do you have installed? Is there anything installed at /opt/openoffice.org and/or /opt/openoffice.org3? -Stephan - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Perl OpenOffice::UNO
I've install OO3.1 and the SDK in /opt/openoffice.org and /opt/openoffice.org3/ Not sure what the breakdown is. Here's a partial list of libs. [mell...@sol3 openoffice.org]$ ls -1 /opt/openoffice.org/ure/lib/libuno* /opt/openoffice.org/ure/lib/libuno_cppuhelperC52.so.3 /opt/openoffice.org/ure/lib/libuno_cppu.so.3 /opt/openoffice.org/ure/lib/libuno_purpenvhelperC52.so.3 /opt/openoffice.org/ure/lib/libuno_salhelperC52.so.3 /opt/openoffice.org/ure/lib/libuno_sal.so.3 Probably a compiler issue. I'm gonna have to dig a little deeper. If OO was compiled with gcc and I'm using Sun's compiler, that might be the issue. -Mike On Fri, Sep 25, 2009 at 3:00 AM, Stephan Bergmann stephan.bergm...@sun.com wrote: On 09/24/09 23:49, Michael Mellinger wrote: I'm trying install the Perl module OpenOffice::UNO and I get the error below (OpenOffice::UNO Error). Has anyone seen this before? I using Sun's compiler and I was wondering C++ compiler was used to compile the Solaris version of OpenOffice and the SDK. Perl seems to be croaking with C++ name mangling. Perl Loader Error DB1 use OpenOffice::UNO; Can't load '/usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/OpenOffice/UNO/UNO.so' for module OpenOffice::UNO: ld.so.1: perl: fatal: relocation error: file /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/OpenOffice/UNO/UNO.so: symbol __1cDstdJbad_allocG__vtbl_: referenced symbol not found at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230. = OpenOffice::UNO Error == [r...@dsol2 OpenOffice-UNO-0.06]# make rm -f blib/arch/auto/OpenOffice/UNO/UNO.so LD_RUN_PATH=/opt/openoffice.org/ure/lib CC -L/opt/openoffice.org/ure/lib -G UNO.o -o blib/arch/auto/OpenOffice/UNO/UNO.so \ -L/opt/openoffice.org/ure/lib -luno_salhelperC52 -luno_cppuhelperC52 -luno_cppu -lstlport_sunpro -luno_salhelperC52 \ ld: fatal: library -luno_salhelperC52: not found ld: fatal: library -luno_cppuhelperC52: not found ld: fatal: library -luno_cppu: not found ld: fatal: library -luno_salhelperC52: not found ld: fatal: File processing errors. No output written to I have no idea what the OpenOffice::UNO Perl module is or who wrote it, but it appears that that module expects to find the dynamic libraries of the OOo's URE sub-component and fails. I assume you are on Solaris (the C52 in the libraries' names would indicate this), right? Starting with OOo 3, those libraries are indeed stored at /opt/openoffice.org/ure/lib. What version of OOo do you have installed? Is there anything installed at /opt/openoffice.org and/or /opt/openoffice.org3? - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org
Re: [dev] Perl OpenOffice::UNO
Yes, that was the missing pieces. Thanks. Here are my notes on how to install the OpenOffice::UNO module on OpenSolaris/Solaris 10. 1. Change equal to match solaris in Makefile.PL } elsif( $config[2] =~ /solaris/ ) { 2. #include sys/vnode.h /* top of UNO.c file */ 3. Remove for the check for spro5 compiler in OO header (around line 55) /opt/openoffice.org/basis3.1/sdk/include/uno/lbnames.h 4. Create symbolic links for libraries. cd /opt/openoffice.org/ure/lib ln -s libuno_cppu.so.3 libuno_cppu.so ln -s libuno_cppuhelperC52.so.3 libuno_cppuhelperC52.so ln -s libuno_sal.so.3 libuno_sal.so ln -s libuno_salhelperC52.so.3 libuno_salhelperC52.so On Fri, Sep 25, 2009 at 10:03 AM, Stephan Bergmann stephan.bergm...@sun.com wrote: On 09/25/09 15:31, Michael Mellinger wrote: I've install OO3.1 and the SDK in /opt/openoffice.org and /opt/openoffice.org3/ Not sure what the breakdown is. Here's a partial list of libs. [mell...@sol3 openoffice.org]$ ls -1 /opt/openoffice.org/ure/lib/libuno* /opt/openoffice.org/ure/lib/libuno_cppuhelperC52.so.3 /opt/openoffice.org/ure/lib/libuno_cppu.so.3 /opt/openoffice.org/ure/lib/libuno_purpenvhelperC52.so.3 /opt/openoffice.org/ure/lib/libuno_salhelperC52.so.3 /opt/openoffice.org/ure/lib/libuno_sal.so.3 Ah, yes, OOo only installs the fully qualified libs (libXXX.so.3), while foor linking, the short versions are needed (libXXX.so). The OOo SDK would include those short versions, but I am not sure whether it would also place them in /opt/openoffice.org/ure/lib, so I think the easiest way for you to proceed is to manually create symlinks ln -s libuno_cppuhelperC52.so.3 \ /opt/openoffice.org/ure/lib/libuno_cppuhelperC52.so etc. -Stephan - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org - To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org