[MacPorts] #15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken --------------------------------------------+------------------------------- Reporter: philip@jocks.to | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: php5 freetype imagettftext gd2 | --------------------------------------------+------------------------------- building php5 with {{{ port install php5 +apache +whatever }}} works fine, but calling PHP's imagettftext() causes apache2 to go crazy: {{{ The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec(). Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug. [Mon Jul 07 18:51:27 2008] [notice] child pid 67161 exit signal Trace/BPT trap (5) }}} [http://discussions.apple.com/message.jspa?messageID=5705589] suggests to rebuild freetype with {{{ --with-fsspec=no --with-fsref=no --with-quickdraw-toolbox=no --with- quickdraw-carbon=no }}} changing freetype's Portfile in line 50 to {{{ # --with-old-mac-fonts \ --with-fsspec=no --with-fsref=no --with-quickdraw-toolbox=no --with- quickdraw-carbon=no }}} and php5's Portfile in line 94 to {{{ --with-gd \ }}} works. I know, the --with-old-mac-fonts was somehow important to some people and php5 now uses the bundled GD2, but I'm not too familiar with changing stuff in macports, so maybe someone else can, so all the freetype functions in php5 will work again. -- Ticket URL: <http://trac.macports.org/ticket/15909> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 ------------------------------+--------------------------------------------- Changes (by jmr@macports.org): * cc: philip@jocks.to (removed) * cc: jwa@macports.org (added) * owner: macports-tickets@lists.macosforge.org => ryandesign@macports.org * type: enhancement => defect * milestone: => Port Bugs Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 ------------------------------+--------------------------------------------- Changes (by ryandesign@macports.org): * cc: cabanela@mnstate.edu (added) * status: new => assigned Comment: Has duplicates #16340 and #16341 which contain more info. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 ------------------------------+--------------------------------------------- Comment(by cabanela@mnstate.edu): Just knocking to see if anyone is considering making a freetype variant to disable old font support and allow me to use freetype on Leopard again. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 ------------------------------+--------------------------------------------- Comment(by simon@simonwheatley.co.uk): I've just got stuck on this bug (and taken several hours to realise it was OSX/MacPorts related rather than either my code or PHP more generally). Any plans for fixing it, or are we waiting on some OS change? -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 Port: freetype | ------------------------------+--------------------------------------------- Changes (by ryandesign@macports.org): * cc: simon@simonwheatley.co.uk (added) * port: => freetype Comment: Someone just please tell me what to change and why. This ticket says to remove --with-old-mac-fonts and add --with-fsspec=no --with-fsref=no --with-quickdraw-toolbox=no --with-quickdraw-carbon=no. #16341 says I only need to add --with-quickdraw-toolbox=no --with-quickdraw-carbon=no. If someone could tell me definitively what configure options to add or remove, and what the implications of each change are, then I can commit something. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 Port: freetype | ------------------------------+--------------------------------------------- Comment(by blb@macports.org): Doing {{{ configure.args \ - --with-old-mac-fonts + --with-quickdraw-toolbox=no --with-quickdraw-carbon=no }}} gets PHP5 working here. I suppose those can be swapped back in a variant for those who still need them, maybe with a ui_msg warning or one in the description about the CoreFoundation+forking issue. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 Port: freetype | ------------------------------+--------------------------------------------- Comment(by ryandesign@macports.org): Ok. I'm inclined to not make a variant, but rather to make that change globally for darwin 9 and above, and leave things the way they are for darwin 8 and earlier. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken ------------------------------+--------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: php5 freetype imagettftext gd2 Port: freetype | ------------------------------+--------------------------------------------- Comment(by cabanela@mnstate.edu): Replying to [comment:9 ryandesign@…]:
Ok. I'm inclined to not make a variant, but rather to make that change globally for darwin 9 and above, and leave things the way they are for darwin 8 and earlier.
Sounds like a reasonable solution, since this problem only seems to bite darwin9 users. If Apple fixes it later, then maybe it can become a variant. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken --------------------------------+------------------------------------------- Reporter: philip@jocks.to | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: imagettftext Port: freetype php5 gd2 | --------------------------------+------------------------------------------- Changes (by nox@macports.org): * cc: nox@macports.org (added) * keywords: php5 freetype imagettftext gd2 => imagettftext * port: freetype => freetype php5 gd2 -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken -----------------------------+---------------------------------------------- Reporter: philip@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: imagettftext | Port: freetype php5 gd2 -----------------------------+---------------------------------------------- Comment(by ryandesign@…): I finally did some testing myself, and it appears that the only thing I really need to change to get php's imagettftext() to work on Leopard when php is running as an apache module is to remove `--with-old-mac-fonts`. So now, as of r42513, that option is only used on Tiger and earlier. See [comment:ticket:13045:6 comment 6 in ticket 13045] for why this hopefully won't be a problem. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken --------------------------------+------------------------------------------- Reporter: philip@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: imagettftext Port: freetype php5 gd2 | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken --------------------------------+------------------------------------------- Reporter: philip@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: imagettftext Port: freetype php5 gd2 | --------------------------------+------------------------------------------- Comment(by nathanp@…): I'm still having issues with this, using the port for Freetype 2.3.8. The problem occurs for me when I try to load a font for use in PDFLib. I've rebuilt pdflib 7.0.3, PHP 5.2.9, and freetype 2.3.8 using macports, restarted apache and I'm still getting this error. I've manually added to freetype's Portfile --with-fsspec=no --with-fsref=no --with-quickdraw- toolbox=no --with-quickdraw-carbon=no. I'm not sure what else to try. This is seriously annoying and its preventing me from working. Not sure how to proceed. -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15909: freetype 2.3.7 / php5 5.2.6 - PHP imagettftext broken --------------------------------+------------------------------------------- Reporter: philip@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: imagettftext Port: freetype php5 gd2 | --------------------------------+------------------------------------------- Comment(by nathanp@…): Replying to [comment:14 nathanp@…]:
I'm still having issues with this, using the port for Freetype 2.3.8. The problem occurs for me when I try to load a font for use in PDFLib. I've rebuilt pdflib 7.0.3, PHP 5.2.9, and freetype 2.3.8 using macports, restarted apache and I'm still getting this error. I've manually added to freetype's Portfile --with-fsspec=no --with-fsref=no --with-quickdraw- toolbox=no --with-quickdraw-carbon=no. I'm not sure what else to try.
This is seriously annoying and its preventing me from working. Not sure how to proceed.
Disregard, this is a problem with Pdflib itself. Sorry for the spam. http%3A%2F%2Fwww.pdflib.com%2Ffileadmin%2Fpdflib%2Fpdf%2Fsupport%2FPDFlib- in-PHP-HowTo.pdf -- Ticket URL: <http://trac.macports.org/ticket/15909#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts