fdo#46808 - [Easy Hack] Adapt UNO services to new-style
Noel Grandin
noelgrandin at gmail.com
Fri Mar 23 01:18:52 PDT 2012
On 2012-03-23 10:13, Stephan Bergmann wrote:
> On 03/23/2012 09:09 AM, Noel Grandin wrote:
>> I'm needing to modify some code in the UCB module, but I get linking
>> errors because I'm referencing comphelper.
>> Do I need to modify the makefile or is this one of those modules that
>> are below comphelper?
>
> Module ucb already depends on module comphelper (see the first line of
> ucb/prj/build.lst). Do you mean module ucbhelper instead (that's the
> one that indeed is below comphelper)? Or what are your exact errors.
>
>
The error looks like:
[ build CXX ] ucb/source/ucp/package/pkgresultset.cxx
[ build DEP ] LNK:Library/libucppkg1.so
[ build LNK ] Library/libucpftp1.so
[ build LNK ] Library/libucphier1.so
[ build LNK ] Library/libucppkg1.so
[ build LNK ] Library/ucptdoc1.uno.so
/home/noel/libo/workdir/unxlngx6.pro/CxxObject/ucb/source/ucp/ftp/ftpdynresultset.o:ftpdynresultset.cxx:function
ftp::DynamicResultSet::DynamicResultSet(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
const&, rtl::Reference<ftp::FTPContent> const&,
com::sun::star::ucb::OpenCommandArgument2 const&,
com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
const&, ftp::ResultSetFactory*): error: undefined reference to
'comphelper::getComponentContext(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
const&)'
collect2: ld returned 1 exit status
/home/noel/libo/workdir/unxlngx6.pro/CxxObject/ucb/source/ucp/hierarchy/dynamicresultset.o:dynamicresultset.cxx:function
hierarchy_ucp::DynamicResultSet::DynamicResultSet(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
const&, rtl::Reference<hierarchy_ucp::HierarchyContent> const&,
com::sun::star::ucb::OpenCommandArgument2 const&): error: undefined
reference to
'comphelper::getComponentContext(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
const&)'
collect2: ld returned 1 exit status
make[1]: ***
[/home/noel/libo/workdir/unxlngx6.pro/LinkTarget/Library/libucpftp1.so]
Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: ***
[/home/noel/libo/workdir/unxlngx6.pro/LinkTarget/Library/libucphier1.so]
Error 1
make: *** [ucb] Error 2
More information about the LibreOffice
mailing list