From owner-freebsd-current@FreeBSD.ORG Mon Sep 5 22:11:44 2011 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 C2DF4106564A; Mon, 5 Sep 2011 22:11:44 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 658CB8FC13; Mon, 5 Sep 2011 22:11:44 +0000 (UTC) Received: by qyk4 with SMTP id 4so162400qyk.13 for ; Mon, 05 Sep 2011 15:11:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.176.232 with SMTP id bf40mr3484923qcb.23.1315260703471; Mon, 05 Sep 2011 15:11:43 -0700 (PDT) Received: by 10.229.98.137 with HTTP; Mon, 5 Sep 2011 15:11:43 -0700 (PDT) In-Reply-To: <4E654664.1010504@gmail.com> References: <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <4E654664.1010504@gmail.com> Date: Tue, 6 Sep 2011 00:11:43 +0200 Message-ID: From: Olivier Smedts To: Volodymyr Kostyrko Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Dimitry Andric Subject: Re: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Sep 2011 22:11:44 -0000 2011/9/6 Volodymyr Kostyrko : > 05.09.2011 10:43, Olivier Smedts wrote: > >>> =3D=3D=3D> =C2=A0libexec/atrun (all) >>> clang -O2 -pipe -march=3Dnative -DATJOB_DIR=3D\"/var/at/jobs/\" >>> -DLFILE=3D\"/var/at/jobs/.lockfile\" =C2=A0-DLOADAVG_MX=3D1.5 >>> -DATSPOOL_DIR=3D\"/var/at/spool\" =C2=A0-DVERSION=3D\"2.9\" -DDAEMON_UI= D=3D1 >>> -DDAEMON_GID=3D1 =C2=A0-DDEFAULT_BATCH_QUEUE=3D\'E\' =C2=A0-DDEFAULT_AT= _QUEUE=3D\'c\' >>> -DPERM_PATH=3D\"/var/at/\" -I/usr/src/libexec/atrun/../../usr.bin/at >>> -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=3Dgnu99 -fstack-protect= or >>> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized >>> -Wno-pointer-sign >>> -c /usr/src/libexec/atrun/atrun.c >> >> Try removing "-march=3Dnative" from your CFLAGS. >> >> I have the exact same problem since months on my Core i7 CPU when >> using "-march=3Dnative" or "-march=3Dcorei7". No problems for me with >> "-march=3Dcore2" though. > > It so nice you have noted that. I'll be much happier if you also spare so= me > time reading my previous emails. Or you could search this mailing list for the exact same problem reported some time ago. > As I noted before this command fails only if run as a part of 'make > buildworld'. If I cd to that directory and run the same command from ther= e > it completes successfully yielding working binary. If the error would be > related to -fPIC, ccache or -march it'll end up with other bunch of error > messages and result would be irrelevant of invocation and environment. If you cd to that directory, you'll use the system clang, let's call it the "good" clang. If you buildworld with -march=3Dnative or -march=3Dcorei7, you'll first compile a bootstrap clang with -march=3Dnative or -march=3Dcorei7 (the "bad" one) and that one will fail building libexec/atrun. Chicken and egg problem. If you try building and installing clang with -march=3Dnative or -march=3Dcorei7, you'll have the same error if you then cd to that directory and make. > As I suspect some incorrect buildworld behavior I have no other choice as > running another clean build and presenting new logs. Here you go: > > clang -O2 -pipe =C2=A0-DATJOB_DIR=3D\"/var/at/jobs/\" > -DLFILE=3D\"/var/at/jobs/.lockfile\" =C2=A0-DLOADAVG_MX=3D1.5 > -DATSPOOL_DIR=3D\"/var/at/spool\" =C2=A0-DVERSION=3D\"2.9\" -DDAEMON_UID= =3D1 > -DDAEMON_GID=3D1 =C2=A0-DDEFAULT_BATCH_QUEUE=3D\'E\' =C2=A0-DDEFAULT_AT_Q= UEUE=3D\'c\' > -DPERM_PATH=3D\"/var/at/\" -I/usr/src/libexec/atrun/../../usr.bin/at > -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=3Dgnu99 -fstack-protector > -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialize > d -Wno-pointer-sign =C2=A0-o atrun atrun.o gloadavg.o -lpam -lutil > clang: warning: argument unused during compilation: '-std=3Dgnu99' > /usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start1': > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x7d): undefined reference to > `atexit' > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x84): undefined reference to > `_init_tls' > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x90): undefined reference to > `atexit' > /usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xad): undefined reference to > `exit' > atrun.o: In function `perr': > /usr/src/libexec/atrun/atrun.c:(.text+0x12): undefined reference to `strl= en' > /usr/src/libexec/atrun/atrun.c:(.text+0x45): undefined reference to `vwar= n' > /usr/src/libexec/atrun/atrun.c:(.text+0x6d): undefined reference to > `snprintf' > /usr/src/libexec/atrun/atrun.c:(.text+0x8a): undefined reference to > `vsyslog' > /usr/src/libexec/atrun/atrun.c:(.text+0x9c): undefined reference to `exit= ' > atrun.o: In function `perrx': > /usr/src/libexec/atrun/atrun.c:(.text+0xd3): undefined reference to `vwar= nx' > /usr/src/libexec/atrun/atrun.c:(.text+0xdf): undefined reference to `exit= ' > /usr/src/libexec/atrun/atrun.c:(.text+0xf3): undefined reference to > `vsyslog' > /usr/src/libexec/atrun/atrun.c:(.text+0xff): undefined reference to `exit= ' > atrun.o: In function `main': > /usr/src/libexec/atrun/atrun.c:(.text+0x160): undefined reference to > `geteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x174): undefined reference to > `getegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x186): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x193): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x1af): undefined reference to > `openlog' > /usr/src/libexec/atrun/atrun.c:(.text+0x1b5): undefined reference to > `opterr' > /usr/src/libexec/atrun/atrun.c:(.text+0x1e6): undefined reference to > `getopt' > /usr/src/libexec/atrun/atrun.c:(.text+0x1fe): undefined reference to > `optarg' > /usr/src/libexec/atrun/atrun.c:(.text+0x212): undefined reference to > `sscanf' > /usr/src/libexec/atrun/atrun.c:(.text+0x250): undefined reference to > `__stderrp' > /usr/src/libexec/atrun/atrun.c:(.text+0x270): undefined reference to > `fwrite' > /usr/src/libexec/atrun/atrun.c:(.text+0x27c): undefined reference to `exi= t' > /usr/src/libexec/atrun/atrun.c:(.text+0x290): undefined reference to > `syslog' > /usr/src/libexec/atrun/atrun.c:(.text+0x29c): undefined reference to `exi= t' > /usr/src/libexec/atrun/atrun.c:(.text+0x2a8): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0x2bc): undefined reference to > `opendir' > /usr/src/libexec/atrun/atrun.c:(.text+0x2e0): undefined reference to `tim= e' > /usr/src/libexec/atrun/atrun.c:(.text+0x312): undefined reference to > `_CurrentRuneLocale' > /usr/src/libexec/atrun/atrun.c:(.text+0x34f): undefined reference to > `unlink' > /usr/src/libexec/atrun/atrun.c:(.text+0x35d): undefined reference to > `readdir' > /usr/src/libexec/atrun/atrun.c:(.text+0x379): undefined reference to `sta= t' > /usr/src/libexec/atrun/atrun.c:(.text+0x3b4): undefined reference to > `sscanf' > /usr/src/libexec/atrun/atrun.c:(.text+0x3e8): undefined reference to > `__mb_sb_limit' > /usr/src/libexec/atrun/atrun.c:(.text+0x3fe): undefined reference to > `_CurrentRuneLocale' > /usr/src/libexec/atrun/atrun.c:(.text+0x41f): undefined reference to > `strcmp' > /usr/src/libexec/atrun/atrun.c:(.text+0x443): undefined reference to > `strlcpy' > /usr/src/libexec/atrun/atrun.c:(.text+0x453): undefined reference to > `__mb_sb_limit' > /usr/src/libexec/atrun/atrun.c:(.text+0x4c0): undefined reference to > `closelog' > /usr/src/libexec/atrun/atrun.c:(.text+0x4cc): undefined reference to `exi= t' > atrun.o: In function `run_file': > /usr/src/libexec/atrun/atrun.c:(.text+0x535): undefined reference to > `__stack_chk_guard' > /usr/src/libexec/atrun/atrun.c:(.text+0x56c): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x579): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x589): undefined reference to `chm= od' > /usr/src/libexec/atrun/atrun.c:(.text+0x59e): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x5ab): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x5b0): undefined reference to `for= k' > /usr/src/libexec/atrun/atrun.c:(.text+0x5c2): undefined reference to > `__stack_chk_guard' > /usr/src/libexec/atrun/atrun.c:(.text+0x5e4): undefined reference to > `getpwuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x5fb): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x608): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x67e): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x68b): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x698): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x6a5): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x6b5): undefined reference to `fop= en' > /usr/src/libexec/atrun/atrun.c:(.text+0x6c4): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0x6d1): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0x6df): undefined reference to > `__isthreaded' > /usr/src/libexec/atrun/atrun.c:(.text+0x6f3): undefined reference to > `fileno' > /usr/src/libexec/atrun/atrun.c:(.text+0x701): undefined reference to `dup= ' > /usr/src/libexec/atrun/atrun.c:(.text+0x71d): undefined reference to `fst= at' > /usr/src/libexec/atrun/atrun.c:(.text+0x738): undefined reference to `lst= at' > /usr/src/libexec/atrun/atrun.c:(.text+0x7dd): undefined reference to `fcn= tl' > /usr/src/libexec/atrun/atrun.c:(.text+0x7fe): undefined reference to `fcn= tl' > /usr/src/libexec/atrun/atrun.c:(.text+0x821): undefined reference to > `snprintf' > /usr/src/libexec/atrun/atrun.c:(.text+0x855): undefined reference to > `fscanf' > /usr/src/libexec/atrun/atrun.c:(.text+0x89b): undefined reference to > `fclose' > /usr/src/libexec/atrun/atrun.c:(.text+0x8a7): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0x8c7): undefined reference to `ope= n' > /usr/src/libexec/atrun/atrun.c:(.text+0x8e9): undefined reference to `wri= te' > /usr/src/libexec/atrun/atrun.c:(.text+0x8f1): undefined reference to > `strlen' > /usr/src/libexec/atrun/atrun.c:(.text+0x901): undefined reference to `wri= te' > /usr/src/libexec/atrun/atrun.c:(.text+0x919): undefined reference to `wri= te' > /usr/src/libexec/atrun/atrun.c:(.text+0x92b): undefined reference to `fst= at' > /usr/src/libexec/atrun/atrun.c:(.text+0x94f): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0x95b): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0x967): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0x96c): undefined reference to `for= k' > /usr/src/libexec/atrun/atrun.c:(.text+0x9ac): undefined reference to `lse= ek' > /usr/src/libexec/atrun/atrun.c:(.text+0x9bc): undefined reference to `dup= ' > /usr/src/libexec/atrun/atrun.c:(.text+0x9cc): undefined reference to `dup= ' > /usr/src/libexec/atrun/atrun.c:(.text+0x9dd): undefined reference to `dup= ' > /usr/src/libexec/atrun/atrun.c:(.text+0x9ee): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0x9f6): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0xa02): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0xa20): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0xa2d): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0xa36): undefined reference to > `__mb_sb_limit' > /usr/src/libexec/atrun/atrun.c:(.text+0xa3f): undefined reference to > `_CurrentRuneLocale' > /usr/src/libexec/atrun/atrun.c:(.text+0xa51): undefined reference to `nic= e' > /usr/src/libexec/atrun/atrun.c:(.text+0xa8c): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0xa9c): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0xac2): undefined reference to > `execle' > /usr/src/libexec/atrun/atrun.c:(.text+0xadd): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0xaea): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0xaf2): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0xafa): undefined reference to `clo= se' > /usr/src/libexec/atrun/atrun.c:(.text+0xb18): undefined reference to > `waitpid' > /usr/src/libexec/atrun/atrun.c:(.text+0xb2a): undefined reference to `sta= t' > /usr/src/libexec/atrun/atrun.c:(.text+0xb3a): undefined reference to `ope= n' > /usr/src/libexec/atrun/atrun.c:(.text+0xb4a): undefined reference to > `unlink' > /usr/src/libexec/atrun/atrun.c:(.text+0xb83): undefined reference to > `seteuid' > /usr/src/libexec/atrun/atrun.c:(.text+0xb90): undefined reference to > `setegid' > /usr/src/libexec/atrun/atrun.c:(.text+0xbc5): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0xbd5): undefined reference to `chd= ir' > /usr/src/libexec/atrun/atrun.c:(.text+0xc18): undefined reference to `exe= cl' > /usr/src/libexec/atrun/atrun.c:(.text+0xc30): undefined reference to `exi= t' > /usr/src/libexec/atrun/atrun.c:(.text+0xc35): undefined reference to > `__stack_chk_fail' > /usr/src/libexec/atrun/atrun.c:(.text+0xde6): undefined reference to `exi= t' > /usr/src/libexec/atrun/atrun.c:(.text+0xe0a): undefined reference to `exi= t' > gloadavg.o: In function `gloadavg': > /usr/src/libexec/atrun/gloadavg.c:(.text+0x15): undefined reference to > `getloadavg' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `stpcpy' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `putchar' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strcpy' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `warnx' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `__stdoutp= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getrlimi= t' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `ioctl' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `dlerror' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getgid' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `printf' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `mac_is_present' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `mac_from_text' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `sigemptys= et' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strerror= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `__pw_sca= n' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `memmove' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `__stdinp' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `cpuset_setaffinity' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getenv' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `fchmod' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `setloginclass' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `setpriority' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `mac_free= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getpid' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `qsort' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `fchown' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `memcpy' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `creat' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `errx' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `dup2' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getuid' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `rtprio' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `feof' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `malloc' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `sleep' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `vsnprintf= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strtouma= x' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `statfs' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `gethostbyaddr' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `getprogname' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `setgroups= ' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `fflush' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `ftruncat= e' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `sigaddset= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `strncasecmp' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `dlclose' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `posix_openpt' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `freeaddrinfo' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `getnameinfo' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `alarm' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cpuset' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strtoq' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strtol' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `_DefaultRuneLocale' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetstr' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `rename' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `strrchr' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `basename' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `nanoslee= p' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `calloc' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `setrlimi= t' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `kldload' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `sysctl' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `modstat' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `fprintf' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `kill' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strcat' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `initgroup= s' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `memchr' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `umask' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `mktime' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `reallocf= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strstr' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `unlockpt= ' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `__error' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `flock' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `setgid' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `read' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `strncmp' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `dlopen' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strncpy' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `setenv' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strcasec= mp' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `realloc' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strtok' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `sigfills= et' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `memcmp' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `__inet_ntoa' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `execlp' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `sigaction= ' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `dlsym' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `mac_set_proc' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `strdup' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `kldfirstmod' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `index' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `localtim= e' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `memset' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `fnmatch' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `err' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `modfnext= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getsid' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `kldstat' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `grantpt' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `tcgetattr= ' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `getgroups= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `ptsname' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `gethostbyname' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `fgetc' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `gethostname' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `sprintf' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `asprintf' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strcspn' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `mkstemp' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getttyna= m' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetcap' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strsep' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `fputc' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `fgetln' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to > `getaddrinfo' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `kldnext' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `localeco= nv' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetclos= e' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `quotactl= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `link' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetent' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getgrnam= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `atoi' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `_exit' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strspn' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `__assert= ' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `strchr' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `fputs' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `setsid' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `warn' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetnum' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `setuid' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `tcsetattr= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `tcsetsid= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `pwrite' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `setlogin= ' > /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `raise' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `free' > /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `sigprocma= sk' > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > *** Error code 1 > > Stop in /usr/src/libexec/atrun. > *** Error code 1 > > Stop in /usr/src/libexec. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > [limbo] /usr/src/libexec/atrun# cd /usr/obj/usr/src/libexec/atrun/ > [limbo] /usr/obj/usr/src/libexec/atrun# clang -O2 -pipe > -DATJOB_DIR=3D\"/var/at/jobs/\" =C2=A0-DLFILE=3D\"/var/at/jobs/.lockfile\= " > -DLOADAVG_MX=3D1.5 -DATSPOOL_DIR=3D\"/var/at/spool\" =C2=A0-DVERSION=3D\"= 2.9\" > -DDAEMON_UID=3D1 -DDAEMON_GID=3D1 =C2=A0-DDEFAULT_BATCH_QUEUE=3D\'E\' > -DDEFAULT_AT_QUEUE=3D\'c\' -DPERM_PATH=3D\"/var/at/\" > -I/usr/src/libexec/atrun/../../usr.bin/at -I/usr/src/libexec/atrun > -DLOGIN_CAP -DPAM -std=3Dgnu99 -fstack-protector -Wsystem-headers -Wall > -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign =C2=A0-o atrun atrun= .o > gloadavg.o -lpam -lutil > clang: warning: argument unused during compilation: '-std=3Dgnu99' > [limbo] /usr/obj/usr/src/libexec/atrun# ls -la > total 37 > drwxr-xr-x =C2=A0 2 root =C2=A0wheel =C2=A0 =C2=A0 =C2=A07 =C2=A06 =D0=B2= =D0=B5=D1=80 00:56 ./ > drwxr-xr-x =C2=A025 root =C2=A0wheel =C2=A0 =C2=A0 25 =C2=A05 =D0=B2=D0= =B5=D1=80 19:06 ../ > -rw-r--r-- =C2=A0 1 root =C2=A0wheel =C2=A0 3668 =C2=A05 =D0=B2=D0=B5=D1= =80 22:53 .depend > -rwxr-xr-x =C2=A0 1 root =C2=A0wheel =C2=A015319 =C2=A06 =D0=B2=D0=B5=D1= =80 00:56 atrun* > -rw-r--r-- =C2=A0 1 root =C2=A0wheel =C2=A0 1685 =C2=A05 =D0=B2=D0=B5=D1= =80 23:06 atrun.8 > -rw-r--r-- =C2=A0 1 root =C2=A0wheel =C2=A0 8956 =C2=A05 =D0=B2=D0=B5=D1= =80 23:06 atrun.o > -rw-r--r-- =C2=A0 1 root =C2=A0wheel =C2=A0 =C2=A0860 =C2=A05 =D0=B2=D0= =B5=D1=80 23:06 gloadavg.o > [limbo] /usr/obj/usr/src/libexec/atrun# file atrun > atrun: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > dynamically linked (uses shared libs), for FreeBSD 9.0 (900042), not > stripped > > -- > Sphinx of black quartz judge my vow. > --=20 Olivier Smedts=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 _ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ASCII ri= bbon campaign ( ) e-mail: olivier@gid0.org=C2=A0 =C2=A0 =C2=A0 =C2=A0 - against HTML email & = vCards=C2=A0 X www: http://www.gid0.org=C2=A0 =C2=A0 - against proprietary attachments / \ =C2=A0 "Il y a seulement 10 sortes de gens dans le monde : =C2=A0 ceux qui comprennent le binaire, =C2=A0 et ceux qui ne le comprennent pas."