#16 Fix build with gcc47

closed-fixed
None
5
2013-01-17
2013-01-05
kwizart
No

Current lcdproc-0.5.6 doesn't build cleanly with gcc-4.7.
Please consider adding this simple patch

Discussion

  • kwizart

    kwizart - 2013-01-05

    Fix build with gcc47

     
  • Markus Dolze

    Markus Dolze - 2013-01-17

    Can you give an example output of the failing build?

    The rendering headers are quite complex to use and all includes have been carefully been selected. Throwing in a 'menuscreens.h' may not be the right solution.

     
  • kwizart

    kwizart - 2013-01-17

    Here is the exact error occuring:
    menuitem.c: In function 'menuitem_search':
    menuitem.c:130:18: error: 'main_menu' undeclared (first use in this function)
    menuitem.c:130:18: note: each undeclared identifier is reported only once for each function it appears in
    gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../shared -DSYSCONFDIR=\"/etc/lcdproc\" -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-unused-function -c menuscreens.c
    make[3]: *** [menuitem.o] Error 1

     
  • Markus Dolze

    Markus Dolze - 2013-01-17
    • assigned_to: nobody --> mmdolze
     
  • Markus Dolze

    Markus Dolze - 2013-01-17
    • status: open --> closed-fixed
     
  • Markus Dolze

    Markus Dolze - 2013-01-17

    Fixed in CVS. Compiling with --enable-permissive-menu-goto did not work due to a missing reference to the main menu.

     

Log in to post a comment.