Bug #77883 [Opn]: Building with gcc-3.4.3 fails to export symbols

From: Date: Fri, 12 Apr 2019 14:47:52 +0000
Subject: Bug #77883 [Opn]: Building with gcc-3.4.3 fails to export symbols
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220417@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77883&edit=1 ID: 77883 Updated by: levim@php.net Reported by: a dot hawkins at cabletime dot com Summary: Building with gcc-3.4.3 fails to export symbols Status: Open Type: Bug Package: *Compile Issues Operating System: Linux PHP Version: 7.3.4 Block user comment: N Private report: N New Comment: My previous statement does come with some caveats: the code/configuration needs to be simple. If it's an invasive change it won't get applied. Is this version of MontaVista (which I know nothing about) still supported? Previous Comments: ------------------------------------------------------------------------ [2019-04-12 14:44:27] levim@php.net While I question the value of supporting this old of a GCC version on this new of a PHP version, if you can come up with a fix I don't see any reason not to patch it. ------------------------------------------------------------------------ [2019-04-12 14:37:01] spam2 at rhsoft dot net GCC 3.4.3 is not supported for PHP 7.3 and there is no point using a 15 years old environment and then expect the newest software to run on it ------------------------------------------------------------------------ [2019-04-12 14:33:38] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77883&edit=1

« previous php.bugs (#220417) next »