After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 543520 - Cups custom options are not sent properly
Cups custom options are not sent properly
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
2.16.x
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-07-18 01:55 UTC by Christian Lupien
Modified: 2012-03-15 19:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch (3.36 KB, patch)
2010-07-18 04:30 UTC, Benjamin Berg
none Details | Review
Patch to correctly load default settings into the dialog (932 bytes, patch)
2010-07-18 11:15 UTC, Benjamin Berg
none Details | Review
New patch (5.36 KB, patch)
2010-07-29 10:38 UTC, Benjamin Berg
none Details | Review
add Custom. prefix to custom options + set values to PPD values (6.10 KB, patch)
2010-08-18 11:22 UTC, Marek Kašík
needs-work Details | Review
1 - Patch to prepend Custom. (3.74 KB, application/octet-stream)
2010-08-22 19:07 UTC, Benjamin Berg
  Details
2 - Patch to fix up GtkPrinterOptionWidget (4.62 KB, application/octet-stream)
2010-08-22 19:11 UTC, Benjamin Berg
  Details
2 - the real one, alternative one (4.62 KB, application/octet-stream)
2010-08-22 19:14 UTC, Benjamin Berg
  Details
2 - the second way, which I prefere (3.98 KB, patch)
2010-08-22 19:20 UTC, Benjamin Berg
none Details | Review
Patch to prepend Custom. (3.75 KB, application/octet-stream)
2011-07-21 14:39 UTC, Benjamin Berg
  Details
neccessary updates to the UI code (4.44 KB, patch)
2011-07-21 14:41 UTC, Benjamin Berg
none Details | Review
Strip Custom. from the default value that cups passes in (931 bytes, application/octet-stream)
2012-01-05 23:41 UTC, Benjamin Berg
  Details
PPD for crash (13.66 KB, text/plain)
2012-01-27 15:26 UTC, Jan Alexander Steffens (heftig)
  Details
backtrace crash thunderbird print with gtk2-2.24.9 (1.82 KB, text/x-log)
2012-01-27 19:32 UTC, Dieter Rethmeyer
  Details
ppd used for printing, Canon iP4300 with turboprint (38.29 KB, application/vnd.cups-ppd)
2012-01-27 19:36 UTC, Dieter Rethmeyer
  Details
patch fixing the crash (3.90 KB, patch)
2012-01-30 16:24 UTC, Marek Kašík
none Details | Review

Description Christian Lupien 2008-07-18 01:55:28 UTC
Please describe the problem:
Cups allows to have custom options where the entry field can be any text instead of just a selector. Gnome handles the user interface properly but does not send the proper string to the cups printer.

Steps to reproduce:
1. Using a printer with a custom entry (I created my own ppd file)
  see: http://www.cups.org/documentation.php/spec-ppd.html
2. In some gnome program, go to the print menu, change that option to some string like "ThisIsAtest", then print.
3. Look at the cups control file that is produced


Actual results:
The control file will contain the custom option with value "ThisIsAtest"

Expected results:
According to the cups people, the value should have been "Custom.ThisIsAtest" in this case. Without the "Custom." part ,this is not used by the cups filters.

Does this happen every time?
yes

Other information:
Here is the answer to the questions I sent to cups: http://www.cups.org/newsgroups.php?s5135+gcups.bugs+v5139+T1

And here is a related bug: http://www.cups.org/str.php?L2660
And the devel forum message it relates to:
http://www.cups.org/newsgroups.php?s41+gcups.development+v51+T1+Qcustom+options
Comment 1 Kjartan Maraas 2009-04-12 16:02:22 UTC
Does this happen with apps using the gtk+ printing api as well?
Comment 2 Christian Lupien 2009-04-16 19:02:22 UTC
I checked my current version (gnome 2.22.3 on fedora 9) and it can only happen with the gtk+ printing api. The libgnomeui does not seem to have access to those custom options (I have checked a few programs like tomboy but if you have a better one to try, tell me).

I see what I described initially in programs like gedit or evolution (printing and email).

When I upgrade to the latest gnome next month I will give it another try to see if it as been fixed.

Comment 3 André Klapper 2009-08-11 19:57:50 UTC
> I checked my current version (gnome 2.22.3 on fedora 9) and it can only 
> happen with the gtk+ printing api.

Christian:
So this is a GTK/printing bug only and has nothing to do with gnome-print?
Does this still happen in a recent version? GNOME 2.22 is not maintained anymore.
Comment 4 Christian Lupien 2009-09-02 22:06:00 UTC
I just checked under Fedora 11 (gnome 2.26.3) and the same problem is still there (trying print from either evolution or gedit).

From what I understand those programs use the GTK print dialogs so I changed the
product to gtk+ but I am not sure about the component so I left it at general.

BTW for my tests I created a new cups printer with a file URI
DeviceURI file:///tmp/printtest
(this requires the "FileDevice Yes" option in cupsd.conf)

and my ppd attached to that URI has the following lines added:
*JCLOpenUI JCLPhone/Phone number (, for pause): PickOne
*OrderDependency: 10.7 JCLSetup *JCLPhone
*DefaultJCLPhone: interntest
*JCLPhone None/No number: ""
*JCLPhone internal/68046: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 68046;<0A>"
*JCLPhone interntest/62026: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 62026;<0A>"
*JCLPhone external/9,555-555: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE 9,555-555;<0A>"
*JCLCloseUI: *JCLPhone
*CustomJCLPhone True: "@PJL COMMENT OID_ATT_FAX_DESTINATION_PHONE \1;<0A>"
*ParamCustomJCLPhone Text: 1 string 0 32

             and in another section of the ppd:
OpenUI Phone/Phone number (, for pause): PickOne
*OrderDependency: 45.0 AnySetup *Phone
*DefaultPhone: interntest
*Phone None/No number: ""
*Phone internal/68046: "(68046) pop"
*Phone interntest/62026: "(62026) pop"
*Phone external/9,555-555: "(9,555-555) pop"
*CloseUI: *Phone
*CustomPhone True: "pop>"
*ParamCustomPhone Text: 1 string 0 32
Comment 5 Christian Lupien 2009-09-02 22:50:17 UTC
I should add that the regular option which are part of the same custom group are not processed properly.

For example, following the option group seen in my previous comment, If I select 68046 in the GUI then the cups request will contain JCLPhone: 68046 which is wrong and is replaced by the default option (62026) in the ps output from cups.

The proper cups request should have been: JCLPhone: internal

This works properly for options with no custom entries.
Comment 6 Javier Jardón (IRC: jjardon) 2009-11-12 21:32:12 UTC
Setting as UNCONFIRMED as question of comment #3 was replied
Comment 7 Benjamin Berg 2010-07-18 04:30:06 UTC
Created attachment 166104 [details] [review]
patch

This patch should fix things. One thing to note though is that there is still another bug left. The GtkPrinterOptionWidget does not reload all of the PICKONE_* types. So while the option is loaded from the file, it is not displayed correctly in the dialog.
Comment 8 Benjamin Berg 2010-07-18 11:15:51 UTC
Created attachment 166109 [details] [review]
Patch to correctly load default settings into the dialog

OK, this one is only compile tested. Can't run anything in my jhbuild env right now, everything is crashing ...
Comment 9 Benjamin Berg 2010-07-29 10:38:04 UTC
Created attachment 166764 [details] [review]
New patch

This patch correctly supports the default values. Values entered manually will be appended with Custom., others are just passed over to cups.
Comment 10 Benjamin Berg 2010-07-29 10:41:12 UTC
Hm, one thing. For numeric values, it looks like it filters the value even for values that are selected from the list. It should not be filtered if the value is selected from the combobox.
Comment 11 Marek Kašík 2010-08-18 11:22:50 UTC
Created attachment 168189 [details] [review]
add Custom. prefix to custom options + set values to PPD values

Hi,

