ID:               24183
 Updated by:       [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to