#24183 [NEW]: Configure fails on Mac OS X --with-pdflib (pdflib >= 4.0.3)

From: Date: Sat, 14 Jun 2003 12:56:54 +0000
Subject: #24183 [NEW]: Configure fails on Mac OS X --with-pdflib (pdflib >= 4.0.3)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41895@lists.php.net to get a copy of this message
From: php_public at macfreek dot nl Operating system: Mac OS X (10.2.6) PHP version: 4.3.2 PHP Bug Type: Compile Failure Bug description: Configure fails on Mac OS X --with-pdflib (pdflib >= 4.0.3) Description: ------------ Hi, Starting with pdflib 4.0.3, pdflib needs to be linked with Carbon support on Mac OS X. When configuring PHP, PHP will try to compile and link a test program testing the PDF_show_boxed() function. However, this test program will not link because the Carbon libs are not included. Therefor, PHP can't be ./configure'd on Mac OS X if -- with-pdflib is specified. See reproduce code & expected result for details and workaround. Reproduce code: --------------- Details from config.log: From config.log configure:61608: checking for PDF_show_boxed in -lpdf configure:61627: gcc -o conftest -g -O2 -no-cpp- precomp -L/sw/lib -L/sw/lib -L/sw/lib -L/usr/local/lib -L/usr/ local/lib conftest.c -lpdf -lz -ltiff -lpng -ljpeg - lpanel -lncurses -lldap -llber -lpam -lintl -lt1 - lfreetype -lpng -lz -ljpeg -lxsltbreakpoint -lxml2 - lxslt -lz -lgdbm -lcurl -lbz2 -lz -lssl -lcrypto -lm - lcurl -lz -ldl -lz -lxml2 -lz -liconv -lm 1>&5 ld: Undefined symbols: _FSGetCatalogInfo _FSPathMakeRef _FSpGetFInfo _FSpSetFInfo configure: failed program was: #line 61616 "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; } Expected result: ---------------- This can be fixed by adding these flags to the configure script: CFLAGS=-I/Developer/Headers/FlatCarbon LDFLAGS="-framework CoreServices -framework ApplicationServices" Of course, you should only do that on Mac OS X! I have made a quick dirty workaround by just adding the above to the $LIBS variable, and now ./configure works as expected. Actual result: -------------- See config.log details above -- Edit bug report at http://bugs.php.net/?id=24183&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24183&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24183&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24183&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24183&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24183&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24183&r=support Expected behavior: http://bugs.php.net/fix.php?id=24183&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24183&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24183&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24183&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24183&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24183&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24183&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24183&r=gnused

« previous php.bugs (#41895) next »