Bug #69019 [NEW]: Getting error when trying to compile BZ2

From: Date: Mon, 09 Feb 2015 16:35:22 +0000
Subject: Bug #69019 [NEW]: Getting error when trying to compile BZ2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190545@lists.php.net to get a copy of this message
From: jfha73 at gmail dot com Operating system: Ubuntu 14.04 PHP version: master-Git-2015-02-09 (Git) Package: Bzip2 Related Bug Type: Bug Bug description:Getting error when trying to compile BZ2 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 bug report at https://bugs.php.net/bug.php?id=69019&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69019&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69019&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69019&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69019&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69019&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69019&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69019&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69019&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69019&r=support Expected behavior: https://bugs.php.net/fix.php?id=69019&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69019&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69019&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69019&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69019&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69019&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69019&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69019&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69019&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69019&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69019&r=mysqlcfg

« previous php.bugs (#190545) next »