#49151 [Opn->Asn]: relocation must bind locally

2009-08-17 Thread jani
 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



#49151 [Opn->Asn]: relocation must bind locally

2009-08-05 Thread jani
 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:  
+Assigned To:  nlopess
 New Comment:

Assigned to Nuno who's patch broke this.


Previous Comments:


[2009-08-05 08:26:45] tech at uscki dot nl

Not sure what you mean exactly with that post, but the LDFLAGS are set
before compilation to the following:

export LDFLAGS="$LDFLAGS -L/phil/sw/sunos/i386/lib"
export LDFLAGS="$LDFLAGS -R/phil/sw/sunos/i386/lib"

This all worked fine with php 5.2.9 . Anyway thanks for the help so
far! I will be out for about a week, so I will look at it again by that
time (hopefully with fresh new insight! ;) )

Kind regards,
Coert



[2009-08-04 19:15:30] j...@php.net

http://www.opensolaris.org/jive/thread.jspa?
threadID=35812&tstart=0#145783



[2009-08-04 17:04:26] tech at uscki dot nl

Alas, same result



[2009-08-04 14:31:08] j...@php.net

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/





[2009-08-04 13:02:50] tech at uscki dot nl

Description:

Compiling php 5.3.0 on SunOS 5.10 (i386) fails on "fatal: relocation
error"

Reproduce code:
---
Compile was tried with both:
- GNU ld (GNU Binutils) 2.18
- ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.478

and also with and w/o addition of the make parameter:
-fvisibility=hidden

./configure \
--prefix=/phil/usr/local/php-$VERSION \
--with-config-file-path=/phil/etc \
--with-apxs2=/phil/sw/sunos/i386/bin/apxs \
--with-db4=/phil/sw/sunos/i386 \
--with-jpeg-dir=/phil/sw/sunos/i386 \
--with-png-dir=/phil/sw/sunos/i386 \
--with-ldap=/phil/sw/sunos/i386 \
--with-openssl=/phil/sw/sunos/i386 \
--with-zlib \
--enable-zip \
--with-pgsql=/phil/sw/sunos/i386 \
--with-gettext \
--with-gd \
--enable-exif \
--with-pdo-pgsql=/phil/sw/sunos/i386 \
--with-iconv-dir=/phil/sw/sunos/i386 \
--with-libxml-dir=/phil/sw/sunos/i386 \
--with-tidy=/phil/usr/local \
--with-freetype-dir=/phil/sw/sunos/i386 \
--enable-gd-native-ttf \
--with-gnu-ld \
--with-xsl=/phil/sw/sunos/i386/pkg/libxslt-1.1.15 \
--enable-soap \
--with-mysql=mysqlnd

make CFLAGS="-fvisibility=hidden -mimpure-text -m32
-I/phil/sw/sunos/i386/include --with-gnu-ld
--with-ld=/phil/sw/sunos/i386/bin/ld"

Expected result:

Clean compile

Actual result:
--
/bin/sh /home/gemeren/php/php-5.3.0/libtool --silent
--preserve-dup-deps --mode=compile gcc  -IZend/
-I/home/gemeren/php/php-5.3.0/Zend/ -DPHP_ATOM_INC
-I/home/gemeren/php/php-5.3.0/include -I/home/gemeren/php/php-5.3.0/main
-I/home/gemeren/php/php-5.3.0 -I/home/gemeren/php/php-5.3.0/ext/date/lib
-I/home/gemeren/php/php-5.3.0/ext/ereg/regex
-I/phil/sw/sunos/i386/pkg/libxml2-2.6.22/include/libxml2
-I/phil/sw/sunos/i386/include -I/phil/sw/sunos/i386/include/freetype2
-I/phil/sw/sunos/i386/pkg/postgresql-8.1.1/include
-I/home/gemeren/php/php-5.3.0/ext/sqlite3/libsqlite
-I/phil/usr/local/include/tidy
-I/phil/sw/sunos/i386/pkg/libxslt-1.1.15/include
-I/home/gemeren/php/php-5.3.0/TSRM -I/home/gemeren/php/php-5.3.0/Zend 
-D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -g -O2 -fvisibility=hidden  
-c /home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c -o
Zend/zend_object_handlers.lo 
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c: In function
'zend_std_object_get_class':
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c:1199: warning:
visibility attribute not supported in this configuration; ignored
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c: In function
'zend_std_object_get_class_name':
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c:1220: warning:
visibility attribute not supported in this configuration; ignored
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c: In function
'zend_std_get_closure':
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c:1317: warning:
visibility attribute not supported in this configuration; ignored
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c: In function
'zend_std_read_dimension':
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c:503: warning:
visibility attribute not supported in this configuration; ignored
/home/gemeren/php/php-5.3.0/Zend/zend_object_handlers.c: In function
'zend_std_read_property':
 ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo
ext/standard/strnatcmp.lo ext/standard/levenshtein.lo
ext/standard/incomplete_class.lo ext/standard/url_scanner_