Bug #69019 [Fbk->NoF]: Getting error when trying to compile BZ2

From: Date: Sun, 10 Jul 2016 04:22:36 +0000
Subject: Bug #69019 [Fbk->NoF]: Getting error when trying to compile BZ2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202163@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69019&edit=1

 ID:               69019
 Updated by:       php-bugs@lists.php.net
 Reported by:      jfha73 at gmail dot com
 Summary:          Getting error when trying to compile BZ2
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          Bzip2 Related
 Operating System: Ubuntu 14.04
 PHP Version:      master-Git-2015-02-09 (Git)
 Assigned To:      cmb
 Private report:   N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2016-07-01 22:11:40] 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.

------------------------------------------------------------------------
[2015-02-09 16:35:21] 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



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



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


Thread (3 messages)

« previous php.bugs (#202163) next »