From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 30 07:40:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A6ACF7C4 for ; Tue, 30 Apr 2013 07:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 745D7109D for ; Tue, 30 Apr 2013 07:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3U7e0fg075595 for ; Tue, 30 Apr 2013 07:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3U7e0gF075594; Tue, 30 Apr 2013 07:40:00 GMT (envelope-from gnats) Resent-Date: Tue, 30 Apr 2013 07:40:00 GMT Resent-Message-Id: <201304300740.r3U7e0gF075594@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, Chad Slater Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 748EB764 for ; Tue, 30 Apr 2013 07:37:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [69.147.83.34]) by mx1.freebsd.org (Postfix) with ESMTP id 65153108B for ; Tue, 30 Apr 2013 07:37:37 +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 r3U7baOk075412 for ; Tue, 30 Apr 2013 07:37:36 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3U7baT8075411; Tue, 30 Apr 2013 07:37:36 GMT (envelope-from nobody) Message-Id: <201304300737.r3U7baT8075411@red.freebsd.org> Date: Tue, 30 Apr 2013 07:37:36 GMT From: Chad Slater To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178251: [patch] unix2dos implicit declaration of function exit X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2013 07:40:00 -0000 >Number: 178251 >Category: ports >Synopsis: [patch] unix2dos implicit declaration of function exit >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Apr 30 07:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Chad Slater >Release: FreeBSD 9.1-RELEASE >Organization: >Environment: FreeBSD babh 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Sat Mar 30 17:51:04 EDT 2013 root@avenger:/usr/obj/pcbsd-build64/fbsd-source/src-patched/sys/GENERIC amd64 >Description: When installing the unix2dos port, clang warns on implicit declaration of the exit function. clang -O2 -pipe -o unix2dos unix2dos.c unix2dos.c:59:5: warning: implicitly declaring library function 'exit' with t exit(1); ^ unix2dos.c:59:5: note: please include the header or explicitly pro 1 warning generated. ln -f unix2dos dos2unix >How-To-Repeat: Using clang as the compiler, install the converters/unix2dos port. >Fix: Trivial fix is to simply add #include to unix2dos.c. Do not know who owns upstream. Patch attached with submission follows: --- /usr/ports/converters/unix2dos/work/unix2dos.c 2013-04-30 00:52:42.277855431 -0600 +++ unix2dos/unix2dos.c 2013-04-30 01:28:49.207854523 -0600 @@ -1,4 +1,5 @@ #include +#include #include #include #include >Release-Note: >Audit-Trail: >Unformatted: