You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Yuri Dario <mc...@mclink.it> on 2013/11/11 20:52:30 UTC

[OS2] gcc 4.7.3, CPPULIB now required for some modules

Hi,

I moved building of AOO on OS/2 from gcc 4.4.6 to gcc 4.7.3. 
Everything seems of except for a minor issue: on some modules, UNO 
constructors from CPPULIB are now required to link dlls. I'm getting 
this errror

Error! E2028: _uno_any_construct is an undefined reference
Error! E2028: _uno_type_any_construct is an undefined reference
Error! E2028: _uno_any_destruct is an undefined reference
Error! E2028: _uno_type_any_assign is an undefined reference

mainly in filter graphicfilter dlls and in 
i18npool/source/textconversion/data/. Adding CPPULIB satisfies the 
linker.

do you have any ideas what could be wrong?

thanks,



-- 
Bye,

	Yuri Dario

/*
 * OS/2 open source software
 * http://web.os2power.com/yuri
 * http://www.netlabs.org
*/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [OS2] gcc 4.7.3, CPPULIB now required for some modules

Posted by Herbert Duerr <hd...@apache.org>.
On 11.11.2013 20:52, Yuri Dario wrote:
> Hi,
>
> I moved building of AOO on OS/2 from gcc 4.4.6 to gcc 4.7.3.
> Everything seems of except for a minor issue: on some modules, UNO
> constructors from CPPULIB are now required to link dlls. I'm getting
> this errror
>
> Error! E2028: _uno_any_construct is an undefined reference
> Error! E2028: _uno_type_any_construct is an undefined reference
> Error! E2028: _uno_any_destruct is an undefined reference
> Error! E2028: _uno_type_any_assign is an undefined reference
>
> mainly in filter graphicfilter dlls and in
> i18npool/source/textconversion/data/. Adding CPPULIB satisfies the
> linker.
>
> do you have any ideas what could be wrong?

Did you change the linker too? When linux distributions switched from 
the "bfd" to the "gold" linker there where problems that libraries that 
were only linked indirectly had to be mentioned directly [1].

[1] 
https://wiki.debian.org/ToolChain/DSOLinking#Not_resolving_symbols_in_indirect_dependent_shared_libraries

Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [OS2] gcc 4.7.3, CPPULIB now required for some modules

Posted by Yuri Dario <mc...@mclink.it>.
Hi Herbert,


> Graphicfilter [1] has quite more that one source file. Some of its 
> subdirectories already use CPPULIB directly. If there is a new 
> subdirectory where its needed nowadays I suggest to just add the CPPULIB 

I counted 14 graphicfilter dlls requiring it. I will add CPPULIB to 
SHL1STDLIBS only for OS2 builds.

thanks,

-- 
Bye,

	Yuri Dario

/*
 * OS/2 open source software
 * http://web.os2power.com/yuri
 * http://www.netlabs.org
*/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [OS2] gcc 4.7.3, CPPULIB now required for some modules

Posted by Herbert Duerr <hd...@apache.org>.
Hi Yuri,

On 13.11.2013 11:04, Yuri Dario wrote:
>> But maybe there really are new uses of cssu::Any in the modules you
>> mentioned. Do the error messages say which object files need these
>> methods that were missing without the CPPULIB dependency?
>
> yes, I see the module name. e.g. for graphicfilter it is the only .cxx
> file present in the directory. Preprocessor shows that functions are
> referenced because any2.h is included.

Graphicfilter [1] has quite more that one source file. Some of its 
subdirectories already use CPPULIB directly. If there is a new 
subdirectory where its needed nowadays I suggest to just add the CPPULIB 
line to the makefile. I don't think there is any more reason to worry.

[1] 
http://svn.apache.org/repos/asf/openoffice/trunk/main/filter/source/graphicfilter/

Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [OS2] gcc 4.7.3, CPPULIB now required for some modules

Posted by Yuri Dario <mc...@mclink.it>.
Hi Herbert,


> But maybe there really are new uses of cssu::Any in the modules you 
> mentioned. Do the error messages say which object files need these 
> methods that were missing without the CPPULIB dependency?

yes, I see the module name. e.g. for graphicfilter it is the only .cxx
file present in the directory. Preprocessor shows that functions are 
referenced because any2.h is included.

thanks,

-- 
Bye,

	Yuri Dario

/*
 * OS/2 open source software
 * http://web.os2power.com/yuri
 * http://www.netlabs.org
*/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [OS2] gcc 4.7.3, CPPULIB now required for some modules

Posted by Herbert Duerr <hd...@apache.org>.
Hi Yuri,

On 12.11.2013 12:37, Yuri Dario wrote:
>> Did you change the linker too? When linux distributions switched from
>> the "bfd" to the "gold" linker there where problems that libraries that
>> were only linked indirectly had to be mentioned directly [1]
>
> OS/2 does not use ld to link object files. But this seems not the
> problem I see.
>
> I'm thinking that these functions were inlined in previous gcc
> releases or that now code generates some new kind of reference to
> them, thus requiring the linker to satisfy the dependancy.

I had thought about that too, but seeing that the missing functions are 
declared in main/cppu/source/uno/any.cxx and not in an exported header 
file convinced me that this cannot happen.

But maybe there really are new uses of cssu::Any in the modules you 
mentioned. Do the error messages say which object files need these 
methods that were missing without the CPPULIB dependency?

> OS/2
> linkers needs to resolve all symbols like Windows, we do not have lazy
> loading enabled by default.

The direct/indirect linking (in the build phase) I referred to is 
orthogonal to eager/lazy loading (in the run phase).

Herbert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [OS2] gcc 4.7.3, CPPULIB now required for some modules

Posted by Yuri Dario <mc...@mclink.it>.
Hi Herbert,

> Did you change the linker too? When linux distributions switched from 
> the "bfd" to the "gold" linker there where problems that libraries that 
> were only linked indirectly had to be mentioned directly [1]

OS/2 does not use ld to link object files. But this seems not the 
problem I see. 

I'm thinking that these functions were inlined in previous gcc 
releases or that now code generates some new kind of reference to 
them, thus requiring the linker to satisfy the dependancy. OS/2 
linkers needs to resolve all symbols like Windows, we do not have lazy
loading enabled by default.

thanks,


-- 
Bye,

	Yuri Dario

/*
 * OS/2 open source software
 * http://web.os2power.com/yuri
 * http://www.netlabs.org
*/



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org