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

From: Date: Fri, 01 Jul 2016 22:11:40 +0000
Subject: Bug #69019 [Opn->Fbk]: Getting error when trying to compile BZ2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201981@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:         cmb@php.net
 Reported by:        jfha73 at gmail dot com
 Summary:            Getting error when trying to compile BZ2
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Bzip2 Related
 Operating System:   Ubuntu 14.04
 PHP Version:        master-Git-2015-02-09 (Git)
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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 (#201981) next »