|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2019-04-12 14:33 UTC] a dot hawkins at cabletime dot com
Description: ------------ When building with the following version of gcc: andyh@778:/home/andyh/development/778-phpv7$ arm_v5t_le-gcc --version arm_v5t_le-gcc (GCC) 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure.ac checks if the -fvisibility=hidden flag is acceptable to the compiler. If it is, it uses it. However, this compiler supports this flag, but doesn't support the attribute required to be able to export symbols (this requires gcc v4 or above). The result is that php builds, but it is not possible to load any modules, as php's symbols aren't correctly exported. This flag should only be used if the compiler *also* supports the 'visibility' function attribute. PatchesHAS_VISIBILITY_CFLAGS (last revision 2019-06-12 12:21 UTC by php at geoff dot dj)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 18:00:01 2025 UTC |
This version almost certainly isn't supported, no. I suspect the 'fix' would be to wrap the: AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [CFLAGS="$CFLAGS -fvisibility=hidden"]) inside a call to ax_gcc_func_attribute("visibility") and only check the compile flag if the attribute is supported. However, my autoconf skills are definitely sub-par...