Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111449 - dev-php/mod_php has no longer pdflib-support ... why?
Summary: dev-php/mod_php has no longer pdflib-support ... why?
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-04 01:00 UTC by Andreas Höhmann
Modified: 2005-11-04 04:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Höhmann 2005-11-04 01:00:58 UTC
i need php4 (mod_php) with pdflib-support (pdflib.com)
the USE-flag "pdflib" is not used for mod_php, why?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-04 01:05:41 UTC
Moved to PECL; emerge dev-php/PECL-pdflib
Comment 2 Andreas Höhmann 2005-11-04 01:58:31 UTC
sorry! i mean dev-php/mod_php

i had successfull emerged dev-php/PECL-pdflib

php -m | grep pdf
pdf

fine. but if i called the phpinfo() funktion inside a phpinfo.php via
apach2+mod_php then there is nothing with pdf :(

phpinfo():
Configure Command: ... '--without-pdflib' ...
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-11-04 02:28:44 UTC
(In reply to comment #2)
> phpinfo():
> Configure Command: ... '--without-pdflib' ...

Sure, because you are using PECL, you don't have pdflib support compiled *into*
PHP. 

Comment 4 Andreas Höhmann 2005-11-04 03:07:32 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > phpinfo():
> > Configure Command: ... '--without-pdflib' ...
> 
> Sure, because you are using PECL, you don't have pdflib support compiled *into*
> PHP. 
> 

I'm a (mod_)php-newbie :-)

Please can you tell me how i get pdflib-support into my mod_php with "normal"
gentoo-tool or is it impossible? If i execute my php-skript (with pdflib-access
inside) then i got the error:

Fatal error: Call to undefined function: pdf_new() 
Fatal error: Call to undefined function: pdf_delete()
...

Is there a howto mod_php/pdflib?

Thxs men
Comment 5 Andreas Höhmann 2005-11-04 03:15:23 UTC
i try to emerge mod_php with pdflib-support:

EXTRA_ECONF="--with-pdflib=/usr"

emerge -vaD dev-php/mod_php

but ... the configure looks like this:

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-experimental-zts
--with-apxs2=/usr/sbin/apxs2 --disable-cli --without-pear --with-ndbm=/usr
--with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr --without-interbase
--without-ming --without-swf --with-sybase=/usr --with-gdbm=/usr --without-fdftk
--with-java=/opt/sun-jdk-1.5.0.05 --without-mcal --with-pdflib=/usr
^^^^^^^^^^^^^^^^^^#1
--without-unixODBC --with-pgsql=/usr --without-snmp --with-xpm-dir=/usr/X11R6
--without-gmp --without-mssql --without-crack --without-pdflib --with-gd 
                                              ^^^^^^^^^^^^^^^^#2
--enable-gd-native-ttf --with-png=/usr --with-png-dir=/usr --with-jpeg=/usr
--with-jpeg-dir=/usr --enable-exif --with-tiff=/usr --with-tiff-dir=/usr
--with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock
--with-freetype-dir=/usr --with-ttf=/usr --with-t1lib=/usr --with-gettext
--with-pspell=/usr --with-openssl=/usr --without-imap --without-ldap
--with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --without-kerberos
--with-pam --disable-memory-limit --disable-ipv6 --without-yaz --disable-debug
--with-curlwrappers --with-curl=/usr --enable-dbx --with-zlib=/usr
--with-zlib-dir=/usr --with-sablot=/usr --enable-xslt --with-xslt-sablot
--with-xmlrpc --enable-wddx --with-xml --enable-mbstring=all --enable-mbregex
--with-bz2=/usr --with-cdb --enable-pcntl --enable-bcmath --enable-calendar
--enable-dbase --enable-filepro --enable-ftp
--with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-iconv --enable-shmop
--enable-dio --enable-yp --without-ncurses --without-readline
--enable-inline-optimization --enable-track-vars --enable-trans-sid
--enable-versioning --with-config-file-path=/etc/php/apache2-php4
--libdir=/usr/lib/php --without-pear

how can i override the "--without-pdflib" configure-option?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-11-04 03:17:51 UTC
(In reply to comment #4)
> Please can you tell me how i get pdflib-support into my mod_php with "normal"
> gentoo-tool or is it impossible? 

emerge PECL-pdflib and run etc-update, so that you have extension=pdf.so in
php.ini and restart apache. Once again, we don't compile pdflib support into php
any more, it's unsupported upstream (http://www.zend.com/manual/ref.pdf.php).

Bugzilla is for bugs, please ask for support in forums.gentoo.org or
#gentoo-apache on IRC in future. 
Comment 7 Andreas Höhmann 2005-11-04 04:17:49 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > Please can you tell me how i get pdflib-support into my mod_php with "normal"
> > gentoo-tool or is it impossible? 
> 
> emerge PECL-pdflib and run etc-update, so that you have extension=pdf.so in
> php.ini and restart apache. Once again, we don't compile pdflib support into php
> any more, it's unsupported upstream (http://www.zend.com/manual/ref.pdf.php).
> 

Allright. Understand :)

> Bugzilla is for bugs, please ask for support in forums.gentoo.org or
> #gentoo-apache on IRC in future. 

Okay!!! Very Last Message ... perhaps it is a "bug" :) ...

[04-Nov-2005 13:08:41] PHP Warning:  Unknown(): pdf: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0

Something is wrong! I re-emerged mod_php and dev-php/PECL-pdflib at the same
time ... so different compiler-flags are not possible (i think) ... why is the
module pdf compiled "none-thread-safety" but mod_php is compiled "thread-safe"?

here my /etc/php/apache2-php4/php.ini:

; PECL-pdflib
extension=pdf.so
; org. PDFLib 6.0.1 (pdflib.com)
;extension=libpdf_php.so
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-11-04 04:28:40 UTC
If you compiled php with USE=threads, then it needs to be
zend_extension_ts=pdf.so, I guess (really hard to tell, emerge info missing
here, also etc-update should do this just fine for you without any manual
intervention needed). Once again, please direct your support questions to forums
or IRC.