php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69019 Getting error when trying to compile BZ2
Submitted: 2015-02-09 16:35 UTC Modified: 2016-07-10 04:22 UTC
From: jfha73 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: Bzip2 Related
PHP Version: master-Git-2015-02-09 (Git) OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jfha73 at gmail dot com
New email:
PHP Version: OS:

 

 [2015-02-09 16:35 UTC] jfha73 at gmail dot com
Description:
------------
I get an error (see results) when trying to compile master using --with-bz2

The error says compile it with -fPIC and that's how I have my c, cxx and cpp flags.

Thanks


Expected result:
----------------
Compile

Actual result:
--------------
/include -fPIC -D_GNU_SOURCE -fvisibility=hidden   -c /home/user/Downloads/php-src/ext/bz2/bz2_filter.c -o ext/bz2/bz2_filter.lo 
/bin/bash /home/user/Downloads/php-src/libtool --silent --preserve-dup-deps --mode=link cc -DPHP_ATOM_INC -I/home/user/Downloads/php-src/include -I/home/user/Downloads/php-src/main -I/home/user/Downloads/php-src -I/home/user/Downloads/php-src/ext/date/lib -I/home/user/Downloads/php-src/ext/ereg/regex -I/usr/include/libxml2 -I/usr/include/enchant -I/home/user/Downloads/php-src/ext/mbstring/oniguruma -I/home/user/Downloads/php-src/ext/mbstring/libmbfl -I/home/user/Downloads/php-src/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/home/user/Downloads/php-src/ext/sqlite3/libsqlite -I/usr/include/pspell -I/usr/include/tidy -I/home/user/Downloads/php-src/TSRM -I/home/user/Downloads/php-src/Zend  -fPIC -D_GNU_SOURCE  -I/usr/include -fPIC -D_GNU_SOURCE -fvisibility=hidden   -o ext/bz2/bz2.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/user/Downloads/php-src/modules -avoid-version -module ext/bz2/bz2.lo ext/bz2/bz2_filter.lo -lbz2
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libbz2.a(bzlib.o): relocation R_X86_64_32S against `BZ2_crc32Table' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libbz2.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [ext/bz2/bz2.la] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-01 22:11 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-07-01 22:11 UTC] cmb@php.net
Compiling bz2 works fine for me with the current PHP 5.6 branch
on Ubuntu 14.04. Please try with a recent PHP version, and report
back.
 [2016-07-10 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC