GNOME Bugzilla – Bug 120162
gimp-print 4.3 incompatible with the print plug-in in the gimp tree
Last modified: 2003-08-23 02:46:08 UTC
I get the following compile error: make[3]: Leaving directory `/usr/local/src/gimp-1.3.18/plug-ins/pagecurl' Making all in print make[3]: Entering directory `/usr/local/src/gimp-1.3.18/plug-ins/print' if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -g -O2 -Wall -MT print.o -MD -MP -MF ".deps/print.Tpo" \ -c -o print.o `test -f 'print.c' || echo './'`print.c; \ then mv -f ".deps/print.Tpo" ".deps/print.Po"; \ else rm -f ".deps/print.Tpo"; exit 1; \ fi print.c:44:35: gimp-print/gimp-print.h: No such file or directory In file included from print.c:46: print_gimp.h:48: error: parse error before "stp_vars_t" print_gimp.h:48: warning: no semicolon at end of struct or union print_gimp.h:49: warning: type defaults to `int' in declaration of `gp_plist_t' print_gimp.h:49: warning: data definition has no type or storage class print_gimp.h:59: error: parse error before "vars" print_gimp.h:59: warning: type defaults to `int' in declaration of `vars' print_gimp.h:59: warning: data definition has no type or storage class print_gimp.h:62: error: parse error before '*' token print_gimp.h:62: warning: type defaults to `int' in declaration of `plist' print_gimp.h:62: warning: data definition has no type or storage class print_gimp.h:67: error: parse error before "current_printer" print_gimp.h:67: warning: type defaults to `int' in declaration of `current_printer' print_gimp.h:67: warning: data definition has no type or storage class print_gimp.h:73: error: parse error before '*' token print_gimp.h:73: warning: type defaults to `int' in declaration of `pv' print_gimp.h:73: warning: data definition has no type or storage class print_gimp.h:82: error: parse error before '*' token print_gimp.h:82: warning: type defaults to `int' in declaration of `Image_GimpDrawable_new' print_gimp.h:82: warning: data definition has no type or storage class print_gimp.h:83: warning: type defaults to `int' in declaration of `gp_plist_t' print_gimp.h:83: error: parse error before '*' token print_gimp.h:84: error: parse error before '*' token print_gimp.h:88: error: parse error before "stp_param_t" print.c:56: error: parse error before '*' token print.c:79: error: parse error before "vars" print.c:79: warning: type defaults to `int' in declaration of `vars' print.c:79: warning: initialization makes integer from pointer without a cast print.c:79: warning: data definition has no type or storage class print.c:83: error: parse error before '*' token print.c:83: warning: type defaults to `int' in declaration of `plist' print.c:83: warning: data definition has no type or storage class print.c:87: error: parse error before "current_printer" print.c:87: warning: type defaults to `int' in declaration of `current_printer' print.c:87: warning: data definition has no type or storage class print.c: In function `run': print.c:258: warning: implicit declaration of function `stp_init' print.c:264: warning: implicit declaration of function `stp_allocate_copy' print.c:264: warning: implicit declaration of function `stp_default_settings' print.c:265: warning: implicit declaration of function `stp_set_input_color_model' print.c:265: error: `COLOR_MODEL_RGB' undeclared (first use in this function) print.c:265: error: (Each undeclared identifier is reported only once print.c:265: error: for each function it appears in.) print.c:266: warning: implicit declaration of function `stp_set_output_color_model' print.c:271: warning: implicit declaration of function `stp_get_printer_by_index' print.c:329: warning: implicit declaration of function `stp_copy_vars' print.c:329: error: request for member `v' in something not a structure or union print.c:340: warning: implicit declaration of function `stp_set_output_to' print.c:341: warning: implicit declaration of function `stp_set_driver' print.c:342: warning: implicit declaration of function `stp_set_ppd_file' print.c:343: warning: implicit declaration of function `stp_set_output_type' print.c:344: warning: implicit declaration of function `stp_set_resolution' print.c:345: warning: implicit declaration of function `stp_set_media_size' print.c:346: warning: implicit declaration of function `stp_set_media_type' print.c:347: warning: implicit declaration of function `stp_set_media_source' print.c:350: warning: implicit declaration of function `stp_set_brightness' print.c:353: warning: implicit declaration of function `stp_set_scaling' print.c:356: warning: implicit declaration of function `stp_set_orientation' print.c:359: warning: implicit declaration of function `stp_set_left' print.c:362: warning: implicit declaration of function `stp_set_top' print.c:365: warning: implicit declaration of function `stp_set_gamma' print.c:368: warning: implicit declaration of function `stp_set_contrast' print.c:371: warning: implicit declaration of function `stp_set_cyan' print.c:374: warning: implicit declaration of function `stp_set_magenta' print.c:377: warning: implicit declaration of function `stp_set_yellow' print.c:380: warning: implicit declaration of function `stp_set_image_type' print.c:383: warning: implicit declaration of function `stp_set_saturation' print.c:386: warning: implicit declaration of function `stp_set_density' print.c:389: warning: implicit declaration of function `stp_set_ink_type' print.c:392: warning: implicit declaration of function `stp_set_dither_algorithm' print.c:395: warning: implicit declaration of function `stp_set_unit' print.c:398: warning: implicit declaration of function `stp_get_printer_by_driver' print.c:398: warning: implicit declaration of function `stp_get_driver' print.c:457: warning: implicit declaration of function `stp_get_output_to' print.c:507: warning: passing arg 1 of `fopen' makes pointer from integer without a cast print.c:511: error: `stp_image_t' undeclared (first use in this function) print.c:511: error: `image' undeclared (first use in this function) print.c:512: warning: implicit declaration of function `stp_set_app_gamma' print.c:513: warning: implicit declaration of function `stp_merge_printvars' print.c:514: warning: implicit declaration of function `stp_printer_get_printvars' print.c:521: warning: implicit declaration of function `stp_set_cmap' print.c:530: warning: implicit declaration of function `stp_set_outfunc' print.c:531: warning: implicit declaration of function `stp_set_errfunc' print.c:532: warning: implicit declaration of function `stp_set_outdata' print.c:533: warning: implicit declaration of function `stp_set_errdata' print.c:534: warning: implicit declaration of function `stp_printer_get_printfuncs' print.c:534: error: invalid type argument of `->' print.c:536: error: invalid type argument of `->' print.c:572: warning: passing arg 2 of `gimp_procedural_db_set_data' makes pointer from integer without a cast print.c:585: warning: implicit declaration of function `stp_free_vars' print.c: At top level: print.c:621: error: parse error before '*' token print.c: In function `initialize_printer': print.c:623: error: `printer' undeclared (first use in this function) print.c:625: warning: implicit declaration of function `stp_allocate_vars' print.c: In function `psearch': print.c:718: warning: comparison between signed and unsigned print.c: At top level: print.c:728: warning: type defaults to `int' in declaration of `gp_plist_t' print.c:728: error: parse error before '*' token print.c: In function `add_printer': print.c:735: error: `p' undeclared (first use in this function) print.c:736: error: `key' undeclared (first use in this function) print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:737: error: request for member `name' in something not a structure or union print.c:739: error: `add_only' undeclared (first use in this function) print.c: In function `printrc_load': print.c:798: error: parse error before "key" print.c:833: error: `key' undeclared (first use in this function) print.c:867: warning: implicit declaration of function `stp_set_output_to_n' print.c:868: warning: implicit declaration of function `stp_set_driver_n' print.c:873: warning: implicit declaration of function `stp_set_ppd_file_n' print.c:875: warning: implicit declaration of function `stp_set_resolution_n' print.c:876: warning: implicit declaration of function `stp_set_media_size_n' print.c:877: warning: implicit declaration of function `stp_set_media_type_n' print.c:879: warning: implicit declaration of function `stp_set_media_source_n' print.c:880: error: syntax error before "maxvars" print.c:880: error: syntax error before "minvars" print.c:880: error: syntax error before "defvars" print.c:880: warning: implicit declaration of function `stp_get_brightness' print.c:880: error: `maxvars' undeclared (first use in this function) print.c:880: error: `minvars' undeclared (first use in this function) print.c:880: error: `defvars' undeclared (first use in this function) print.c:881: error: syntax error before "maxvars" print.c:881: error: syntax error before "minvars" print.c:881: error: syntax error before "defvars" print.c:881: warning: implicit declaration of function `stp_get_scaling' print.c:885: error: syntax error before "maxvars" print.c:885: error: syntax error before "minvars" print.c:885: error: syntax error before "defvars" print.c:885: warning: implicit declaration of function `stp_get_gamma' print.c:886: error: syntax error before "maxvars" print.c:886: error: syntax error before "minvars" print.c:886: error: syntax error before "defvars" print.c:886: warning: implicit declaration of function `stp_get_contrast' print.c:887: error: syntax error before "maxvars" print.c:887: error: syntax error before "minvars" print.c:887: error: syntax error before "defvars" print.c:887: warning: implicit declaration of function `stp_get_cyan' print.c:888: error: syntax error before "maxvars" print.c:888: error: syntax error before "minvars" print.c:888: error: syntax error before "defvars" print.c:888: warning: implicit declaration of function `stp_get_magenta' print.c:889: error: syntax error before "maxvars" print.c:889: error: syntax error before "minvars" print.c:889: error: syntax error before "defvars" print.c:889: warning: implicit declaration of function `stp_get_yellow' print.c:892: error: syntax error before "maxvars" print.c:892: error: syntax error before "minvars" print.c:892: error: syntax error before "defvars" print.c:892: warning: implicit declaration of function `stp_get_saturation' print.c:893: error: syntax error before "maxvars" print.c:893: error: syntax error before "minvars" print.c:893: error: syntax error before "defvars" print.c:893: warning: implicit declaration of function `stp_get_density' print.c:894: warning: implicit declaration of function `stp_set_ink_type_n' print.c:895: warning: implicit declaration of function `stp_set_dither_algorithm_n' print.c:1003: warning: implicit declaration of function `stp_set_page_width' print.c:1005: warning: implicit declaration of function `stp_set_page_height' print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1034: error: request for member `name' in something not a structure or union print.c:1040: error: subscripted value is neither array nor pointer print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: warning: passing arg 1 of `strlen' makes pointer from integer without a cast print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: warning: passing arg 1 of `strlen' makes pointer from integer without a cast print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: warning: passing arg 1 of `strlen' makes pointer from integer without a cast print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: warning: passing arg 1 of `strlen' makes pointer from integer without a cast print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: error: request for member `v' in something not a structure or union print.c:1043: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast print.c:1043: warning: passing arg 2 of `strcmp' makes pointer from integer without a cast print.c: In function `printrc_save': print.c:1061: error: `p' undeclared (first use in this function) print.c:1089: error: request for member `name' in something not a structure or union print.c:1094: warning: format argument is not a pointer (arg 3) print.c:1095: warning: format argument is not a pointer (arg 3) print.c:1096: warning: implicit declaration of function `stp_get_ppd_file' print.c:1096: warning: format argument is not a pointer (arg 3) print.c:1097: warning: implicit declaration of function `stp_get_output_type' print.c:1098: warning: implicit declaration of function `stp_get_resolution' print.c:1098: warning: format argument is not a pointer (arg 3) print.c:1099: warning: implicit declaration of function `stp_get_media_size' print.c:1099: warning: format argument is not a pointer (arg 3) print.c:1100: warning: implicit declaration of function `stp_get_media_type' print.c:1100: warning: format argument is not a pointer (arg 3) print.c:1101: warning: implicit declaration of function `stp_get_media_source' print.c:1101: warning: format argument is not a pointer (arg 3) print.c:1102: warning: double format, different type arg (arg 3) print.c:1103: warning: double format, different type arg (arg 3) print.c:1104: warning: implicit declaration of function `stp_get_orientation' print.c:1105: warning: implicit declaration of function `stp_get_left' print.c:1106: warning: implicit declaration of function `stp_get_top' print.c:1107: warning: double format, different type arg (arg 3) print.c:1108: warning: double format, different type arg (arg 3) print.c:1109: warning: double format, different type arg (arg 3) print.c:1110: warning: double format, different type arg (arg 3) print.c:1111: warning: double format, different type arg (arg 3) print.c:1112: warning: implicit declaration of function `stp_get_image_type' print.c:1113: warning: double format, different type arg (arg 3) print.c:1114: warning: double format, different type arg (arg 3) print.c:1115: warning: implicit declaration of function `stp_get_ink_type' print.c:1115: warning: format argument is not a pointer (arg 3) print.c:1116: warning: implicit declaration of function `stp_get_dither_algorithm' print.c:1116: warning: format argument is not a pointer (arg 3) print.c:1117: warning: implicit declaration of function `stp_get_unit' print.c:1118: warning: implicit declaration of function `stp_get_page_width' print.c:1119: warning: implicit declaration of function `stp_get_page_height' print.c:1091: warning: value computed is not used print.c:1091: warning: value computed is not used print.c: At top level: print.c:1138: error: parse error before '*' token print.c: In function `compare_printers': print.c:1141: error: `p1' undeclared (first use in this function) print.c:1141: error: `p2' undeclared (first use in this function) print.c: In function `get_system_printers': print.c:1184: error: request for member `name' in something not a structure or union print.c:1185: error: request for member `v' in something not a structure or union print.c:1186: error: request for member `v' in something not a structure or union print.c:1186: error: `OUTPUT_COLOR' undeclared (first use in this function) print.c:1201: warning: comparison between signed and unsigned print.c:1209: warning: comparison between signed and unsigned print.c:1237: warning: comparison between signed and unsigned print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1247: error: request for member `name' in something not a structure or union print.c:1253: error: request for member `v' in something not a structure or union print.c:1255: error: request for member `v' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1267: error: request for member `name' in something not a structure or union print.c:1273: error: request for member `v' in something not a structure or union print.c:1275: error: request for member `v' in something not a structure or union print.c:1306: error: subscripted value is neither array nor pointer print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union print.c:1309: error: request for member `name' in something not a structure or union make[3]: *** [print.o] Error 1 make[3]: Leaving directory `/usr/local/src/gimp-1.3.18/plug-ins/print' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/gimp-1.3.18/plug-ins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/gimp-1.3.18' make: *** [all] Error 2 brandon@benscomp:/usr/local/src/gimp-1.3.18>
What is the version of the gimp-print library installed on your system? Is it installed at all? Also, did you get any complaints when you ran "configure"?
The user is obviously trying to compile the print plug-in shipped with gimp against gimp-print-4.3. This is known not to work because the gimp-print people broke the API. We should consider to either update the print plug-in and require 4.3 or simply stop including the print plug-in.
Since gimp-print-4.3.x is a development release I think we should not make this a requirement yet. I suggest we modify configure.in to check for the available version of gimp-print and add #ifdef conditionals to the print plug-in to allow people to compile against either gimp-print-4.2.x or 4.3.x.
It's going to be very hard to make the plugin compatible via #ifdefs. The API change between 4.2 and 4.3 is just too great.
Better to modify configure.in to disallow non-4.2.x versions then for now.
That sounds like an acceptable work-around to me.
I concur. 4.3 isn't locked down yet anyway. In the longer run, I'd like to work out the most appropriate split between the GIMP and Gimp-Print as far as ownership. The Gimp-Print 4.3 line has a GTK1-based UI library (libgimpprintui) with a very small plugin whose main purpose is to provide glue between the GIMP and Gimp-Print.
2003-06-22 Manish Singh <yosh@gimp.org> * configure.in: disallow libgimpprint >= 4.3.0, addresses bug #120162.