Re: Figuring out wrapping errors



On Thu, 2006-04-06 at 03:08 +0200, Marko Anastasov wrote:
> Hi guys,
> 
> Please be patient, I've just started doing this.
> 
> If I get an error like this:
> 
> ---
> $ ~/prefix/lib/glibmm-2.4/proc/./gmmproc --unwrapped
> recentfilter . ../gtkmm
> Use of uninitialized value in concatenation (.) or string
> at /home/marko/prefix/lib/glibmm-2.4/proc/pm/Enum.pm line 69.
> --> GtkDefs.pm: Unhandled enum def ( "") (c-name "") ) in ::(in-module

Have you added something to the *_enums.defs file? Maybe it is badly
formed, or somehow strange.

> Use of uninitialized value in hash element

I see this sometimes when I forget a bracket or quote somewhere in
the .hg file. Try to comment lines out until you see what triggers the
error.

> at /home/marko/prefix/lib/glibmm-2.4/proc/pm/GtkDefs.pm line 196.
> --> No conversion from GtkRecentFilterFlags to RecentFilterFlags defined
> (line: , parameter name:
> gtk_recent_filter_get_needed`'(ifelse(`1',1,const_cast<__CNAME__*>(gobj()),gobj())`'ifelse(`',,,`, ')))
> m4 failed with exit code 1.  Aborting...
> ---
> 
> where do I look to fix this? What does 'no conversion...' actually
> mean,

It means that gmmproc tried to find a way to convert a
GtkRecentFilterFlags to a RecentFilterFlags. The _CONVERSION() macros in
tools/m4/convert_gtk.m4 tell it how to do this. You need to add one. Or
in this case, I think there is a special macro there fore enums.

>  is it like it's not wrapped or something more seriously is wrong
> and the error's in the would-be-generated code?
> The defs file is ok:
> 
> ---
> $ grep -iHns 'recentfilter' gtk_enums.defs
> gtk_enums.defs:1020:;; From /home/marko/cvs/gnome2/gtk
> +/gtk/gtkrecentfilter.h
> gtk_enums.defs:1022:(define-flags-extended RecentFilterFlags
> gtk_enums.defs:1024:  (c-name "GtkRecentFilterFlags")
> ---
> 
> I tried setting GTKMMPROC_DEBUG but I couldn't find the m4 files
> in /tmp. This gtk_recent_filter_get_needed is trivial, and practically
> the same as in filefilter.* .

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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