Edit report at https://bugs.php.net/bug.php?id=60745&edit=1

 ID:                 60745
 User updated by:    jose dot nobile at gmail dot com
 Reported by:        jose dot nobile at gmail dot com
 Summary:            Tidy compile error
 Status:             Bogus
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Centos 5.6 x86_64
 PHP Version:        5.3.9
 Block user comment: N
 Private report:     N

 New Comment:

Why this exact tidy compile fine in PHP 5.3.8 with equal ./configure, but not 
in 
PHP 5.3.9?


Previous Comments:
------------------------------------------------------------------------
[2012-01-13 19:42:05] nlop...@php.net

that's a problem related with how you compiled tidy vs how you're compiling php.
It's not a bug in PHP.

------------------------------------------------------------------------
[2012-01-13 16:03:38] jose dot nobile at gmail dot com

A Additional detail.
I'm using a Tidy with HTML5 Support from:
https://github.com/w3c/tidy-html5 (autor is W3C)

In PHP 5.3.8 it work fine.

------------------------------------------------------------------------
[2012-01-13 14:41:04] jose dot nobile at gmail dot com

Is a Compile Failure related to Tidy Extension.

------------------------------------------------------------------------
[2012-01-13 14:16:49] jose dot nobile at gmail dot com

Description:
------------
I tried to compile PHP 5.3.9 and it show a compile error (make) related to Tidy.


Test script:
---------------
Over PHP 5.3.9 directory run the next configure (in PHP 5.3.8 this work fine)

'./configure' '--bindir=/usr/bin' '--build=x86_64-redhat-linux-gnu' '--cache-
file=../config.cache' '--datadir=/usr/share' '--disable-rpath' '--enable-bcmath'
'--enable-calendar' '--enable-dba=shared' '--enable-dom' '--enable-exif' '--
enable-ftp' '--enable-gd-jis-conv' '--enable-gd-native-ttf' '--enable-intl' '--
enable-magic-quotes' '--enable-maintainer-zts' '--enable-mbregex' '--enable-
mbstring' '--enable-pcntl' '--enable-pdo' '--enable-shmop' '--enable-soap' '--
enable-soap=shared' '--enable-sockets' '--enable-sqlite-utf8' '--enable-static'
'--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-ucd-snmp-
hack' '--enable-wddx' '--enable-zip' '--exec-prefix=/usr' '--host=x86_64-redhat-
linux-gnu' '--includedir=/usr/include' '--infodir=/usr/share/info' '--
libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--
mandir=/usr/share/man' '--prefix=/usr' '--program-prefix=' '--sbindir=/usr/sbin'
'--sharedstatedir=/usr/com' '--sysconfdir=/etc' '--target=x86_64-redhat-linux-
gnu' '--with-apxs2=/usr/sbin/apxs' '--with-bz2' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--with-curl' '--with-db4=/usr' '--
with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-
layout=GNU' '--with-ldap' '--with-ldap-sasl' '--with-libdir=lib64' '--with-
libmbfl' '--with-libxml-dir=/usr' '--with-mcrypt' '--with-mhash' '--with-mysql-
sock=/var/lib/mysql/mysql.sock' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd'
'--enable-mysqlnd' '--with-onig' '--with-openssl' '--with-pcre-regex=/usr' '--
with-pdo-mysql=mysqlnd' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-
pgsql' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-
pgsql' '--with-pic' '--with-png-dir=/usr' '--with-pspell' '--with-recode' '--
with-snmp' '--with-unixODBC=shared,/usr' '--with-t1lib' '--with-tidy' '--with-
xmlrpc' '--with-xsl' '--with-xsl=shared,/usr' '--with-zlib' '--without-gdbm' '--
enable-zend-multibyte'

Expected result:
----------------
Not errors, PHP is compiled fine.

Actual result:
--------------
/usr/bin/ld: /usr/local/lib/libtidy.a(alloc.o): relocation R_X86_64_32 against 
`a 
local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libtidy.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


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



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

Reply via email to