[Supertux-Devel] build failure, Slackware 12.1 x86, gcc 4.2.3

Ryan rflegel at gmail.com
Tue Feb 10 06:42:43 PST 2009


On line 210 of menu.h remove the "Menu::" part from the function declaration.
ie, change this:

 void Menu::get_controlfield_key_into_input(MenuItem *item);

to this:

 void get_controlfield_key_into_input(MenuItem *item);

Do that and then try to build it.

--
Ryan

2009/2/8 Claudio Fontana <claudio.fontana at gmail.com>:
> Hello,
>
> I could not successfully compile the latest stable package
> supertux-0.1.3.
>
> In file included from globals.h:28,
>                 from badguy.cpp:26:
> menu.h:210: error: extra qualification 'Menu::' on member
> 'get_controlfield_key_into_input'
>          -c -o badguy.o `test -f 'badguy.cpp' || echo './'`badguy.cpp;
>
> I attach the full console log.

[snip]

> $ /usr/bin/gmake -f Makefile
> Making all in src
> gmake[1]: Entering directory
> `/home/claudio/.sourceinstall/build/supertux-0.1.3/src'
> if g++ -DPACKAGE_NAME=\"SuperTux\" -DPACKAGE_TARNAME=\"supertux\"
> -DPACKAGE_VERSION=\"0.1.3\" -DPACKAGE_STRING=\"SuperTux\ 0.1.3\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"supertux\" -DVERSION=\"0.1.3\"
> -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_LIBSDL_MIXER=1 -DHAVE_LIBSDL_IMAGE=1 -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1
> -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1  -I. -I.     -g -O2
> -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
>  -DDATA_PREFIX='"/usr/local/share/supertux"' -MT badguy.o -MD -MP -MF
> ".deps/badguy.Tpo" \
> In file included from globals.h:28,
>                 from badguy.cpp:26:
> menu.h:210: error: extra qualification 'Menu::' on member
> 'get_controlfield_key_into_input'
>          -c -o badguy.o `test -f 'badguy.cpp' || echo './'`badguy.cpp; \
> gmake[1]: *** [badguy.o] Error 1
>        then mv -f ".deps/badguy.Tpo" ".deps/badguy.Po"; \
> gmake: *** [all-recursive] Error 1
>        else rm -f ".deps/badguy.Tpo"; exit 1; \
>        fi
> gmake[1]: Leaving directory
> `/home/claudio/.sourceinstall/build/supertux-0.1.3/src'
> $ /usr/bin/rm -fr /home/claudio/.sourceinstall/build
> $ /usr/bin/rm -fr /home/claudio/.sourceinstall/install-destdir


More information about the Supertux-Devel mailing list