FS#20805 - [freeimage] has to be compiled with -fvisibility=hidden flag
Attached to Project:
Community Packages
Opened by Sebastian Ziebarth (voeck) - Friday, 10 September 2010, 20:33 GMT
Last edited by Stefan Husmann (stefanhusmann) - Tuesday, 14 September 2010, 03:17 GMT
Opened by Sebastian Ziebarth (voeck) - Friday, 10 September 2010, 20:33 GMT
Last edited by Stefan Husmann (stefanhusmann) - Tuesday, 14 September 2010, 03:17 GMT
|
Details
Description:
freeimage links against its own static versions of libjpeg, libpng etc. The symbols in these libraries are exposed if the -fvisibility=hidden flag is missing. In the Makefile the required flag is set but the CFLAGS get overwritten by makepkg's CFLAGS from /etc/makepkg.conf. The Makefile needs to be patched to make sure that -fvisibility=hidden will still be in the CFLAGS. Otherwise a program linked to libjpeg and freeimage will most probably segfault. Steps to reproduce: - Use the freeimage package from the community repository - Link a program against libjpeg and freeimage - Call functions from libjpeg This might not directly happen in reality. But the issue also matters if a program links against libjpeg and a library which is linked against freeimage (i.e. OGRE). |
This task depends upon
Closed by Stefan Husmann (stefanhusmann)
Tuesday, 14 September 2010, 03:17 GMT
Reason for closing: Fixed
Tuesday, 14 September 2010, 03:17 GMT
Reason for closing: Fixed
I guess some patch should be applied to Makefile.gnu which replaces their "-O3" by the flags from /etc/makepkg.conf