#28175 [Csd->Opn]: compile failure

From: Date: Mon, 07 Jun 2004 10:16:50 +0000
Subject: #28175 [Csd->Opn]: compile failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60473@lists.php.net to get a copy of this message
 ID:               28175
 Updated by:       elf@php.net
-Reported By:      martin dot kenney at i2net dot com
+Reported By:      elf@php.net
-Status:           Closed
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: slackware 9.1, 2.4.25 kernel
-PHP Version:      4.3.6
+PHP Version:      4.3.6/4.3.7
 Assigned To:      iliaa
 New Comment:

The problem is not solved.
Correction of gdft.c is inadequate.
Therefore, it cannot still build by freetype 2.1.2.

Here is diff from php-4.3.7.
----Cut Here----Cut Here----Cut Here----Cut Here----Cut Here----
--- php-4.3.7/ext/gd/libgd/gdft.c	2004-05-10 02:34:02.000000000 +0900
+++ php-4.3.7.new/ext/gd/libgd/gdft.c	2004-06-07 15:20:19.000000000
+0900
@@ -984,7 +984,7 @@
 		}
 
 /* EAM DEBUG */
-#if (defined(FREETYPE_MAJOR) && (FREETYPE_MAJOR >=2 ) &&
(FREETYPE_MINOR >= 1))
+#if (defined(FREETYPE_MAJOR) && ((FREETYPE_MAJOR == 2 &&
((FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 3) || FREETYPE_MINOR > 1) ||
FREETYPE_MAJOR > 2)))
 		if (font->face->charmap->encoding == FT_ENCODING_MS_SYMBOL) {
 			/* I do not know the significance of the constant 0xf000.
 			 * It was determined by inspection of the character codes
----Cut Here----Cut Here----Cut Here----Cut Here----Cut Here----

I check build on red hat linux 7.2/7.3/8/9, red hat enterprise linux
2.1/3.0 and turbolinux 8 server.
The problem was generated in redhat linux 8.


Previous Comments:
------------------------------------------------------------------------

[2004-05-09 19:34:08] iliaa@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[2004-05-05 22:29:14] sniper@php.net

Ilia, check above comment. :)


------------------------------------------------------------------------

[2004-05-04 09:21:44] paul dot gardiner at barleychalu dot co dot uk

Iliaa,

I looked at your patch to gdft.c and modified it as there was a ')'
missing from the end of the main line and it needed repeating further
down in the file. Once this was applied it compiled OK :)

I've included a basic diff below.

Thanks,
- Paul -

476c476
< #if (defined(FREETYPE_MAJOR) && (FREETYPE_MAJOR >=2 ) &&
(FREETYPE_MINOR >= 1))
---
> #if (defined(FREETYPE_MAJOR) && ((FREETYPE_MAJOR == 2 &&
((FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 3) || FREETYPE_MINOR > 1) ||
FREETYPE_MAJOR > 2)))
485c485
< #endif /* Freetype 2.1 or better */
---
> #endif /* Freetype 2.1.3 or better */
973c973
< #if (defined(FREETYPE_MAJOR) && (FREETYPE_MAJOR >=2 ) &&
(FREETYPE_MINOR >= 1))
---
> #if (defined(FREETYPE_MAJOR) && ((FREETYPE_MAJOR == 2 &&
((FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 3) || FREETYPE_MINOR > 1) ||
FREETYPE_MAJOR > 2)))
983c983
< #endif /* Freetype 2.1 or better */
---
> #endif /* Freetype 2.1.3 or better */

------------------------------------------------------------------------

[2004-04-29 15:25:13] iliaa@php.net

Try the following patch: http://ilia.ws/stuff/gd.txt 

------------------------------------------------------------------------

[2004-04-28 14:37:01] paul dot gardiner at barleychalu dot co dot uk

I get the same on redhat 8. Removing the --with-freetype-dir=/usr from
configure results in a successful compile. It used to work on 4.3.5.
I'd guess it would probably be the upgrade of the bundled gd. Not had
time to take a proper look though.

------------------------------------------------------------------------

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/28175

-- 
Edit this bug report at http://bugs.php.net/?id=28175&edit=1


Thread (14 messages)

« previous php.bugs (#60473) next »