Edit report at https://bugs.php.net/bug.php?id=49151&edit=1
ID: 49151 Comment by: eugene at zhegan dot in Reported by: tech at uscki dot nl Summary: relocation must bind locally Status: Open Type: Bug Package: Compile Failure Operating System: Sun Solaris 5.10 (i386) PHP Version: 5.3.0 Block user comment: N Private report: N New Comment: Guys, this stuff about relocation errors is still actual for the php 5.4.x and gcc 4.x, for example on Solaris 10 and gcc 4.7.2 (althought it does not fire on Solaris 11 and less recent gcc). No questions, it still builds just fine using gcc 3.4.3, but any way 3.4.3 will go sooner or later. Still helps to edit the Makefile manually and remove -fvisibility=hidden. Previous Comments: ------------------------------------------------------------------------ [2012-03-14 06:18:52] sergei dot solomonov at gmail dot com Try this: ext/date/php_date.c:511 (line 508, for php 5.4) -zend_class_entry *date_ce_date, *date_ce_timezone, *date_ce_interval, *date_ce_period; +static zend_class_entry *date_ce_date, *date_ce_timezone, *date_ce_interval, *date_ce_period; ------------------------------------------------------------------------ [2010-09-13 23:45:24] brentk at birs dot ca I'm getting the same problem with PHP 5.3.3 on Solaris 10 (x64), gcc 4.3.3. The compile dies at php_date.o with the same message as the original post. If I remove the "-fvisibility=hidden" part from configure, this doesn't happen. ------------------------------------------------------------------------ [2010-05-24 17:20:11] dbakyle at gmail dot com I've removed the -fvisibility=hidden from the Makefile and tried the make again. The process is still failing on glob_wrapper.lo I'm using 4.1.2 of gcc and 2.6.18-92.1.22.0.1 of Red Hat. ------------------------------------------------------------------------ [2009-08-17 09:42:07] j...@php.net It should be as simple as adding 'static' in the macro ZEND_DECLARE_MODULE_GLOBALS since those should be static anyway.. ------------------------------------------------------------------------ [2009-08-14 23:13:32] tech at uscki dot nl Yeah, got it compiling! I removed "-fvisibility=hidden" from the Makefile after running ./configure, guess that boils down to the same result, though your suggestion is a bit tidier. Compiler: gcc (GCC) 4.0.1 Thanks for all your help! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=49151 -- Edit this bug report at https://bugs.php.net/bug.php?id=49151&edit=1