php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60745 Tidy compile error
Submitted: 2012-01-13 14:16 UTC Modified: 2012-01-13 19:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jose dot nobile at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.9 OS: Centos 5.6 x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jose dot nobile at gmail dot com
New email:
PHP Version: OS:

 

 [2012-01-13 14:16 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-13 14:41 UTC] jose dot nobile at gmail dot com
-Package: Tidy +Package: Compile Failure
 [2012-01-13 14:41 UTC] jose dot nobile at gmail dot com
Is a Compile Failure related to Tidy Extension.
 [2012-01-13 16:03 UTC] 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 19:42 UTC] nlopess@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 19:42 UTC] nlopess@php.net
-Status: Open +Status: Bogus
 [2012-01-13 19:48 UTC] jose dot nobile at gmail dot com
Why this exact tidy compile fine in PHP 5.3.8 with equal ./configure, but not in 
PHP 5.3.9?
 [2012-01-13 19:49 UTC] jose dot nobile at gmail dot com
My Tidy is compiled and it work. I'm compiling PHP, and it's failing in make.
 [2012-01-16 15:57 UTC] jose dot nobile at gmail dot com
The file libtidy.a is ar archive, contain several .o files, the file alloc.o is:
alloc.o:    ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped

What is the problem with the compiled mode of my Tidy? Why this work fine on PHP 
5.3.8?

Mr PHP Developers can you give me a answer? is not important fix bugs of compile 
failures in the lastest stable PHP versions?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 17:01:29 2024 UTC