this patch add "Custom." prefix to custom values. It does it only for CUPS backend since this is not mentioned in PPD spec.
It also set option value to the value from PPD if a PPD translation of such a value is entered by user (this handles also the case when the value is selected by the combo box).

Regards

Marek
Comment 12 Matthias Clasen 2010-08-19 13:47:41 UTC
Review of attachment 168189 [details] [review]:

::: gtk/gtkprintunixdialog.c
@@ +4138,3 @@
+
+      if (match_id != -1)
+        new_value = g_strdup_printf ("%s", option->choices[match_id]);

The strdup here appears unnecessary, since you are not modifying the string in any way. In fact, you could probably just move the gtk_print_settings_set call into the if in the loop.
Comment 13 Benjamin Berg 2010-08-22 10:36:50 UTC
Hm, OK. Some notes about the patch that seem weird to me (not saying that mine is perfect):
 1. I would say it is the job for the GtkPrinterOptionWidget to figure out that the user entered text is in the option list. Not the job of the Dialog. (ie. the assign_choices function is in the wrong place IMHO)
 2. It looks to me like your patch does not solve the problem of loading the options from a file again (which mine does, but that part of my patch should be compatible with your changes).
 3. Adding the Custom. string in add_cups_options seems good (that way it will not end up in the GtkPrintSettings)

I think I'll cook up (a) new patch(es) today based on both patches (and also provide a fix for the filtering issue mentioned earlier).
Comment 14 Benjamin Berg 2010-08-22 19:07:23 UTC
Created attachment 168512 [details]
1 - Patch to prepend Custom.

This patch is basically just the second part of Marek Kasik. Except for one change and that is that a value of zero length (value[0] == '\0') is also interpreted as a custom option.
Comment 15 Benjamin Berg 2010-08-22 19:11:35 UTC
Created attachment 168513 [details]
2 - Patch to fix up GtkPrinterOptionWidget

GtkPrinterOptionWidget fixes, to support loading values again. If an option from the list is typed in, it will return the value from the list instead of the string.

I'll attach an alternative that does not do this. It seems weird to me to select the item from the list like this, especially as it will not work for PASSCODE, INT and other fields where typing in strings is impossible
Comment 16 Benjamin Berg 2010-08-22 19:14:58 UTC
Created attachment 168514 [details]
2 - the real one, alternative one

Sorry, just attached the wrong patch earlier.
Comment 17 Benjamin Berg 2010-08-22 19:20:20 UTC
Created attachment 168515 [details] [review]
2 - the second way, which I prefere
Comment 18 Marek Kašík 2010-10-15 12:26:18 UTC
Hi Benjamin,

sorry for my late response (I didn't add me to cc, I thought that bugzilla does it automatically when I attach a patch).

I see now that it is better to not have the code in the gtkprintunixdialog.c. I would prefer the patch which you don't prefer (the alternative one) since I think that users will enter values in the field even if they are listed in the combo.
Other than that I have only two comments to the patch:

1) remove the g_print()
+           {
+             g_print ("selected manually from the list: %s, %s\n", name, val);
+              *custom = FALSE;

2) add -1 to the end of requested values in
+         gtk_tree_model_get (model, &iter, VALUE_COLUMN, &val,
+                                           NAME_COLUMN, &name);

What do you think about it Matthias?

Regards

Marek
Comment 19 Benjamin Berg 2010-10-15 23:33:23 UTC
Ah, good catch.

Yeah, lets do the match based on the string, as suggested by you (I kinda switched sides now; turns out different people seem to have quite different opinions on this). It might be even better to split it up into two separate widgets, but that is just UI tweaks.
Comment 20 Benjamin Berg 2011-07-21 14:39:52 UTC
Created attachment 192379 [details]
Patch to prepend Custom.

Updated patch to apply cleanly to GTK+ master.
Comment 21 Benjamin Berg 2011-07-21 14:41:10 UTC
Created attachment 192380 [details] [review]
neccessary updates to the UI code

