From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 20 18:50:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2B503A96 for ; Fri, 20 Dec 2013 18:50:03 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F32EB1FAC for ; Fri, 20 Dec 2013 18:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id rBKIo2WC015437 for ; Fri, 20 Dec 2013 18:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id rBKIo2iK015436; Fri, 20 Dec 2013 18:50:02 GMT (envelope-from gnats) Resent-Date: Fri, 20 Dec 2013 18:50:02 GMT Resent-Message-Id: <201312201850.rBKIo2iK015436@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, Christoph Moench-Tegeder Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F4B03A4 for ; Fri, 20 Dec 2013 18:40:54 +0000 (UTC) Received: from smtp.burggraben.net (base.exwg.net [IPv6:2a01:4f8:140:50a2::2]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D10C51F1F for ; Fri, 20 Dec 2013 18:40:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.burggraben.net (Postfix) with ESMTP id C9CEB600089 for ; Fri, 20 Dec 2013 19:40:51 +0100 (CET) Received: from smtp.burggraben.net ([127.0.0.1]) by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qvkiuw3wqRpS for ; Fri, 20 Dec 2013 19:40:51 +0100 (CET) Received: from squirrel.exwg.net (dslb-088-066-048-235.pools.arcor-ip.net [88.66.48.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "squirrel.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS for ; Fri, 20 Dec 2013 19:40:51 +0100 (CET) Received: by squirrel.exwg.net (Postfix, from userid 1000) id 9233961F87; Fri, 20 Dec 2013 19:40:50 +0100 (CET) Message-Id: <20131220184050.9233961F87@squirrel.exwg.net> Date: Fri, 20 Dec 2013 19:40:50 +0100 (CET) From: Christoph Moench-Tegeder To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/185042: graphics/libecwj2 : fails to build with recent compilers X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Christoph Moench-Tegeder List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 18:50:03 -0000 >Number: 185042 >Category: ports >Synopsis: graphics/libecwj2 : fails to build with recent compilers >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 20 18:50:02 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Christoph Moench-Tegeder >Release: FreeBSD 10.0-RC2 amd64 >Organization: >Environment: System: FreeBSD squirrel.exwg.net 10.0-RC2 FreeBSD 10.0-RC2 #0 r259645: Fri Dec 20 15:19:27 CET 2013 cmt@squirrel.exwg.net:/usr/obj/usr/src/sys/T520 amd64 graphics/libecwj2 libecwj2-3.3_1 cmt@squirrel:~$ cc --version FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610 Target: x86_64-unknown-freebsd10.0 Thread model: posix also verified on 9.2-RELEASE with gcc 4.7: FreeBSD build.exwg.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 lang/gcc47 gcc47-4.7.4.20131214 >Description: type make... the build fails with (gcc47 error message, clang fails with the same reason): ../C/NCSnet/NCScnet3/NCSProxy.cpp: In member function 'char* CNCSProxy::GetCurrentUserName()': ../C/NCSnet/NCScnet3/NCSProxy.cpp:644:28: error: 'getlogin' was not declared in this scope >How-To-Repeat: >Fix: NCSProxy.cpp needs to include unistd.h. Drop the following as graphics/libecwj2/files/patch-Source-C-NCSnet-NCScnet3-NCSProxy.h : --- Source/C/NCSnet/NCScnet3/NCSProxy.h.orig 2013-12-20 19:22:52.000000000 +0100 +++ Source/C/NCSnet/NCScnet3/NCSProxy.h 2013-12-20 19:23:26.000000000 +0100 @@ -35,6 +35,7 @@ //#include #include #include +#include #include #include #include Regards, Christoph >Release-Note: >Audit-Trail: >Unformatted: