Lucky for you, I made a .patch file for this specific issue! I tried
contacting the maintainer, but I didn't get any response. msachs was
very helpful with this. .patch file content follows:
diff -urN libgdiplus-1.0.2.old/src/bmpcodec.c libgdiplus-1.0.2/src/
bmpcodec.c
--- libgdiplus-1.0.2.old/src/bmpcodec.c 2005-05-31
03:47:18.000000000 -0500
+++ libgdiplus-1.0.2/src/bmpcodec.c 2004-05-27 06:35:39.000000000
-0500
@@ -351,7 +351,7 @@
img->data.Scan0 = pixels;
img->data.Reserved = GBD_OWN_SCAN0;
- img->image.surface = cairo_surface_create_for_image ((char*)
pixels,
+ img->image.surface = cairo_surface_create_for_image (pixels,
img-
>cairo_format,
img-
>image.width,
img-
>image.height,
diff -urN libgdiplus-1.0.2.old/src/font.c libgdiplus-1.0.2/src/font.c
--- libgdiplus-1.0.2.old/src/font.c 2005-05-31 03:30:38.000000000
-0500
+++ libgdiplus-1.0.2/src/font.c 2004-09-17 16:51:36.000000000 -0500
@@ -215,7 +215,7 @@
{
glong items_read = 0;
glong items_written = 0;
- char *string;
+ unsigned char *string;
FcPattern **gpfam;
FcChar8 *str;
int i;
@@ -223,7 +223,7 @@
if (!name || !fontFamily)
return InvalidParameter;
- string = (char*)g_utf16_to_utf8 ((const gunichar2 *)name, -1,
+ string = (unsigned char*)g_utf16_to_utf8 ((const gunichar2 *)
name, -1,
&items_read, &items_written, NULL);
if (!font_collection) {
@@ -236,7 +236,7 @@
FcValue val;
val.type = FcTypeString;
- val.u.s = (unsigned char*)string;
+ val.u.s = string;
FcPatternAdd (pat, FC_FAMILY, val, TRUE);
FcConfigSubstitute (0, pat, FcMatchPattern);
@@ -257,7 +257,7 @@
for (i=0; i < font_collection->fontset->nfont; gpfam++, i++){
FcResult r = FcPatternGetString (*gpfam, FC_FAMILY, 0, &str);
- if (strcmp (string, (char*)str)==0) {
+ if (strcmp (string, str)==0) {
*fontFamily = (GpFontFamily *) GdipAlloc (sizeof
(GpFontFamily));
(*fontFamily)->pattern = *gpfam;
(*fontFamily)->allocated = FALSE;
@@ -650,7 +650,7 @@
lf->lfStrikeOut=tm.tmStruckOut;
lf->lfUnderline=tm.tmUnderlined;
lf->lfWeight=tm.tmWeight;
- strcpy(lf->lfFaceName, (char*)FaceName);
+ strcpy(lf->lfFaceName, FaceName);
}
return Ok;
@@ -703,7 +703,7 @@
lf->lfClipPrecision=0; /* 0 = CLIP_DEFAULT_PRECIS */
lf->lfQuality=4; /* 4 = ANTIALIASED_QUALITY */
lf->lfPitchAndFamily=tm.tmPitchAndFamily;
- strcpy(lf->lfFaceName, (char*)FaceName);
+ strcpy(lf->lfFaceName, FaceName);
/* Clean up */
SelectObject_pfn(hdc, oldFont);
@@ -736,7 +736,7 @@
}
fclose(f);
- FcConfigAppFontAddFile(fontCollection->config, (unsigned char*)
fontfile);
+ FcConfigAppFontAddFile(fontCollection->config, fontfile);
/* FIXME - May we delete our temporary font file or does
FcConfigAppFontAddFile just reference our file? */
diff -urN libgdiplus-1.0.2.old/src/general.c libgdiplus-1.0.2/src/
general.c
--- libgdiplus-1.0.2.old/src/general.c 2005-05-31
03:31:33.000000000 -0500
+++ libgdiplus-1.0.2/src/general.c 2004-06-14 15:06:11.000000000
-0500
@@ -307,7 +307,7 @@
size_t i;
FT_ULong *ucs4 = NULL;
- ucs4 = (FT_ULong *)g_utf8_to_ucs4 ((char*)utf8, (glong)-1, NULL,
(glong *)nglyphs, NULL);
+ ucs4 = (FT_ULong *)g_utf8_to_ucs4 (utf8, (glong)-1, NULL, (glong
*)nglyphs, NULL);
if (ucs4 == NULL)
return 0;
diff -urN libgdiplus-1.0.2.old/src/graphics.c libgdiplus-1.0.2/src/
graphics.c
--- libgdiplus-1.0.2.old/src/graphics.c 2005-05-31
03:33:01.000000000 -0500
+++ libgdiplus-1.0.2/src/graphics.c 2004-09-17 16:51:37.000000000
-0500
@@ -1777,7 +1777,7 @@
}
/* Convert string from Gdiplus format to UTF8, suitable for
cairo */
- String=(unsigned char*)g_utf16_to_utf8 ((const gunichar2 *)
CleanString, (glong)StringLen, NULL, NULL, NULL);
+ String=g_utf16_to_utf8 ((const gunichar2 *)CleanString, (glong)
StringLen, NULL, NULL, NULL);
if (!String) {
free (CleanString);
free (StringDetails);
@@ -2191,7 +2191,7 @@
continue;
}
- String=(unsigned char*)g_utf16_to_utf8 ((const
gunichar2 *)(CleanString+i), (glong)StringDetails[i].LineLen, NULL,
NULL, NULL);
+ String=g_utf16_to_utf8 ((const gunichar2 *)
(CleanString+i), (glong)StringDetails[i].LineLen, NULL, NULL, NULL);
#ifdef DRAWSTRING_DEBUG
printf("Displaying line >%s<\n", String);
#endif
diff -urN libgdiplus-1.0.2.old/src/image.c libgdiplus-1.0.2/src/image.c
--- libgdiplus-1.0.2.old/src/image.c 2005-05-31 03:44:35.000000000
-0500
+++ libgdiplus-1.0.2/src/image.c 2004-09-17 16:51:37.000000000 -0500
@@ -491,7 +491,7 @@
return InvalidParameter;
}
- fp = fopen((char*)file_name, "rb");
+ fp = fopen(file_name, "rb");
g_free (file_name);
if (fp == NULL)
return FileNotFound;
@@ -606,7 +606,7 @@
return status;
}
- if ((fp = fopen((char*)file_name, "wb")) == NULL)
+ if ((fp = fopen(file_name, "wb")) == NULL)
return GenericError;
g_free (file_name);
@@ -1225,7 +1225,7 @@
char format_peek[10];
int format_peek_sz;
- format_peek_sz = getBytesFunc ((unsigned char*)format_peek, 10, 1);
+ format_peek_sz = getBytesFunc (format_peek, 10, 1);
format = get_image_format (format_peek, format_peek_sz);
switch (format) {
diff -urN libgdiplus-1.0.2.old/src/jpegcodec.c libgdiplus-1.0.2/src/
jpegcodec.c
--- libgdiplus-1.0.2.old/src/jpegcodec.c 2005-05-31
04:09:41.000000000 -0500
+++ libgdiplus-1.0.2/src/jpegcodec.c 2004-06-25 10:50:17.000000000
-0500
@@ -394,7 +394,7 @@
img->data.Scan0 = destbuf;
img->data.Reserved = GBD_OWN_SCAN0;
- img->image.surface = cairo_surface_create_for_image ((char*)
destbuf, img->cairo_format,
+ img->image.surface = cairo_surface_create_for_image (destbuf,
img->cairo_format,
img-
>image.width, img->image.height,
stride);
img->image.horizontalResolution = 0;
diff -urN libgdiplus-1.0.2.old/src/pngcodec.c libgdiplus-1.0.2/src/
pngcodec.c
--- libgdiplus-1.0.2.old/src/pngcodec.c 2005-05-31
03:46:34.000000000 -0500
+++ libgdiplus-1.0.2/src/pngcodec.c 2004-07-07 21:56:35.000000000
-0500
@@ -225,7 +225,7 @@
img->data.Scan0 = rawdata;
img->data.Reserved = GBD_OWN_SCAN0;
- img->image.surface = cairo_surface_create_for_image ((char*)
rawdata,
+ img->image.surface = cairo_surface_create_for_image (rawdata,
img-
>cairo_format,
img-
>image.width,
img-
>image.height,
On Jun 2, 2005, at 2:01 AM, Mich�le Garoche wrote:
Le 2 juin 2005 � 07:38, Kevin Burnett a �crit :
I got past the problem explained in the FAQ, and now I get this
problem:
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include -
I/sw/include/libpng12 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/
include -I/usr/X11R6/include/freetype2 -I/usr/X11R6/include -
Wall -Werror -Wno-unused -Wno-format -I/sw/include -no-cpp-
precomp -g -O2 -pthread -c -o font.lo `test -f 'font.c' || echo
'./'`font.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/X11R6/
include/freetype2 -I/sw/include -I/sw/include/libpng12 -I/sw/
include/glib-2.0 -I/sw/lib/glib-2.0/include -I/usr/X11R6/include/
freetype2 -I/usr/X11R6/include -Wall -Werror -Wno-unused -Wno-
format -I/sw/include -no-cpp-precomp -g -O2 -pthread -c font.c -MT
font.lo -MD -MP -MF .deps/font.TPlo -fno-common -o .libs/font.o
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-pthread'
It will be more reasonable to contact the maintainer of the package.
First the -pthread option should probably be removed from some
configure file (I have not the source right now so I cannot say for
sure where it is). Then as all warnings are treated as errors, it
fails.
Cheers,
Mich�le
<http://micmacfr.homeunix.org>
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-
q22005
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users