Re: Compiling BETA2 with clang fails

From: Volodymyr Kostyrko <c.kworr_at_gmail.com>
Date: Tue, 06 Sep 2011 01:00:04 +0300
05.09.2011 10:43, Olivier Smedts wrote:

>> ===>  libexec/atrun (all)
>> clang -O2 -pipe -march=native -DATJOB_DIR=\"/var/at/jobs/\"
>> -DLFILE=\"/var/at/jobs/.lockfile\"  -DLOADAVG_MX=1.5
>> -DATSPOOL_DIR=\"/var/at/spool\"  -DVERSION=\"2.9\" -DDAEMON_UID=1
>> -DDAEMON_GID=1  -DDEFAULT_BATCH_QUEUE=\'E\'  -DDEFAULT_AT_QUEUE=\'c\'
>> -DPERM_PATH=\"/var/at/\" -I/usr/src/libexec/atrun/../../usr.bin/at
>> -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector
>> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign
>> -c /usr/src/libexec/atrun/atrun.c
>
> Try removing "-march=native" from your CFLAGS.
>
> I have the exact same problem since months on my Core i7 CPU when
> using "-march=native" or "-march=corei7". No problems for me with
> "-march=core2" though.

It so nice you have noted that. I'll be much happier if you also spare 
some time reading my previous emails.

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 
there 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.

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  -DATJOB_DIR=\"/var/at/jobs/\" 
-DLFILE=\"/var/at/jobs/.lockfile\"  -DLOADAVG_MX=1.5 
-DATSPOOL_DIR=\"/var/at/spool\"  -DVERSION=\"2.9\" -DDAEMON_UID=1 
-DDAEMON_GID=1  -DDEFAULT_BATCH_QUEUE=\'E\'  -DDEFAULT_AT_QUEUE=\'c\' 
-DPERM_PATH=\"/var/at/\" -I/usr/src/libexec/atrun/../../usr.bin/at 
-I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector 
-Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialize
d -Wno-pointer-sign  -o atrun atrun.o gloadavg.o -lpam -lutil
clang: warning: argument unused during compilation: '-std=gnu99'
/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 `strlen'
/usr/src/libexec/atrun/atrun.c:(.text+0x45): undefined reference to `vwarn'
/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 `vwarnx'
/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 `exit'
/usr/src/libexec/atrun/atrun.c:(.text+0x290): undefined reference to 
`syslog'
/usr/src/libexec/atrun/atrun.c:(.text+0x29c): undefined reference to `exit'
/usr/src/libexec/atrun/atrun.c:(.text+0x2a8): undefined reference to `chdir'
/usr/src/libexec/atrun/atrun.c:(.text+0x2bc): undefined reference to 
`opendir'
/usr/src/libexec/atrun/atrun.c:(.text+0x2e0): undefined reference to `time'
/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 `stat'
/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 `exit'
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 `chmod'
/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 `fork'
/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 `fopen'
/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 `fstat'
/usr/src/libexec/atrun/atrun.c:(.text+0x738): undefined reference to `lstat'
/usr/src/libexec/atrun/atrun.c:(.text+0x7dd): undefined reference to `fcntl'
/usr/src/libexec/atrun/atrun.c:(.text+0x7fe): undefined reference to `fcntl'
/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 `chdir'
/usr/src/libexec/atrun/atrun.c:(.text+0x8c7): undefined reference to `open'
/usr/src/libexec/atrun/atrun.c:(.text+0x8e9): undefined reference to `write'
/usr/src/libexec/atrun/atrun.c:(.text+0x8f1): undefined reference to 
`strlen'
/usr/src/libexec/atrun/atrun.c:(.text+0x901): undefined reference to `write'
/usr/src/libexec/atrun/atrun.c:(.text+0x919): undefined reference to `write'
/usr/src/libexec/atrun/atrun.c:(.text+0x92b): undefined reference to `fstat'
/usr/src/libexec/atrun/atrun.c:(.text+0x94f): undefined reference to `close'
/usr/src/libexec/atrun/atrun.c:(.text+0x95b): undefined reference to `close'
/usr/src/libexec/atrun/atrun.c:(.text+0x967): undefined reference to `close'
/usr/src/libexec/atrun/atrun.c:(.text+0x96c): undefined reference to `fork'
/usr/src/libexec/atrun/atrun.c:(.text+0x9ac): undefined reference to `lseek'
/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 `close'
/usr/src/libexec/atrun/atrun.c:(.text+0x9f6): undefined reference to `close'
/usr/src/libexec/atrun/atrun.c:(.text+0xa02): undefined reference to `chdir'
/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 `nice'
/usr/src/libexec/atrun/atrun.c:(.text+0xa8c): undefined reference to `chdir'
/usr/src/libexec/atrun/atrun.c:(.text+0xa9c): undefined reference to `chdir'
/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 `close'
/usr/src/libexec/atrun/atrun.c:(.text+0xafa): undefined reference to `close'
/usr/src/libexec/atrun/atrun.c:(.text+0xb18): undefined reference to 
`waitpid'
/usr/src/libexec/atrun/atrun.c:(.text+0xb2a): undefined reference to `stat'
/usr/src/libexec/atrun/atrun.c:(.text+0xb3a): undefined reference to `open'
/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 `chdir'
/usr/src/libexec/atrun/atrun.c:(.text+0xbd5): undefined reference to `chdir'
/usr/src/libexec/atrun/atrun.c:(.text+0xc18): undefined reference to `execl'
/usr/src/libexec/atrun/atrun.c:(.text+0xc30): undefined reference to `exit'
/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 `exit'
/usr/src/libexec/atrun/atrun.c:(.text+0xe0a): undefined reference to `exit'
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 `getrlimit'
/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 `sigemptyset'
/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_scan'
/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 `strtoumax'
/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 `ftruncate'
/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 `nanosleep'
/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 `setrlimit'
/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 `initgroups'
/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 `strcasecmp'
/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 `sigfillset'
/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 `localtime'
/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 `getttynam'
/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 `localeconv'
/usr/obj/usr/src/tmp/usr/lib/libutil.so: undefined reference to `cgetclose'
/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 `sigprocmask'
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=\"/var/at/jobs/\"  -DLFILE=\"/var/at/jobs/.lockfile\" 
-DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\"  -DVERSION=\"2.9\" 
-DDAEMON_UID=1 -DDAEMON_GID=1  -DDEFAULT_BATCH_QUEUE=\'E\' 
-DDEFAULT_AT_QUEUE=\'c\' -DPERM_PATH=\"/var/at/\" 
-I/usr/src/libexec/atrun/../../usr.bin/at -I/usr/src/libexec/atrun 
-DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector -Wsystem-headers -Wall 
-Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign  -o atrun atrun.o 
gloadavg.o -lpam -lutil
clang: warning: argument unused during compilation: '-std=gnu99'
[limbo] /usr/obj/usr/src/libexec/atrun# ls -la
total 37
drwxr-xr-x   2 root  wheel      7  6 вер 00:56 ./
drwxr-xr-x  25 root  wheel     25  5 вер 19:06 ../
-rw-r--r--   1 root  wheel   3668  5 вер 22:53 .depend
-rwxr-xr-x   1 root  wheel  15319  6 вер 00:56 atrun*
-rw-r--r--   1 root  wheel   1685  5 вер 23:06 atrun.8
-rw-r--r--   1 root  wheel   8956  5 вер 23:06 atrun.o
-rw-r--r--   1 root  wheel    860  5 вер 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.
Received on Mon Sep 05 2011 - 20:00:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC