Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2011 00:14:55 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        freebsd-current@freebsd.org, Dimitry Andric <dim@freebsd.org>
Subject:   Re: Compiling BETA2 with clang fails
Message-ID:  <CABzXLYOz5eSYz=JfRL6UzM-FxowpFqQH0xE-jdakPNL0nVCYnw@mail.gmail.com>
In-Reply-To: <CABzXLYM94zip6p7XVdA=2ChuFuzV2VVf8pY%2BifYpHchP2%2Bsgrg@mail.gmail.com>
References:  <j3u29f$bv8$1@dough.gmane.org> <4E62915E.1010405@FreeBSD.org> <4E6294E0.5010104@gmail.com> <4E6298DE.5090007@FreeBSD.org> <4E644993.4090703@gmail.com> <CABzXLYPmvd2DdeQMx9uYq5spCK%2BR3ikOZOO6M_M-L2SgnEE74w@mail.gmail.com> <4E654664.1010504@gmail.com> <CABzXLYM94zip6p7XVdA=2ChuFuzV2VVf8pY%2BifYpHchP2%2Bsgrg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/9/6 Olivier Smedts <olivier@gid0.org>:
> 2011/9/6 Volodymyr Kostyrko <c.kworr@gmail.com>:
>> 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_U=
ID=3D1
>>>> -DDAEMON_GID=3D1 =C2=A0-DDEFAULT_BATCH_QUEUE=3D\'E\' =C2=A0-DDEFAULT_A=
T_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-protec=
tor
>>>> -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 s=
ome
>> time reading my previous emails.
>
> Or you could search this mailing list for the exact same problem
> reported some time ago.

Sorry for double-post. My point was : this does not seem to be a
buildworld problem, but rather a clang problem with coreiX's latest
instructions. Should be reported upstream IMO.

>> 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 the=
re
>> 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 erro=
r
>> 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 a=
s
>> 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_=
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-protecto=
r
>> -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 `str=
len'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x45): undefined reference to `vwa=
rn'
>> /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 `exi=
t'
>> atrun.o: In function `perrx':
>> /usr/src/libexec/atrun/atrun.c:(.text+0xd3): undefined reference to `vwa=
rnx'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xdf): undefined reference to `exi=
t'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xf3): undefined reference to
>> `vsyslog'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xff): undefined reference to `exi=
t'
>> 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 `ex=
it'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x290): undefined reference to
>> `syslog'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x29c): undefined reference to `ex=
it'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x2a8): undefined reference to `ch=
dir'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x2bc): undefined reference to
>> `opendir'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x2e0): undefined reference to `ti=
me'
>> /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 `st=
at'
>> /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 `ex=
it'
>> 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 `ch=
mod'
>> /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 `fo=
rk'
>> /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 `fo=
pen'
>> /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 `du=
p'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x71d): undefined reference to `fs=
tat'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x738): undefined reference to `ls=
tat'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x7dd): undefined reference to `fc=
ntl'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x7fe): undefined reference to `fc=
ntl'
>> /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 `ch=
dir'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x8c7): undefined reference to `op=
en'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x8e9): undefined reference to `wr=
ite'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x8f1): undefined reference to
>> `strlen'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x901): undefined reference to `wr=
ite'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x919): undefined reference to `wr=
ite'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x92b): undefined reference to `fs=
tat'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x94f): undefined reference to `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x95b): undefined reference to `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x967): undefined reference to `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x96c): undefined reference to `fo=
rk'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x9ac): undefined reference to `ls=
eek'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x9bc): undefined reference to `du=
p'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x9cc): undefined reference to `du=
p'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x9dd): undefined reference to `du=
p'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x9ee): undefined reference to `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0x9f6): undefined reference to `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xa02): undefined reference to `ch=
dir'
>> /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 `ni=
ce'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xa8c): undefined reference to `ch=
dir'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xa9c): undefined reference to `ch=
dir'
>> /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 `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xafa): undefined reference to `cl=
ose'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xb18): undefined reference to
>> `waitpid'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xb2a): undefined reference to `st=
at'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xb3a): undefined reference to `op=
en'
>> /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 `ch=
dir'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xbd5): undefined reference to `ch=
dir'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xc18): undefined reference to `ex=
ecl'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xc30): undefined reference to `ex=
it'
>> /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 `ex=
it'
>> /usr/src/libexec/atrun/atrun.c:(.text+0xe0a): undefined reference to `ex=
it'
>> 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 `__stdout=
p'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `getrlim=
it'
>> /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 `sigempty=
set'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strerro=
r'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `__pw_sc=
an'
>> /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_fre=
e'
>> /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 `vsnprint=
f'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `strtoum=
ax'
>> /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 `setgroup=
s'
>> /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 `ftrunca=
te'
>> /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `sigaddse=
t'
>> /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 `nanosle=
ep'
>> /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 `setrlim=
it'
>> /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 `initgrou=
ps'
>> /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 `realloc=
f'
>> /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 `unlockp=
t'
>> /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 `strcase=
cmp'
>> /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 `sigfill=
set'
>> /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 `sigactio=
n'
>> /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 `localti=
me'
>> /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 `modfnex=
t'
>> /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 `tcgetatt=
r'
>> /usr/obj/usr/src/tmp/usr/lib/libpam.so: undefined reference to `getgroup=
s'
>> /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 `getttyn=
am'
>> /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 `localec=
onv'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetclo=
se'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `quotact=
l'
>> /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 `getgrna=
m'
>> /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 `__asser=
t'
>> /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 `tcsetatt=
r'
>> /usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `tcsetsi=
d'
>> /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 `setlogi=
n'
>> /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 `sigprocm=
ask'
>> 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 atru=
n.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.
>>
>
> --
> 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."
>



--=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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABzXLYOz5eSYz=JfRL6UzM-FxowpFqQH0xE-jdakPNL0nVCYnw>