Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2012 11:09:59 GMT
From:      Miklos Magyari <magyarimiki@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/172205: games/ceferino fails to build using clang
Message-ID:  <201210011109.q91B9xWO069873@red.freebsd.org>
Resent-Message-ID: <201210011120.q91BK1qG037665@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172205
>Category:       ports
>Synopsis:       games/ceferino fails to build using clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 11:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Miklos Magyari
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD mira 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
games/ceferino fails to build using clang:

[...snip...]

In file included from barra.cc:30:
In file included from ./procesos.h:30:
In file included from ./pelota.h:29:
In file included from ./juego.h:31:
./nivel.h:37:50: error: must use 'class' tag to refer to type 'grafico' in this scope
                void iniciar(juego *_pjuego, grafico *grafico, grafico *pfondos, SDL_Surface *fondo);
                                                               ^
                                                               class
1 error generated.
gmake[2]: *** [barra.o] Error 1
gmake[2]: Leaving directory `/usr/ports/games/ceferino/work/ceferino-0.97.8/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/games/ceferino/work/ceferino-0.97.8'
gmake: *** [all] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/games/ceferino.
*** [build] Error code 1

Stop in /usr/ports/games/ceferino.
>How-To-Repeat:
# cd /usr/ports/games/ceferino
# make
>Fix:
A patch is needed to src/nivel.h

So a "files/" directory should be added for the port, with the following file inside the directory:

# cat files/patch-src::nivel.h
--- src/nivel.h.orig    2012-10-01 12:59:22.000000000 +0200
+++ src/nivel.h 2012-10-01 12:59:36.000000000 +0200
@@ -34,7 +34,7 @@
 class nivel
 {
        public:
-               void iniciar(juego *_pjuego, grafico *grafico, grafico *pfondos, SDL_Surface *fondo);
+               void iniciar(juego *_pjuego, grafico *grafico, class grafico *pfondos, SDL_Surface *fondo);
                int avanzar_nivel(int salto = 1);
                int reiniciar_nivel(void);
                int get_dist_suelo(int x, int y, int max);

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210011109.q91B9xWO069873>