Updated the patch to GTK+ 3.0. There are some small changes here because of the combobox changes.
Comment 22 Benjamin Berg 2011-12-12 11:12:44 UTC
PING

Any chance of getting these fixes reviewed so they can be committed?
Comment 23 Marek Kašík 2011-12-14 13:43:57 UTC
Hi Benjamin, I'll try to review the patch before Christmas.

Marek
Comment 24 Marek Kašík 2011-12-23 13:58:50 UTC
Hi Benjamin,

thank you for those patches. They are OK for me to commit with two modifications.

The first one is just because of styling:

+          value = g_strdup(gtk_entry_get_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo)))));                            

 - there should be break after g_strdup

The second one is that variables 'val' and 'name' in combo_box_get() should be freed if not needed anymore.

Regards

Marek
Comment 25 Benjamin Berg 2012-01-05 23:41:22 UTC
Created attachment 204713 [details]
Strip Custom. from the default value that cups passes in

I pushed both patches to master and gtk-2-24.

While doing a final test before pushing, I noticed a small issue. When a default custom value is set in cups, the GTK+ print dialog will contain "Custom.asdf" as the value, instead of just "asdf".

Here is a patch that removes the "Custom." string from the PPD before storing the default value inside GTK+. (If you prefere, I can also open a new bug about this).
Comment 26 Marek Kašík 2012-01-06 16:17:46 UTC
(In reply to comment #25)
> While doing a final test before pushing, I noticed a small issue. When a
> default custom value is set in cups, the GTK+ print dialog will contain
> "Custom.asdf" as the value, instead of just "asdf".

I don't think that this is an issue since the value is not among listed options. It is a custom option. PPD specification says:

"If a *Default keyword is part of an entry, its value must be one of the options of the main keyword in the entry, or it may be Unknown."

So the only default option which we should handle better is "Unknown".

Marek
Comment 27 Benjamin Berg 2012-01-09 16:14:15 UTC
I am not sure why this is relevant. "Custom" options are not even part of the PPD specification, but instead are an extension by Cups, so it seems logical that the PPD specification does not allow custom options to be set as the default.

One could even argue that "Custom" is one of the listed options (it is implicitly added by Cups) and by using "Custom.string" you are actually selecting the "Custom" option.

But even then; what I expect from a users point of view, is that a default value specified in Cups will be loaded by all applications.
So if I set set the "Username" option to be "benjamin" using the Cups webinterface, I expect this to be loaded into the GTK+ print dialog. And right now it is loading "Custom.benjamin" as the custom value, and then sending "Custom.Custom.benjamin" back to cups.

Benjamin
Comment 28 Marek Kašík 2012-01-17 15:13:20 UTC
OK, I see what I did wrong before. I added the default custom option directly to the PPD file without the "Custom." prefix. When I'm adding it through the web interface it adds the prefix and the patch is a need.
The only remark I have is a stylistic one. Could you add spaces around the '+' in "ppd_option->defchoice+7" ? After that it is ok with me to commit it.

Thank you

Marek
Comment 29 Benjamin Berg 2012-01-17 19:38:48 UTC
Ah :-)

Thanks a lot for the quick review! I added the whitespace, and pushed to both master and gtk-2-24.

So, I think it is save now to resolve this bug as fixed,

Benjamin
Comment 30 Jan Alexander Steffens (heftig) 2012-01-26 18:52:15 UTC
This crashes Firefox when printing. Backtrace:

  • #0 ppdFindChoice
    from /usr/lib/libcups.so.2
  • #1 create_page_setup
    at gtkprintbackendcups.c line 4543
  • #2 cups_printer_get_default_page_size
    at gtkprintbackendcups.c line 4611
  • #3 IA__gtk_printer_get_default_page_size
    at gtkprinter.c line 975
  • #4 gtk_print_backend_cups_print_stream
    at gtkprintbackendcups.c line 551
  • #5 IA__gtk_print_backend_print_stream
    at gtkprintbackend.c line 662
  • #6 IA__gtk_print_job_send
    at gtkprintjob.c line 683

