Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer"
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer" | Malcolm Carlock | 24 Feb 16:11 |
Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer" | Sven Neumann | 24 Feb 16:50 |
Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer" | Malcolm Carlock | 24 Feb 17:01 |
Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer"
When building gimp 1.2.5 on RH9, make dies with the following errors, after successfully compiling much of gimp.
Version 1.2.9 of both glib and gtk+ are installed on the system; gcc is version is 3.2.2.
Can anyone suggest what the problem may be?
Thanks and regards,
Malcolm
make[3]: Entering directory `/usr/local/src/gimp-1.2.5/plug-ins/print'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../intl -I/usr/local/include/gtk-1.2 -
I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include
-I/usr/X11R6/include -I/usr/local/include
-I/usr/local/include
-DLOCALEDIR=\""/usr/local/share/locale"\" -DGTK_DISABLE_COMPAT_H -g
-O2 -Wal
l -c print.c
In file included from print.c:46:
print_gimp.h:87: parse error before "stp_param_t"
print.c: In function `run':
print.c:258: warning: implicit declaration of function
`stp_allocate_copy'
print.c:258: warning: assignment makes pointer from integer without
a cast
print.c:260: warning: implicit declaration of function
`stp_set_output_color_model'
print.c:265: warning: assignment discards qualifiers from pointer
target type
print.c:327: warning: implicit declaration of function `stp_copy_vars'
print.c:338: warning: implicit declaration of function
`stp_set_output_to'
print.c:340: warning: implicit declaration of function
`stp_set_ppd_file'
print.c:342: warning: implicit declaration of function
`stp_set_resolution'
print.c:343: warning: implicit declaration of function
`stp_set_media_size'
print.c:344: warning: implicit declaration of function
`stp_set_media_type'
print.c:345: warning: implicit declaration of function
`stp_set_media_source'
print.c:348: warning: implicit declaration of function
`stp_set_brightness'
print.c:351: warning: implicit declaration of function `stp_set_scaling'
print.c:354: warning: implicit declaration of function
`stp_set_orientation'
print.c:363: warning: implicit declaration of function `stp_set_gamma'
print.c:366: warning: implicit declaration of function
`stp_set_contrast'
print.c:369: warning: implicit declaration of function `stp_set_cyan'
print.c:372: warning: implicit declaration of function `stp_set_magenta'
print.c:375: warning: implicit declaration of function `stp_set_yellow'
print.c:378: warning: implicit declaration of function
`stp_set_image_type'
print.c:381: warning: implicit declaration of function
`stp_set_saturation'
print.c:384: warning: implicit declaration of function `stp_set_density'
print.c:387: warning: implicit declaration of function
`stp_set_ink_type'
print.c:390: warning: implicit declaration of function
`stp_set_dither_algorithm'
print.c:393: warning: implicit declaration of function `stp_set_unit'
print.c:396: warning: assignment discards qualifiers from pointer
target type
print.c:454: warning: implicit declaration of function
`stp_get_output_to'
print.c:504: warning: passing arg 1 of `fopen' makes pointer from
integer without a cast
print.c:509: warning: implicit declaration of function
`stp_set_app_gamma'
print.c:510: warning: implicit declaration of function
`stp_printer_get_printvars'
print.c:510: warning: passing arg 2 of `stp_merge_printvars' makes
pointer from integer without a cast
print.c:517: warning: implicit declaration of function `stp_set_cmap'
print.c:530: warning: implicit declaration of function
`stp_printer_get_printfuncs'
print.c:530: invalid type argument of `->'
print.c:532: invalid type argument of `->'
print.c:579: warning: implicit declaration of function `stp_free_vars'
print.c: In function `initialize_printer':
print.c:620: warning: implicit declaration of function
`stp_allocate_vars'
print.c:620: warning: assignment makes pointer from integer without
a cast
print.c: In function `add_printer':
print.c:743: warning: assignment makes pointer from integer without
a cast
print.c:763: warning: assignment makes pointer from integer without
a cast
print.c: In function `printrc_load':
print.c:862: warning: implicit declaration of function
`stp_set_output_to_n'
print.c:868: warning: implicit declaration of function
`stp_set_ppd_file_n'
print.c:870: warning: implicit declaration of function
`stp_set_resolution_n'
print.c:871: warning: implicit declaration of function
`stp_set_media_size_n'
print.c:872: warning: implicit declaration of function
`stp_set_media_type_n'
print.c:874: warning: implicit declaration of function
`stp_set_media_source_n'
print.c:875: warning: implicit declaration of function
`stp_maximum_settings'
print.c:875: warning: initialization makes pointer from integer
without a cast
print.c:875: warning: implicit declaration of function
`stp_minimum_settings'
print.c:875: warning: initialization makes pointer from integer
without a cast
print.c:875: warning: initialization discards qualifiers from
pointer target type
print.c:875: warning: implicit declaration of function
`stp_get_brightness'
print.c:876: warning: initialization makes pointer from integer
without a cast
print.c:876: warning: initialization makes pointer from integer
without a cast
print.c:876: warning: initialization discards qualifiers from
pointer target type
print.c:876: warning: implicit declaration of function `stp_get_scaling'
print.c:880: warning: initialization makes pointer from integer
without a cast
print.c:880: warning: initialization makes pointer from integer
without a cast
print.c:880: warning: initialization discards qualifiers from
pointer target type
print.c:880: warning: implicit declaration of function `stp_get_gamma'
print.c:881: warning: initialization makes pointer from integer
without a cast
print.c:881: warning: initialization makes pointer from integer
without a cast
print.c:881: warning: initialization discards qualifiers from
pointer target type
print.c:881: warning: implicit declaration of function
`stp_get_contrast'
print.c:882: warning: initialization makes pointer from integer
without a cast
print.c:882: warning: initialization makes pointer from integer
without a cast
print.c:882: warning: initialization discards qualifiers from
pointer target type
print.c:882: warning: implicit declaration of function `stp_get_cyan'
print.c:883: warning: initialization makes pointer from integer
without a cast
print.c:883: warning: initialization makes pointer from integer
without a cast
print.c:883: warning: initialization discards qualifiers from
pointer target type
print.c:883: warning: implicit declaration of function `stp_get_magenta'
print.c:884: warning: initialization makes pointer from integer
without a cast
print.c:884: warning: initialization makes pointer from integer
without a cast
print.c:884: warning: initialization discards qualifiers from
pointer target type
print.c:884: warning: implicit declaration of function `stp_get_yellow'
print.c:887: warning: initialization makes pointer from integer
without a cast
print.c:887: warning: initialization makes pointer from integer
without a cast
print.c:887: warning: initialization discards qualifiers from
pointer target type
print.c:887: warning: implicit declaration of function
`stp_get_saturation'
print.c:888: warning: initialization makes pointer from integer
without a cast
print.c:888: warning: initialization makes pointer from integer
without a cast
print.c:888: warning: initialization discards qualifiers from
pointer target type
print.c:888: warning: implicit declaration of function `stp_get_density'
print.c:889: warning: implicit declaration of function
`stp_set_ink_type_n'
print.c:890: warning: implicit declaration of function
`stp_set_dither_algorithm_n'
print.c:1035: subscripted value is neither array nor pointer
print.c:1038: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
print.c:1038: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
print.c:1038: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
print.c:1038: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
print.c:1038: warning: passing arg 1 of `strcmp' makes pointer from
integer without a cast
print.c:1038: warning: passing arg 2 of `strcmp' makes pointer from
integer without a cast
print.c: In function `printrc_save':
print.c:1089: warning: format argument is not a pointer (arg 3)
print.c:1091: warning: implicit declaration of function
`stp_get_ppd_file'
print.c:1091: warning: format argument is not a pointer (arg 3)
print.c:1093: warning: implicit declaration of function
`stp_get_resolution'
print.c:1093: warning: format argument is not a pointer (arg 3)
print.c:1094: too few arguments to function `stp_get_media_size'
print.c:1094: invalid use of void expression
print.c:1095: warning: implicit declaration of function
`stp_get_media_type'
print.c:1095: warning: format argument is not a pointer (arg 3)
print.c:1096: warning: implicit declaration of function
`stp_get_media_source'
print.c:1096: warning: format argument is not a pointer (arg 3)
print.c:1097: warning: double format, different type arg (arg 3)
print.c:1098: warning: double format, different type arg (arg 3)
print.c:1099: warning: implicit declaration of function
`stp_get_orientation'
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: double format, different type arg (arg 3)
print.c:1105: warning: double format, different type arg (arg 3)
print.c:1106: warning: double format, different type arg (arg 3)
print.c:1107: warning: implicit declaration of function
`stp_get_image_type'
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: implicit declaration of function
`stp_get_ink_type'
print.c:1110: warning: format argument is not a pointer (arg 3)
print.c:1111: warning: implicit declaration of function
`stp_get_dither_algorithm'
print.c:1111: warning: format argument is not a pointer (arg 3)
print.c:1112: warning: implicit declaration of function `stp_get_unit'
print.c: In function `get_system_printers':
print.c:1301: subscripted value is neither array nor pointer
make[3]: *** [print.o] Error 1
make[3]: Leaving directory `/usr/local/src/gimp-1.2.5/plug-ins/print'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/gimp-1.2.5/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gimp-1.2.5'
make: *** [all-recursive-am] Error 2
Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer"
Hi,
Malcolm Carlock writes:
When building gimp 1.2.5 on RH9, make dies with the following errors, after successfully compiling much of gimp.
Version 1.2.9 of both glib and gtk+ are installed on the system; gcc is version is 3.2.2.
Can anyone suggest what the problem may be?
Looks like you are trying to build the print plug-in against gimp-print-4.3. This is not supported, you will have to use gimp-print-4.2 or alternatively use the print plug-in that comes with gimp-print.
BTW, is there a particular reason you are attempting to build gimp-1.2.5 instead of the latest gimp-2.0 pre-release? The latter is considered to be more stable than gimp-1.2 and gimp-1.2 is basically not maintained any longer.
Sven
Compile error building gimp 1.2.5 on RH9: "subscripted value isneither array nor pointer"
Hi,
Thanks for that. I'll replace gimp-print with 4.2.
> gimp-1.2.5 instead of the latest gimp-2.0 pre-release?
...the gimp website states that 1.2.5 is the latest stable version.
However, based on your comments I'll most likely try 2.0.
Regards,
Malcolm
Sven Neumann wrote:
Hi,
Malcolm Carlock writes:
When building gimp 1.2.5 on RH9, make dies with the following errors, after successfully compiling much of gimp.
Version 1.2.9 of both glib and gtk+ are installed on the system; gcc is version is 3.2.2.
Can anyone suggest what the problem may be?
Looks like you are trying to build the print plug-in against gimp-print-4.3. This is not supported, you will have to use gimp-print-4.2 or alternatively use the print plug-in that comes with gimp-print.
BTW, is there a particular reason you are attempting to build gimp-1.2.5 instead of the latest gimp-2.0 pre-release? The latter is considered to be more stable than gimp-1.2 and gimp-1.2 is basically not maintained any longer.
Sven