From:             coert dot vangemeren at phil dot uu dot nl
Operating system: Sun Solaris 5.10 (i386)
PHP version:      5.3.0
PHP Bug Type:     Compile Failure
Bug description:  relocation must bind locally

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_ex.lo
ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo
ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo
ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo
ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo
ext/standard/filters.lo ext/standard/proc_open.lo
ext/standard/streamsfuncs.lo ext/standard/http.lo ext/tidy/tidy.lo
ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo
ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo
ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo
ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo
ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo
ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo
ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo
ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo
ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo
ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo
ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo
ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo
ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo
ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo
ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo
ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo
ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo
ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo
ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo
ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo
ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo
ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo
ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo
ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo
ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo
ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo
ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo
ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo
ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo
ext/zip/lib/zip_file_error_clear.lo ext/mysqlnd/mysqlnd.lo
ext/mysqlnd/mysqlnd_charset.lo ext/mysqlnd/mysqlnd_wireprotocol.lo
ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_loaddata.lo
ext/mysqlnd/mysqlnd_palloc.lo ext/mysqlnd/mysqlnd_ps_codec.lo
ext/mysqlnd/mysqlnd_statistics.lo ext/mysqlnd/mysqlnd_qcache.lo
ext/mysqlnd/mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo
ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_block_alloc.lo
ext/mysqlnd/php_mysqlnd.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo
TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo
main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo
main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo
main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo
main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo
main/php_open_temporary_file.lo main/php_logos.lo main/output.lo
main/getopt.lo main/streams/streams.lo main/streams/cast.lo
main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo
main/streams/userspace.lo main/streams/transports.lo
main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo
Zend/zend_language_parser.lo Zend/zend_language_scanner.lo
Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo
Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo
Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo
Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo
Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo
Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo
Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo
Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo
Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo
Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo
Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo
Zend/zend_default_classes.lo Zend/zend_execute.lo
sapi/apache2handler/mod_php5.lo sapi/apache2handler/sapi_apache2.lo
sapi/apache2handler/apache_config.lo sapi/apache2handler/php_functions.lo
main/internal_functions.lo -lz -lexslt -ltidy -lpq -lrt -lpq -lldap -llber
-lintl -lfreetype -lpng -lz -ljpeg -ldb-4.4 -lz -lssl -lcrypto -lresolv -lm
-lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl -lgcc_s -lxml2
-lz -liconv -lm -lsocket -lnsl -lgcc_s -lxml2 -lz -liconv -lm -lsocket
-lnsl -lgcc_s -lxml2 -lz -liconv -lm -lsocket -lnsl -lgcc_s -lxml2 -lz
-liconv -lm -lsocket -lnsl -lgcc_s -lxml2 -lz -liconv -lm -lsocket -lnsl
-lgcc_s -lxml2 -lz -liconv -lm -lsocket -lnsl -lgcc_s -lxslt -lxml2 -lz
-liconv -lsocket -lnsl -lgcc_s -lm  -o libphp5.la
ld: fatal: relocation error: R_386_GOTOFF: file ext/date/.libs/php_date.o:
symbol date_ce_date: relocation must bind locally
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


-- 
Edit bug report at http://bugs.php.net/?id=49151&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49151&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49151&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49151&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49151&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49151&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49151&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49151&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49151&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49151&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49151&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49151&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49151&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49151&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49151&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49151&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49151&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49151&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49151&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49151&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49151&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49151&r=mysqlcfg

Reply via email to