From owner-freebsd-current@FreeBSD.ORG  Sat Sep  3 20:22:22 2011
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
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 049CA106566C
	for <freebsd-current@freebsd.org>; Sat,  3 Sep 2011 20:22:22 +0000 (UTC)
	(envelope-from freebsd-current@m.gmane.org)
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
	by mx1.freebsd.org (Postfix) with ESMTP id 8EBBB8FC15
	for <freebsd-current@freebsd.org>; Sat,  3 Sep 2011 20:22:21 +0000 (UTC)
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <freebsd-current@m.gmane.org>) id 1QzwjL-0006f5-O7
	for freebsd-current@freebsd.org; Sat, 03 Sep 2011 22:22:19 +0200
Received: from 195.225.157.86 ([195.225.157.86])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <freebsd-current@freebsd.org>; Sat, 03 Sep 2011 22:22:19 +0200
Received: from c.kworr by 195.225.157.86 with local (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <freebsd-current@freebsd.org>; Sat, 03 Sep 2011 22:22:19 +0200
X-Injected-Via-Gmane: http://gmane.org/
To: freebsd-current@freebsd.org
From: Volodymyr Kostyrko <c.kworr@gmail.com>
Date: Sat, 03 Sep 2011 23:22:07 +0300
Lines: 100
Message-ID: <j3u29f$bv8$1@dough.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@dough.gmane.org
X-Gmane-NNTP-Posting-Host: 195.225.157.86
User-Agent: Mozilla/5.0 (X11; FreeBSD i386;
	rv:6.0.1) Gecko/20110902 Thunderbird/6.0.1
Subject: Compiling BETA2 with clang fails
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 03 Sep 2011 20:22:22 -0000


Hi all.

===> libexec/bootpd (all)
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/bootpd.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/dovend.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/readfile.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/hash.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/dumptab.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/lookup.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/getif.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/hwaddr.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/report.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/tzone.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/rtmsg.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-o bootpd bootpd.o dovend.o readfile.o hash.o dumptab.o lookup.o getif.o 
hwaddr.o report.o tzone.o rtmsg.o
/usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start1':
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x94): undefined reference to 
`atexit'
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x9d): undefined reference to 
`_init_tls'
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xad): undefined reference to 
`atexit'
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xd6): undefined reference to 
`exit'
bootpd.o: In function `main':
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x31): undefined 
reference to `strrchr'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0xa2): undefined 
reference to `malloc'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0xe0): undefined 
reference to `exit'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x12a): undefined 
reference to `__error'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x150): undefined 
reference to `getsockname'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x1c7): undefined 
reference to `gethostname'
bootpd.o: In function `.LBB0_31':
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x385): undefined 
reference to `sscanf'
bootpd.o: In function `.LBB0_42':
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x44d): undefined 
reference to `sscanf'
bootpd.o: In function `.LBB0_55':

There may be some problems integrating clang into Makefiles, because if 
I cd to /usr/src/libexec/bootpd and run make there everything works fine.
-- 
Sphinx of black quartz judge my vow.