[Home]

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
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
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
âgtk_tree_view_set_enable_tree_linesâ
menuselect_gtk.c:312: warning: implicit declaration of function
âgtk_tree_view_set_grid_linesâ
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
`/usr/src/asterisk/rc/asterisk-1.6.0-rc6/menuselect'
make: *** [menuselect/gmenuselect] Error 2

****** ADDITIONAL INFORMATION ******

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

Zhadnost,

Could you execute the following command and report the results?

 # pkg-config gtk+-2.0 --modversion

Thanks

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

Thanks for the quick response.

2.8.20

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
Patches:
     13472.diff uploaded by seanbright (license 71)
Tested by: Zhadnost

------------------------------------------------------------------------

http://svn.digium.com/view/menuselect?view=rev&revision=383

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.