From: [EMAIL PROTECTED] Operating system: Linux 2.4.18 PHP version: 4.2.1 PHP Bug Type: *Compile Issues Bug description: PDF and Oracle 9i support don't seem to want to play together.
I can't seem to be able to find a way to compile php with oracle and pdflib support. I am experiencing the following errors: When running "configure" with the following options: ./configure \ --with-apxs=/usr/sbin/apxs \ --with-sybase \ --with-pdflib \ --with-oracle \ --with-zlib \ --with-gd \ --enable-sigchild \ --without-mysql \ --with-system-regex \ --with-config-file-path=/etc/httpd configure dies and I recieve the following error message: configure: error: PDFlib extension requires at least pdflib 3.x. You may also need libtiff, libjpeg, libpng and libz. Use the options --with-tiff-dir=<DIR>, --with-jpeg-dir=<DIR>, --with-png-dir=<DIR> and --with-zlib-dir=<DIR> See config.log for more information. config.log has the following message on the last several lines: configure:51569: checking for PDF_show_boxed in -lpdf configure:51588: gcc -o conftest -g -O2 -DLINUX=22 -DEAPI -DEAPI_MM -DEAPI_MM_CORE_PATH=/var/run/httpd.mm -Wl,-rpath,/home/oracle/OraHome1/lib -L/home/oracle/OraHome1/lib conftest.c -lpdf -lz -lm -ldl -lm -ldl -lgd -lz -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt -lclntsh -lclntsh 1>&5 /usr/bin/ld: cannot find -lclntsh collect2: ld returned 1 exit status configure: failed program was: #line 51577 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char PDF_show_boxed(); int main() { PDF_show_boxed() ; return 0; } I sat around for nearly an hour playing around with various options until I discovered that if I attempt to configure php without the "--with-oracle" option everything works without a problem and I can compile successfully (without oracle support of course). PDF support works without a problem (I generated a sample pdf document just to be sure). If put back in the "--with-oracle" option and remove the "--with-pdflib" option once again php compiles successfully (without pdflib support) and Oracle support works correctly. As always, any suggestions are greatly appriciated. -- Ted -- Edit bug report at http://bugs.php.net/?id=17397&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17397&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17397&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17397&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17397&r=support Expected behavior: http://bugs.php.net/fix.php?id=17397&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17397&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17397&r=globals