Reverting the commit (8170436e61ea68c713d75ad374d22c3261be9203) lets me print again.
Comment 31 Marek Kašík 2012-01-27 10:38:17 UTC
Hi Jan,

thank you for the backtrace. Could you attach here the PPD you use for the printer?

Regards

Marek
Comment 32 Jan Alexander Steffens (heftig) 2012-01-27 15:26:21 UTC
Created attachment 206270 [details]
PPD for crash

It's a remote printer. Here's the PPD that cups server uses.
Comment 33 Matthias Drochner 2012-01-27 16:53:24 UTC
I'm seeing the crash too, backtrace looks similar. As an additional
data point: cups with debug enabled prints out

16:28:41.971 ppdPageSize(ppd=0xb20d5e20, name="Custom 612.00x792.00")
16:28:41.971 ppdPageSize: Size not found, returning NULL

just before the crash.
Comment 34 Dieter Rethmeyer 2012-01-27 19:32:01 UTC
Created attachment 206297 [details]
backtrace crash thunderbird print with gtk2-2.24.9
Comment 35 Dieter Rethmeyer 2012-01-27 19:32:50 UTC
crash printing in thunderbird. Firefox prints ok.
Comment 36 Dieter Rethmeyer 2012-01-27 19:36:55 UTC
Created attachment 206298 [details]
ppd used for printing, Canon iP4300 with turboprint

if helpful, I attach my ppd here.
Comment 37 Dieter Rethmeyer 2012-01-27 19:41:32 UTC
Crash occured in Arch linux where gtk2-2.24.9 is actual repository version.

See https://bugs.archlinux.org/task/28118#comment88469
Comment 38 Gilles Hamel 2012-01-28 14:21:05 UTC
downgrading package gtk2 in Arch linux (2.24.9-1 => 2.24.8-1) fixes this issue.
Comment 39 Benjamin Berg 2012-01-28 15:38:49 UTC
Uh, outch. I remember seeing this bug at some point, and figuring out that the trouble was somewhere between mozilla, gtk and libcups. IIRC the problem is that Firefox tries to use custom page sizes, even though the PPD does not support this. GTK+ passes the request on to cups, which then crashes.

