From owner-freebsd-current@FreeBSD.ORG Sat Apr 17 11:45:26 2010 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 41A98106564A; Sat, 17 Apr 2010 11:45:26 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 9899A8FC0A; Sat, 17 Apr 2010 11:45:25 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so174330fge.13 for ; Sat, 17 Apr 2010 04:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=JgsgVdCoQxgeG/AGBUsjowso/zE+zpzmhucVNuxhLfs=; b=cSReFxSwjarGEJ+gLmudHDrM1QgW476Khzv5Fg8mffciFsTMTmUQ4/t4PIjeDbf9YN C+QYOH5CLbgobCC5B/ImXJwStsQRhha8pcwRyooqWq7+vNelyn3DbMwf0j5fB8Jmx5WR tUmI4HOmQYenCN1LAHpUlHQhfeAX/WiEWQ/gk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=CCkKpekAVBnLmMe3+gOiw83TgpQlF6uX7+rggXDRPfekEjaXK80FxOSoI9vs+9WHPn QaFQ8jdZy6TfAfXxfDiVKrPKPx30KpVcKlyxm8Uly6JacWygOpwh2xIrAJdhJElrB7sD Ha/jlUwaFV9FgMv52Z3Qx5xeqJHVzoqE8spWw= Received: by 10.102.202.13 with SMTP id z13mr1875097muf.96.1271504724386; Sat, 17 Apr 2010 04:45:24 -0700 (PDT) Received: from [10.0.10.2] (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by mx.google.com with ESMTPS id e9sm18404608muf.10.2010.04.17.04.45.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Apr 2010 04:45:23 -0700 (PDT) Sender: Rui Paulo Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: Date: Sat, 17 Apr 2010 12:45:22 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20100416160818.GA69460@freebsd.org> To: Ivan Voras X-Mailer: Apple Mail (2.1078) Cc: freebsd-current@freebsd.org Subject: Re: [CFT]: ClangBSD is selfhosting, we need testers now 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: Sat, 17 Apr 2010 11:45:26 -0000 On 16 Apr 2010, at 22:41, Ivan Voras wrote: > Roman Divacky wrote: >=20 >> We kindly ask you to setup ClangBSD chroot and/or use clang compiled = kernel and use it as you would normally use FreeBSD. Please report back=20= >=20 > I have a buildworld error here: >=20 > clang -isystem /usr/obj/mt/clangbsd/tmp/usr/include/clang/1.5 -isystem = /usr/obj/mt/clangbsd/tmp/usr/include -B/usr/obj/mt/clangbsd/tmp/usr/lib/ = -L/usr/obj/mt/clangbsd/tmp/usr/lib/ -fpic -DPIC -O2 -pipe -mtune=3Dgeneric= -I/mt/clangbsd/lib/libc/include -I/mt/clangbsd/lib/libc/../../include = -I/mt/clangbsd/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE = -I/mt/clangbsd/lib/libc/../../contrib/gdtoa -DINET6 = -I/usr/obj/mt/clangbsd/lib/libc -I/mt/clangbsd/lib/libc/resolv = -D_ACL_PRIVATE -DPOSIX_MISTAKE = -I/mt/clangbsd/lib/libc/../../contrib/tzcode/stdtime = -I/mt/clangbsd/lib/libc/stdtime -I/mt/clangbsd/lib/libc/locale = -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/mt/clangbsd/lib/libc/rpc -DYP = -DNS_CACHING -DSYMBOL_VERSIONING -std=3Dgnu99 -fstack-protector = -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized = -Wno-pointer-sign -c /mt/clangbsd/lib/libc/sys/__error.c -o __error.So > /mt/clangbsd/lib/libc/sys/stack_protector.c:88:19: error: format = string is not a string literal (potentially insecure) = [-Wformat-security] > syslog(LOG_CRIT, msg); > ^~~ > 1 diagnostic generated. > *** Error code 1 > /mt/clangbsd/lib/libc/sys/stack_protector.c:88:19: error: format = string is not a string literal (potentially insecure) = [-Wformat-security] > syslog(LOG_CRIT, msg); > ^~~ > 1 diagnostic generated. > *** Error code 1 > 2 errors > *** Error code 2 > 1 error >=20 >=20 > The context is... I think a bit overprotective here :) At least this = particular warning knob should probably be turned off. Actually, I would rather fix the code that does this than disabling the = warning. Even if this particular code is not vulnerable to format string = problems, it's 2010 now and it doesn't hurt to add a "%s" there. Regards, -- Rui Paulo