From owner-freebsd-current@FreeBSD.ORG Mon May 14 00:03:19 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F134B106566C for ; Mon, 14 May 2012 00:03:18 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8DB8FC15 for ; Mon, 14 May 2012 00:02:55 +0000 (UTC) Received: by bkvi18 with SMTP id i18so3334287bkv.13 for ; Sun, 13 May 2012 17:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WvA34WXdv2H15smraXwvWRyAhnkYR0/NWTwlD61w7dE=; b=h+V8nGqa3hIkh8Xlna1znVZe11Uy1iRcfwnXhkc7ZwBtx7QSuGdEPAZ/Og4kVo4rwn jVuLQ4vu4VjjRpc6WVkSZsWs1QtDqqFpygsejdPlVLBG/0meciunEsfETU0w2e2tyCjL 2PhURMNqjPxkaZ0tiKRZJWSALYDadUYjPMr0hHpCAeWqyb3vh53Zi+/W1L1cJfoc2UTO vUID4go+wTIKp8Ko/aWE0aRAPs9xJKaiW9qh/lN/62QU+fLsOTAdL1OFZLyYSBx5AcC9 OaNdwmbduZhJ1OCeCW5ceuHnhX6YgocWKlqw8OMAY27ok147XphRNMwrj+2RLAdbY8J/ bt3w== MIME-Version: 1.0 Received: by 10.204.133.200 with SMTP id g8mr2232653bkt.110.1336953769275; Sun, 13 May 2012 17:02:49 -0700 (PDT) Received: by 10.204.157.11 with HTTP; Sun, 13 May 2012 17:02:49 -0700 (PDT) Date: Sun, 13 May 2012 20:02:49 -0400 Message-ID: From: Outback Dingo To: freebsd-current Content-Type: text/plain; charset=ISO-8859-1 Subject: FYI FreeBSD clang build fails on new import of sort X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 00:03:19 -0000 trying to rerun a clang build of FreeBSD CURRENT fails on new import of sort, cat /etc/src.conf WITH_CLANG_IS_CC=1 make world ---------------------SNIP--------------------------- clang -O2 -pipe -DSORT_THREADS -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c /usr/src/usr.bin/sort/coll.c clang -O2 -pipe -DSORT_THREADS -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c /usr/src/usr.bin/sort/file.c /usr/src/usr.bin/sort/file.c:601:12: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] err(2, getstr(7)); ^~~~~~~~~ /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/usr.bin/sort/file.c:942:11: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] err(2, getstr(8)); ^~~~~~~~~ /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/usr.bin/sort/file.c:1279:10: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] err(2, getstr(9)); ^~~~~~~~~ /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/src/usr.bin/sort/file.c:1295:12: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] errx(2, getstr(10)); ^~~~~~~~~~ /usr/src/usr.bin/sort/sort.h:52:20: note: expanded from macro 'getstr' #define getstr(n) catgets(catalog, 1, n, nlsstr[n]) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. *** [file.o] Error code 1 Stop in /usr/src/usr.bin/sort.