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

From: Date: Tue, 08 Jul 2003 14:11:42 +0000
Subject: #24183 [Com]: Configure fails on Mac OS X --with-pdflib (pdflib >= 4.0.3)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43443@lists.php.net to get a copy of this message
ID: 24183 Comment by: p dot citti at aressy dot com Reported By: php_public at macfreek dot nl Status: Feedback Bug Type: PDF related Operating System: Mac OS X (10.2.6) PHP Version: 4.3.2 Assigned To: kalowsky New Comment: Hi, Thank you guys! I have been succesfull with your help. To compile PHP 4.3.2 with pdflib there was 2 problems: 1-You have to had this line in the config.nice LDFLAGS='-framework Carbon' \ JUST before this one: './configure' \ 2-You have to change the file hp-src/ext/pdf/ config.m4 and add after the comment "The main PDFlib configure" case $host_alias in *darwin*) PHP_ADD_FRAMEWORK(CoreServices) PHP_ADD_FRAMEWORK(ApplicationServices) PHP_ADD_INCLUDE("/Developer/Headers/FlatCarbon") ;; esac (thanks all of you for that!) 3-Then do: autoconf configure.in > configure ./config.nice then make, and sudo make install Previous Comments: ------------------------------------------------------------------------ [2003-07-07 19:16:27] sniper@php.net It should be something like this instead: case $host_alias in *darwin*) PHP_ADD_FRAMEWORK(CoreServices) PHP_ADD_FRAMEWORK(ApplicationServices) PHP_ADD_INCLUDE("/Developer/Headers/FlatCarbon") ;; esac ------------------------------------------------------------------------ [2003-07-07 16:17:59] php_public at macfreek dot nl Hi, Added the new lines after the comment "The main PDFlib configure" in ext/pdf/config.m4 Then, I run: autoconf configure.in > configure ./configure --with-pdflib However, this still fails for me. I'm rather sure I do something Silly [tm], but currently, I'm moving to a new house this week, so I don't have time to check details. Sorry about that. ------------------------------------------------------------------------ [2003-07-07 14:04:24] kalowsky@php.net Can you please try the following patch applied to CVS HEAD? It should work with PHP v4.3 code as well, but the line numbers are probably different. I am not able to check if the include path is a default value on all installs or not yet. Index: config.m4 =================================================================== RCS file: /repository/php-src/ext/pdf/config.m4,v retrieving revision 1.36 diff -r1.36 config.m4 95a96,100 > if test "$platform" = "Darwin"; then > PHP_ADD_FRAMEWORK(CoreServices) > PHP_ADD_FRAMEWORK(ApplicationServices) > PHP_ADD_INCLUDE("/Developer/Headers/FlatCarbon") > fi ------------------------------------------------------------------------ [2003-07-07 13:32:51] kalowsky@php.net You can get around this by not hacking the configure script and using the environment variables CCFLAGS and LDFLAGS respectively. Just set them, run configure etc and it should be added. In the mean time I agree that this should be done automagically, and as such I'll assign this to myself. ------------------------------------------------------------------------ [2003-07-07 11:02:01] p dot citti at aressy dot com Hi, I have exactly the same issue... But could you tell me exactly where in the configure.in file, I have to add the flags? I try several places without success... Tanh you! ------------------------------------------------------------------------ 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/24183 -- Edit this bug report at http://bugs.php.net/?id=24183&edit=1

« previous php.bugs (#43443) next »