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

From: Date: Fri, 11 Jul 2003 13:08:09 +0000
Subject: #24183 [Fbk->Csd]: 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-43752@lists.php.net to get a copy of this message
ID: 24183 Updated by: kalowsky@php.net Reported By: php_public at macfreek dot nl -Status: Feedback +Status: Closed Bug Type: PDF related Operating System: Mac OS X (10.2.6) PHP Version: 4.3.2 Assigned To: kalowsky New Comment: Well after looking through the Makefiles for PDFlib I'm pretty sure only CoreServices and ApplicationServices are needed (that is all that is referenced by their Makefiles). Committing patch for the two Frameworks only. If it still doesn't work, please reopen. Previous Comments: ------------------------------------------------------------------------ [2003-07-08 12:38:54] kalowsky@php.net I am more curious why all these frameworks are being required, to link in an external library. My testing at home hasn't worked yet ------------------------------------------------------------------------ [2003-07-08 09:16:22] sniper@php.net So I guess there needs to be one extra PHP_ADD_FRAMEWORK line to not need that LDFLAGS to be set: case $host_alias in *darwin*) PHP_ADD_FRAMEWORK(Carbon) PHP_ADD_FRAMEWORK(CoreServices) PHP_ADD_FRAMEWORK(ApplicationServices) PHP_ADD_INCLUDE("/Developer/Headers/FlatCarbon") ;; esac (I can't really test this, I have no macosx.. :) ------------------------------------------------------------------------ [2003-07-08 09:11:41] p dot citti at aressy dot com 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 ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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 (#43752) next »