Date: Sun, 9 Dec 2012 11:20:16 GMT From: Rene Ladan <rene@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/174294: editors/hte does not build with clang Message-ID: <201212091120.qB9BKG5O025892@red.freebsd.org> Resent-Message-ID: <201212091130.qB9BU0a5082907@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 174294 >Category: ports >Synopsis: editors/hte does not build with 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: Sun Dec 09 11:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Rene Ladan >Release: FreeBSD 10.0/amd64 >Organization: >Environment: FreeBSD acer 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r243869: Wed Dec 5 10:30:44 CET 2012 rene@acer:/usr/obj/usr/src/sys/GENERIC amd64 >Description: editors/hte does not build with clang as cc; cc -DHAVE_CONFIG_H -I. -I./analyser -I./asm -I./info -I./io/posix -I./io -I./output -I./eval -I. -I/usr/local/include -O2 -pipe -march=core2 c++ -DHAVE_CONFIG_H -I. -I./analyser -I./asm -I./info -I./io/posix -I./io -I./output -I./eval -I. -I/usr/local/include -O2 -pipe -march=core mv -f .deps/htdoc.Tpo .deps/htdoc.Po c++ -DHAVE_CONFIG_H -I. -I./analyser -I./asm -I./info -I./io/posix -I./io -I./output -I./eval -I. -I/usr/local/include -O2 -pipe -march=core htapp.cc:768:10: warning: cast to 'void *' from smaller integer type 'uint' (aka 'unsigned int') [-Wint-to-pointer-cast] return (void*)(project->count()); ^ htapp.cc:1880:9: error: redefinition of 'emfile' File *emfile = new LocalFile(f, IOAM_READ, FOM_EXISTS); ^ htapp.cc:1876:8: note: previous definition is here File *emfile = NULL; ^ 1 warning and 1 error generated. gmake[1]: *** [htapp.o] Error 1 >How-To-Repeat: on a recent CURRENT: % cd /usr/ports/editors/hte % make >Fix: Patch attached with submission follows: Index: files/patch-htapp.cc =================================================================== --- files/patch-htapp.cc (revision 0) +++ files/patch-htapp.cc (working copy) @@ -0,0 +1,11 @@ +--- htapp.cc.orig 2009-08-27 16:31:35.000000000 +0200 ++++ htapp.cc 2012-12-09 12:16:23.000000000 +0100 +@@ -1877,7 +1877,7 @@ + ht_ltextfile *tfile = NULL; + FileLayer *file = NULL; + try { +- File *emfile = new LocalFile(f, IOAM_READ, FOM_EXISTS); ++ emfile = new LocalFile(f, IOAM_READ, FOM_EXISTS); + + if (!doFileChecks(emfile)) { + delete emfile; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212091120.qB9BKG5O025892>