php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62833 pdflib doesn't compile statically
Submitted: 2012-08-15 20:34 UTC Modified: 2012-08-22 12:11 UTC
From: marcelo at tpn dot com dot br Assigned: rjs (profile)
Status: Closed Package: pdflib (PECL)
PHP Version: 5.3.15 OS: FreeBSD 8.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marcelo at tpn dot com dot br
New email:
PHP Version: OS:

 

 [2012-08-15 20:34 UTC] marcelo at tpn dot com dot br
Description:
------------
I tried to compile PHP with pdflib support:

cd /path-to-php-5.3.15-src
cd ext
pecl download pdflib
tar -xzf pdflib-2.1.9.tar.gz
mv pdflib-2.1.9 pdf
cd ..
rm configure
./buildconf --force

./configure -with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-
path=/usr/local/etc --with-config-file-scan-dir=/usr/local/etc/php --enable-
suhosin --with-mysql --with-zlib --with-gd --with-pdflib --with-jpeg-
dir=/usr/local/include --with-png-dir=/usr/local/include --with-xpm-
dir=/usr/local/include --enable-gd-native-ttf --with-freetype-
dir=/usr/local/include/freetype2/freetype --with-t1lib --with-mcrypt --with-
mysqli=mysqlnd --enable-mbstring --enable-bcmath --enable-calendar --enable-ftp -
-enable-exif --enable-dba --with-gettext --with-bz2 --with-curl --with-gmp --
with-mhash --enable-intl --with-pdo-mysql --enable-soap --enable-sockets --
enable-wddx --with-tidy --with-xsl --enable-zip --with-openssl --with-xmlrpc --
enable-xcache --enable-xcache-constant --with-imagick --disable-phar --with-
pspell

make
make install


Test script:
---------------
<?php 

phpinfo();

?>

pdf extension isn't there.


Expected result:
----------------
pdf module should be compiled statically


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-22 11:02 UTC] rjs@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

newer PDFlib libraries contain some C++ code, so for linking the C++ compiler is 
needed (which pulls in the needed extra libraries).

I'm not aware how the PHP build system can be convinced to use the C++ compiler 
for linking.

A work around might be that you call make with CC set to the C++ compiler after 
the build failed when it tried to link. So the sequence:

make -i
make CC=g++
make install

should create the PHP binary.
 [2012-08-22 11:02 UTC] rjs@php.net
-Status: Open +Status: Not a bug
 [2012-08-22 12:03 UTC] marcelo at tpn dot com dot br
You can close this bug report, because this problem was fixed with PHP 5.3.16.

Thank you.
 [2012-08-22 12:11 UTC] rjs@php.net
-Status: Not a bug +Status: Closed -Assigned To: +Assigned To: rjs
 [2012-08-22 12:11 UTC] rjs@php.net
user reported that it is fixed in 5.3.16
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC