When I was trying to compile the GD library in Redhat 7.3, I received the following error message:
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c:1208: structure has no member named `free'
To solve the problem you have to replace the string "ctx->free" with "ctx->gd_free" in both files: gd_ctx.c and gd.c
Hope this help!!
Regards,
Osiris