Summary:ASTERISK-12722: Make Menuselect fails
Reporter:Thomas Kenyon (zhadnost)Labels:
Date Opened:2008-09-12 07:07:33Date Closed:2008-09-12 09:48:11
Versions:Frequency of
Environment:Attachments:( 0) 13472.diff
( 1) config.log
( 2) menuselect_config.log
Description:When I try to make menuseletc I get the following error.

This is using gcc 4.1, libgtk 2.0 (with header files), on an intel Core2Duo machine running an up to date Debian etch.

Asterisk builds okay (not tried running it yet)

menuselect_gtk.c: In function ârun_menuâ:
menuselect_gtk.c:311: warning: implicit declaration of function
menuselect_gtk.c:312: warning: implicit declaration of function
menuselect_gtk.c:312: error: âGTK_TREE_VIEW_GRID_LINES_BOTHâ undeclared
(first use in this function)
menuselect_gtk.c:312: error: (Each undeclared identifier is reported
only once
menuselect_gtk.c:312: error: for each function it appears in.)
make[1]: *** [menuselect_gtk.o] Error 1
make[1]: Leaving directory
make: *** [menuselect/gmenuselect] Error 2


This was working in Beta9.
Comments:By: snuffy (snuffy) 2008-09-12 07:29:23

Are you sure you were using the gtk version of menuselect?
can you try 'make cmenuselect'

By: Thomas Kenyon (zhadnost) 2008-09-12 07:37:44

make cmenuselect works fine.

By: Sean Bright (seanbright) 2008-09-12 07:42:06

I'll take this one

By: Sean Bright (seanbright) 2008-09-12 07:49:02


Could you execute the following command and report the results?

 # pkg-config gtk+-2.0 --modversion


By: Thomas Kenyon (zhadnost) 2008-09-12 07:50:23

Thanks for the quick response.


By: Sean Bright (seanbright) 2008-09-12 08:00:11

Could you try applying the attached patch?

# cd /path/to/asterisk
# cd menuselect
# cat 13472.diff | patch -p0
# cd ..
# make clean
# make menuselect

And let me know if that works for you?

By: Thomas Kenyon (zhadnost) 2008-09-12 09:18:34

It's working perfectly, thanks.

By: Digium Subversion (svnbot) 2008-09-12 09:43:49

Repository: menuselect
Revision: 383

U   branches/1.0/menuselect_gtk.c

r383 | seanbright | 2008-09-12 09:43:48 -0500 (Fri, 12 Sep 2008) | 9 lines

Make sure that the user has a recent enough version of GTK2 that we can
use the GtkTreeView line settings.

(closes issue ASTERISK-12722)
Reported by: Zhadnost
     13472.diff uploaded by seanbright (license 71)
Tested by: Zhadnost



By: Sean Bright (seanbright) 2008-09-12 09:48:11

Committed.  Thanks for your report.  The next 1.6.0 RC or release will contain the fix.