bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PSPP-BUG: Problem when compiling pspp-master 20090228 on Cygwin


From: unknown-1
Subject: Re: PSPP-BUG: Problem when compiling pspp-master 20090228 on Cygwin
Date: Wed, 4 Mar 2009 22:23:17 +0100

HI

I changed ov by hand in ow and now get this error:

========
tests/.libs/lt-dissect-sysfile.c: In function `main':
tests/.libs/lt-dissect-sysfile.c:285: warning: implicit declaration of
function `_setmode'
gtk-builder-convert src/ui/gui/crosstabs.glade src/ui/gui/crosstabs.ui
Wrote src/ui/gui/crosstabs.ui
gtk-builder-convert src/ui/gui/descriptives-dialog.glade
src/ui/gui/descriptives-dialog.ui
Wrote src/ui/gui/descriptives-dialog.ui
gtk-builder-convert src/ui/gui/data-editor.glade src/ui/gui/data-editor.ui
Traceback (most recent call last):
  File "/usr/bin/gtk-builder-convert", line 745, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/gtk-builder-convert", line 733, in main
    conv.parse_file(input_filename)
  File "/usr/bin/gtk-builder-convert", line 161, in parse_file
    self._parse()
  File "/usr/bin/gtk-builder-convert", line 259, in _parse
    self._convert(node.getAttribute("class"), node)
  File "/usr/bin/gtk-builder-convert", line 284, in _convert
    self._convert_menu(node)
  File "/usr/bin/gtk-builder-convert", line 342, in _convert_menu
    item = self._convert_menuitem(uimgr, obj_node)
  File "/usr/bin/gtk-builder-convert", line 378, in _convert_menuitem
    item = self._convert_menuitem(uimgr, obj_node)
  File "/usr/bin/gtk-builder-convert", line 374, in _convert_menuitem
    self._add_action_from_menuitem(uimgr, obj_node)
  File "/usr/bin/gtk-builder-convert", line 425, in _add_action_from_menuitem
    properties['stock_id'] = child
UnboundLocalError: local variable 'child' referenced before assignment
make[2]: *** [src/ui/gui/data-editor.ui] Error 1
make[2]: Leaving directory `/home/beheerder/Bureaublad/pspp-master-20090304'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/beheerder/Bureaublad/pspp-master-20090304'
make: *** [all] Error 2
==========
in the master-2009-0304 version.

Have fun

2009/3/1 Michel Boaventura <address@hidden>:
> Hello,
>
> I guess the "ov" entries should be "ow". But it only is used on cygwin
> and that's why it works on both linux and mingw.
> Can you try the patch above?
>
> diff --git a/src/ui/gui/psppire-output-window.c
> b/src/ui/gui/psppire-output-window.c
> index 986742d..306fa66 100644
> --- a/src/ui/gui/psppire-output-window.c
> +++ b/src/ui/gui/psppire-output-window.c
> @@ -325,16 +325,16 @@ reload_viewer (PsppireOutputWindow *ow)
>       }
>
>     /* Delete all the entire buffer */
> -    gtk_text_buffer_get_start_iter (ov->buffer, &start_iter);
> -    gtk_text_buffer_delete (ov->buffer, &start_iter, &end_iter);
> +    gtk_text_buffer_get_start_iter (ow->buffer, &start_iter);
> +    gtk_text_buffer_delete (ow->buffer, &start_iter, &end_iter);
>
>
> -    gtk_text_buffer_get_start_iter (ov->buffer, &start_iter);
> +    gtk_text_buffer_get_start_iter (ow->buffer, &start_iter);
>     /* Read in the next lot of text */
>     while (fgets (line, viewer_width + 1, fp) != NULL)
>       {
>  chars_inserted = TRUE;
> - gtk_text_buffer_insert (ov->buffer, &start_iter, line, -1);
> + gtk_text_buffer_insert (ow->buffer, &start_iter, line, -1);
>       }
>
>     fclose (fp);
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]