From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 1 11:20:01 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C98D71065676 for ; Mon, 1 Oct 2012 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F2318FC1A for ; Mon, 1 Oct 2012 11:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q91BK1BR037666 for ; Mon, 1 Oct 2012 11:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q91BK1qG037665; Mon, 1 Oct 2012 11:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 1 Oct 2012 11:20:01 GMT Resent-Message-Id: <201210011120.q91BK1qG037665@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Miklos Magyari Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3202510656EC for ; Mon, 1 Oct 2012 11:10:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 1CB798FC14 for ; Mon, 1 Oct 2012 11:10:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q91B9x6W069874 for ; Mon, 1 Oct 2012 11:09:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q91B9xWO069873; Mon, 1 Oct 2012 11:09:59 GMT (envelope-from nobody) Message-Id: <201210011109.q91B9xWO069873@red.freebsd.org> Date: Mon, 1 Oct 2012 11:09:59 GMT From: Miklos Magyari To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/172205: games/ceferino fails to build using clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2012 11:20:02 -0000 >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: