#24183 [Fbk]: Configure fails on Mac OS X --with-pdflib (pdflib >= 4.0.3)
| From: | kalowsky@php.net | Date: | Tue, 08 Jul 2003 17:38:55 +0000 |
| Subject: | #24183 [Fbk]: 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-43466@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
Bug Type: PDF related
Operating System: Mac OS X (10.2.6)
PHP Version: 4.3.2
Assigned To: kalowsky
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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