ID: 29297 Updated by: [EMAIL PROTECTED] Reported By: v_santhanam at ettimadai dot amrita dot edu -Status: Assigned +Status: Closed Bug Type: Compile Failure Operating System: Redhat Enterprise Linux AS 3 PHP Version: 4.3.8 Assigned To: rjs New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Configure now only allows to work with PDFlib up to PDFlib 4, as newer PDFlib versions need the code from the PDFlib PECL module. Previous Comments: ------------------------------------------------------------------------ [2004-10-05 02:01:13] alvaro_php at adplabs dot com dot br I sucessfully compiled version 6 with 4.3.8. here's what I did: 1) compiled pdflib with shared libs and installed. Added /usr/local/lib to /etc/ld.so.conf and ran ldconfig. 2) I discovered that the version of GD from PHP was newer than the one I had on my system, so I added --with-gd=/usr to tell PHP to use my installed GD instead of its bundled version. 3)I copied php_gd.h to /usr/include/php/ext/gd/ and gd.h to /usr/include/php/ext/gd/libgd/. 4) typed pear install pdflib (it downloaded the newest extension, compiled, and installed. 5) added extension=pdf.so to php.ini No need to recompile PHP. ------------------------------------------------------------------------ [2004-09-17 14:59:35] alvaro_php at adplabs dot com dot br Indeed, version compiles ok, I'll stick with it. ------------------------------------------------------------------------ [2004-09-17 07:30:00] v_santhanam at ettimadai dot amrita dot edu Dear Friends, Thanks for all your invaluable effort to make PHP - THE BEST. Please kindly check the problem further reportted by alvaro_php at adplabs dot com dot br . For my server, i reverted back to the old version of PDFLib ie. 5. If any solution is found for using latest PDFLIb i.e. 6, i will be very much happy. With Regards Santhanam ------------------------------------------------------------------------ [2004-09-16 20:37:09] alvaro_php at adplabs dot com dot br This is still happening as of php4-STABLE-200409161630. I too get ext/pdf/pdf.lo(.text+0x5fa): In function `zif_pdf_open': /usr/src/php4-STABLE-200409161630/ext/pdf/pdf.c:472: undefined reference to `PDF_open_fp while trying to compile on Fedora Core 2 x86. No luck with PECL version either: SRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmprYIopN/pdflib-2.0.2/pdf.c -fPIC -DPIC -o .libs/pdf.o /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:87:28: ext/gd/php_gd.h: No such file or directory /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:89:31: ext/gd/libgd/gd.h: No such file or directory /tmp/tmprYIopN/pdflib-2.0.2/pdf.c: In function `zif_pdf_open_memory_image': /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:7081: error: `gdImagePtr' undeclared (first use in this function) /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:7081: error: (Each undeclared identifier is reported only once /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:7081: error: for each function it appears in.) /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:7081: error: syntax error before "im" /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:7099: error: `im' undeclared (first use in this function) /tmp/tmprYIopN/pdflib-2.0.2/pdf.c:7099: error: syntax error before "zend_fetch_resource" make: *** [pdf.lo] Error 1 Thanks in advance, �lvaro ------------------------------------------------------------------------ [2004-09-13 17:14:39] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Removed the extension in ext/pdf as it is available from PECL. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29297 -- Edit this bug report at http://bugs.php.net/?id=29297&edit=1
