Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-13 Thread Friedrich W. H. Kossebau
Hi Thiago, Am Sonntag, 12. Mai 2013, 14:21:10 schrieb Thiago Macieira: On domingo, 12 de maio de 2013 22.47.35, Friedrich W. H. Kossebau wrote: + # Do not export QtUiTools internal symbols + set_target_properties(krossmoduleforms PROPERTIES LINK_FLAGS -Wl,-- exclude-libs

Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-13 Thread Thiago Macieira
On segunda-feira, 13 de maio de 2013 17.41.58, Friedrich W. H. Kossebau wrote: Interesting problem still: so any public symbol from a static lib can potentially appear multiple times in a process, if coming with different libs/modules, and then the first instance of that symbol shadows all

Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-13 Thread Friedrich W. H. Kossebau
Am Montag, 13. Mai 2013, 10:06:59 schrieb Thiago Macieira: On segunda-feira, 13 de maio de 2013 17.41.58, Friedrich W. H. Kossebau wrote: Interesting problem still: so any public symbol from a static lib can potentially appear multiple times in a process, if coming with different

Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-13 Thread Thiago Macieira
On segunda-feira, 13 de maio de 2013 19.05.54, Friedrich W. H. Kossebau wrote: Am Montag, 13. Mai 2013, 10:06:59 schrieb Thiago Macieira: On segunda-feira, 13 de maio de 2013 17.41.58, Friedrich W. H. Kossebau wrote: Interesting problem still: so any public symbol from a static lib can

Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-12 Thread Friedrich W. H. Kossebau
Hi Sune, Am Samstag, 11. Mai 2013, 20:23:15 schrieb Sune Vuorela: On 2013-05-11, Friedrich W. H. Kossebau kosse...@kde.org wrote: So, anyone with more clue than me WRT symbols from static libs and the Bsymbolic-functions linker flag who could tell if that indeed should fix such problems if

Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-12 Thread Thiago Macieira
On domingo, 12 de maio de 2013 22.47.35, Friedrich W. H. Kossebau wrote: + # Do not export QtUiTools internal symbols + set_target_properties(krossmoduleforms PROPERTIES LINK_FLAGS -Wl,-- exclude-libs -Wl,libQtUiTools.a) It seems the correct fix would be to compile libQtUiTools.a

Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-11 Thread Friedrich W. H. Kossebau
Hi, tl;dr how to avoid crashes if libQtUiTools.a is linked multiple times into a process? You use at least one of kross, kjsembed, or plasma in your application/lib/module and possibly also directly libQtUiTools yourself? Then bugs.kde.org shows that chances are that you have seen crashes

Re: Crashes with libQtUiTools.a if linked multiple times into the same process (with Bsymbolic-functions flag)

2013-05-11 Thread Sune Vuorela
On 2013-05-11, Friedrich W. H. Kossebau kosse...@kde.org wrote: So, anyone with more clue than me WRT symbols from static libs and the Bsymbolic-functions linker flag who could tell if that indeed should fix such problems if code from the same static lib is arriving multiple times in the