I hadn't thought, that this problem only exists with the patches applied; and I have no good idea how to fix this right now.
Comment 40 Ionut Biru 2012-01-28 16:07:51 UTC
(In reply to comment #39)
> Uh, outch. I remember seeing this bug at some point, and figuring out that the
> trouble was somewhere between mozilla, gtk and libcups. IIRC the problem is
> that Firefox tries to use custom page sizes, even though the PPD does not
> support this. GTK+ passes the request on to cups, which then crashes.
> 
> I hadn't thought, that this problem only exists with the patches applied; and I
> have no good idea how to fix this right now.


as I'm the current gtk+ maintainer in Arch, I'll revert this change until a proper fix is committed.
Comment 41 Benjamin Berg 2012-01-28 16:45:06 UTC
I understand if you pull the patch from the distro again; that seems sane.

So, I do think that the patches applied in this bug are correct. Of course, we uncovered a pretty bad problem in mozilla, however I am not convinced that this is even a GTK+ bug. If a printer does not support arbitrary page sizes, then setting one, as done by firefox, is not a valid operation. Of course, GTK+ could at least guard against the crash in libcups.
Comment 42 Jan Alexander Steffens (heftig) 2012-01-29 19:23:58 UTC
Inkscape crashes as well:

  • #0 ppdFindChoice
    from /usr/lib/libcups.so.2
  • #1 create_page_setup
    at gtkprintbackendcups.c line 4543
  • #2 cups_printer_get_default_page_size
    at gtkprintbackendcups.c line 4611
  • #3 IA__gtk_printer_get_default_page_size
    at gtkprinter.c line 975
  • #4 gtk_print_backend_cups_print_stream
    at gtkprintbackendcups.c line 551
  • #5 IA__gtk_print_backend_print_stream
    at gtkprintbackend.c line 662
  • #6 IA__gtk_print_job_send
    at gtkprintjob.c line 683
  • #7 unix_end_run
    at gtkprintoperation-unix.c line 395
  • #8 print_pages_idle
    at gtkprintoperation.c line 2816
  • #9 gdk_threads_dispatch
    at gdk.c line 512
  • #10 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #11 ??
    from /usr/lib/libglib-2.0.so.0
  • #12 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #13 print_pages
    at gtkprintoperation.c line 2958
  • #14 IA__gtk_print_operation_run
    at gtkprintoperation.c line 3132
  • #15 Inkscape::UI::Dialog::Print::run(Gtk::PrintOperationAction, Gtk::Window&)
  • #16 sp_print_document(Gtk::Window&, SPDocument*)
  • #17 sp_action_perform(SPAction*, void*)
  • #18 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #19 ??
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #22 IA__gtk_widget_activate
    at gtkwidget.c line 5015
  • #23 IA__gtk_menu_shell_activate_item
    at gtkmenushell.c line 1256
  • #24 gtk_menu_shell_button_release
    at gtkmenushell.c line 683
  • #25 gtk_menu_button_release
    at gtkmenu.c line 3043
  • #26 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 86
  • #27 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #28 ??
    from /usr/lib/libgobject-2.0.so.0
  • #29 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #30 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #31 gtk_widget_event_internal
    at gtkwidget.c line 4984
  • #32 IA__gtk_widget_event
    at gtkwidget.c line 4781
  • #33 IA__gtk_propagate_event
    at gtkmain.c line 2489
  • #34 IA__gtk_main_do_event
    at gtkmain.c line 1684
  • #35 gdk_event_dispatch
    at gdkevents-x11.c line 2377
  • #36 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #37 ??
    from /usr/lib/libglib-2.0.so.0
  • #38 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #39 IA__gtk_main
    at gtkmain.c line 1256
  • #40 sp_main_gui(int, char const**)
  • #41 main

Comment 43 Marek Kašík 2012-01-30 16:24:09 UTC
Created attachment 206452 [details] [review]
patch fixing the crash

Hi,

I'm able to reproduce the problem now. Here is a preliminary patch. I'll continue on it tomorrow. I need to check one more thing still.

Regards

Marek
Comment 44 Marek Kašík 2012-01-31 11:18:35 UTC
I've committed a patch fixing the crash to 2-24 and master.
Thank you all for your help.

Regards

Marek
Comment 45 Anselm Kruis 2012-03-15 18:32:04 UTC
(In reply to comment #44)
> I've committed a patch fixing the crash to 2-24 and master.
> Thank you all for your help.

I'm sorry to report this, but the patch breaks building if you don't have cups API 1.2. See below for the output of gcc. 
Every other usage of the 1.2 API is guarded with 
#ifdef HAVE_CUPS_API_1_2  ... #endif


Here is the error message:

gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../gtk -I../../../gtk -I../../../gdk -I../../../gdk -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -DG_ENABLE_DEBUG -DG_ERRORCHECK_MUTEXES -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -I/usr/X11R6/include -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -g -pipe -m64 -Wall -MT gtkprintbackendcups.lo -MD -MP -MF .deps/gtkprintbackendcups.Tpo -c gtkprintbackendcups.c  -fPIC -DPIC -o .libs/gtkprintbackendcups.o
gtkprintbackendcups.c: In function `add_cups_options':
gtkprintbackendcups.c:516: error: `ppd_coption_t' undeclared (first use in this function)
gtkprintbackendcups.c:516: error: (Each undeclared identifier is reported only once
gtkprintbackendcups.c:516: error: for each function it appears in.)
gtkprintbackendcups.c:516: error: `coption' undeclared (first use in this function)
gtkprintbackendcups.c:520: warning: implicit declaration of function `ppdFindCustomOption'
Comment 46 Anselm Kruis 2012-03-15 19:39:45 UTC
(In reply to comment #45)

I opened bug #672182 for this.