ID:               49151
 Updated by:       j...@php.net
 Reported By:      tech at uscki dot nl
-Status:           Open
+Status:           Assigned
 Bug Type:         Compile Failure
 Operating System: Sun Solaris 5.10 (i386)
 PHP Version:      5.3.0
 Assigned To:      nlopess
 New Comment:

It should be as simple as adding 'static' in the macro
ZEND_DECLARE_MODULE_GLOBALS since those should be static anyway..




Previous Comments:
------------------------------------------------------------------------

[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!

------------------------------------------------------------------------

[2009-08-14 21:54:04] nlop...@php.net

sorry, I forgot to say that before ./configure you must run ./buildconf

------------------------------------------------------------------------

[2009-08-14 16:49:14] nlop...@php.net

you can disable the visibility patch by editing the configure.in file
and removing the occurrence of "-fvisibility=hidden". Then do a
./vcsclean && ./configure && make. Then please report if it worked, and
which compiler version you used. thanks.

------------------------------------------------------------------------

[2009-08-14 10:08:07] tech at uscki dot nl

Hmmm, adding static isn't trivial, these first two methods were the tip
of the iceberg... Looks like I'll be adding it all through the code if I
go through with this (I stopped after about 10 changes in various
files). 

How do I "disable the visibility thing", as Nuno noted?

------------------------------------------------------------------------

[2009-08-13 10:01:53] j...@php.net

in ext/date/php_date.c:485, add static in front of this line:

ZEND_DECLARE_MODULE_GLOBALS(date)


------------------------------------------------------------------------

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
    http://bugs.php.net/49151

-- 
Edit this bug report at http://bugs.php.net/?id=49151&edit=1

Reply via email to