Yeah, we need something that does the following: #!bash sed -e's/GDrawableType/GImageType/' <plug-ins/psd/psd.c >temp.c mv temp.c plug-ins/psd/psd.c If we leave the GDrawableType in there, it fails to compile because the functions' signatures are different between the two types.
The proposed patch works for me. Here comes the compiler error message... Making all in psd psd.c:468: error: conflicting types for 'psd_type_to_gimp_type' psd.c:302: error: previous declaration of 'psd_type_to_gimp_type' was here psd.c: In function 'dispatch_resID': psd.c:707: warning: pointer targets in assignment differ in signedness psd.c: In function 'do_layer_record': psd.c:1091: warning: pointer targets in assignment differ in signedness psd.c: In function 'do_image_resources': psd.c:1404: warning: pointer targets in assignment differ in signedness psd.c:1769:4: warning: "/*" within comment psd.c: In function 'load_image': psd.c:2184: warning: pointer targets in passing argument 3 of 'decode' differ in signedness psd.c:2184: warning: pointer targets in passing argument 4 of 'decode' differ in signedness psd.c:2190: warning: pointer targets in passing argument 3 of 'decode' differ in signedness psd.c:2190: warning: pointer targets in passing argument 4 of 'decode' differ in signedness psd.c:2197: warning: pointer targets in passing argument 3 of 'decode' differ in signedness psd.c:2197: warning: pointer targets in passing argument 4 of 'decode' differ in signedness psd.c:2282: warning: unused variable 'i' psd.c: In function 'cmykp2rgb': psd.c:2480: warning: pointer targets in assignment differ in signedness distcc[7339] ERROR: compile psd.c on localhost failed make[2]: *** [psd.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
This version has been removed, 0.21.1 fixes this and has just been stablilised on x86.