[Bug 144946] New: - gnometris & balckjack "-Wmissing-prototypes" is valid for C/ObjC but not for C++ fails compile



http://bugzilla.gnome.org/show_bug.cgi?id=144946
gnome-games | same-gnome | Ver: unspecified

           Summary: gnometris & balckjack "-Wmissing-prototypes" is valid
                    for C/ObjC but not for C++ fails compile
           Product: gnome-games
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Immediate
         Component: same-gnome
        AssignedTo: gnome-games-maint bugzilla gnome org
        ReportedBy: svdmade planet nl
         QAContact: gnome-games-qa-maint bugzilla gnome org
                CC: garnome-list gnome org,svdmade planet nl


during the compile of gnometris I get these errors:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -Werror -DORBIT2=1 -pthread
-I/usr/test/garnome3/include/libglade-2.0 -I/usr/test/garnome3/include/gtk-2.0
-I/usr/test/garnome3/include/libxml2 -I/usr/test/garnome3/lib/gtk-2.0/include
-I/usr/local/include -I/usr/X11R6/include -I/usr/test/garnome3/include/atk-1.0
-I/usr/test/garnome3/include/pango-1.0 -I/usr/local/include/freetype2
-I/usr/test/garnome3/include/glib-2.0 -I/usr/test/garnome3/lib/glib-2.0/include
-I/usr/test/garnome3/include/libgnome-2.0 -I/usr/test/garnome3/include/orbit-2.0
-I/usr/test/garnome3/include/libbonobo-2.0 -I/usr/test/garnome3/include/gconf/2
-I/usr/test/garnome3/include/gnome-vfs-2.0
-I/usr/test/garnome3/lib/gnome-vfs-2.0/include
-I/usr/test/garnome3/include/bonobo-activation-2.0
-I/usr/test/garnome3/include/libgnomeui-2.0
-I/usr/test/garnome3/include/libgnomecanvas-2.0
-I/usr/test/garnome3/include/libart-2.0
-I/usr/test/garnome3/include/libbonoboui-2.0
-I/usr/test/garnome3/include/gnome-vfs-module-2.0
-I/usr/test/garnome3/include/librsvg-2   -I../libgames-support -Wall
-Wmissing-prototypes  -I../libgames-support
-DDATADIR=\""/usr/test/garnome3/share"\"
-DGNOMELOCALEDIR=\""/usr/test/garnome3/share/locale"\" 
-I/usr/test/garnome3/include -I/usr/X11R6/include  -g
-I/usr/test/garnome3/include -I/usr/X11R6/include -L/usr/test/garnome3/lib
-L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387
-march=athlon-tbird -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC
but not for C++
make[5]: *** [main.o] Error 1
make[5]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3/gnometris'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3/gnometris'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3'
make[1]: *** [build-work/main.d/gnome-games-2.7.3/Makefile] Error 2
make[1]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games'
make: *** [paranoid-install] Error 

and blackjack

make[5]: Entering directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3/blackjack/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libgames-support
-DDATADIR=\""/usr/test/garnome3/share"\" -Werror -DORBIT2=1 -pthread
-I/usr/test/garnome3/include/libglade-2.0 -I/usr/test/garnome3/include/gtk-2.0
-I/usr/test/garnome3/include/libxml2 -I/usr/test/garnome3/lib/gtk-2.0/include
-I/usr/local/include -I/usr/X11R6/include -I/usr/test/garnome3/include/atk-1.0
-I/usr/test/garnome3/include/pango-1.0 -I/usr/local/include/freetype2
-I/usr/test/garnome3/include/glib-2.0 -I/usr/test/garnome3/lib/glib-2.0/include
-I/usr/test/garnome3/include/libgnome-2.0 -I/usr/test/garnome3/include/orbit-2.0
-I/usr/test/garnome3/include/libbonobo-2.0 -I/usr/test/garnome3/include/gconf/2
-I/usr/test/garnome3/include/gnome-vfs-2.0
-I/usr/test/garnome3/lib/gnome-vfs-2.0/include
-I/usr/test/garnome3/include/bonobo-activation-2.0
-I/usr/test/garnome3/include/libgnomeui-2.0
-I/usr/test/garnome3/include/libgnomecanvas-2.0
-I/usr/test/garnome3/include/libart-2.0
-I/usr/test/garnome3/include/libbonoboui-2.0
-I/usr/test/garnome3/include/gnome-vfs-module-2.0
-I/usr/test/garnome3/include/librsvg-2   -I../../libgames-support -Wall
-Wmissing-prototypes  -DGNOMELOCALEDIR=\""/usr/test/garnome3/share/locale"\" 
-I/usr/test/garnome3/include -I/usr/X11R6/include  -g
-I/usr/test/garnome3/include -I/usr/X11R6/include -L/usr/test/garnome3/lib
-L/usr/X11R6/lib -O2 -pipe -falign-functions=4 -mfancy-math-387
-march=athlon-tbird -MT strategy.o -MD -MP -MF ".deps/strategy.Tpo" \
  -c -o strategy.o `test -f 'strategy.cpp' || echo './'`strategy.cpp; \
then mv -f ".deps/strategy.Tpo" ".deps/strategy.Po"; \
else rm -f ".deps/strategy.Tpo"; exit 1; \
fi
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC
but not for C++
make[5]: *** [strategy.o] Error 1
make[5]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3/blackjack/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3/blackjack'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games/work/main.d/gnome-games-2.7.3'
make[1]: *** [build-work/main.d/gnome-games-2.7.3/Makefile] Error 2
make[1]: Leaving directory
`/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/desktop/gnome-games'
make: *** [paranoid-install] Error 2

I'm using gcc-3.4.0,glibc-2.3.2,kernel-2.6.7,garnome 2.7 patch level 8

removing the -Wmissing-prototypes from the gnometris Makefile in the root folder
solved the compile for gnometris

on blackjack on the Makefile in blackjack/src removing -Wmissing-prototypes
solved the compiler issue

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



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