Build of lockdev with android toolchain

The build took 00h 01m 09s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
631 ansic
69 makefile
44 perl
744 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: lockdev 1.0.3_1.6-2 (Tue Apr 4 20:11:46 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -D_PATH_LOCK=\"/run/lock/lockdev\" -fPIC -c -fPIC -o src/lockdev.z src/lockdev.c
# gcc -D_PATH_LOCK=\"/run/lock/lockdev\" -fPIC -c -o src/lockdev.o src/lockdev.c
# cc1: error: no include path in which to search for stdc-predef.h
# src/lockdev.c:105:19: error: no include path in which to search for errno.h
# #include
# ^
# src/lockdev.c:106:20: error: no include path in which to search for signal.h
# #include
# ^
# src/lockdev.c:107:19: error: no include path in which to search for stdio.h
# #include
# ^
# src/lockdev.c:108:20: error: no include path in which to search for string.h
# #include
# ^
# src/lockdev.c:109:20: error: no include path in which to search for unistd.h
# #include
# ^
# src/lockdev.c:110:19: error: no include path in which to search for fcntl.h
# #include
# ^
# src/lockdev.c:111:20: error: no include path in which to search for stdlib.h
# #include
# ^
# src/lockdev.c:112:19: error: no include path in which to search for paths.h
# #include
# ^
# src/lockdev.c:123:23: error: no include path in which to search for sys/param.h
# #include
# ^
# src/lockdev.c:124:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# src/lockdev.c:125:22: error: no include path in which to search for sys/file.h
# #include
# ^
# src/lockdev.c:131:4: error: #error "put here a define for MAJOR and MINOR"
# # error "put here a define for MAJOR and MINOR"
# ^
# In file included from src/lockdev.c:134:0:
# src/lockdev.h:45:23: error: no include path in which to search for sys/types.h
# #include
# ^
# src/lockdev.h:52:1: error: unknown type name 'pid_t'
# pid_t dev_testlock (const char *devname);
# ^
# src/lockdev.h:54:1: error: unknown type name 'pid_t'
# pid_t dev_lock (const char *devname);
# ^
# src/lockdev.h:56:1: error: unknown type name 'pid_t'
# pid_t dev_relock (const char * devname,
# ^
# src/lockdev.h:57:5: error: unknown type name 'pid_t'
# const pid_t old_pid);
# ^
# src/lockdev.h:59:1: error: unknown type name 'pid_t'
# pid_t dev_unlock (const char * devname,
# ^
# src/lockdev.h:60:5: error: unknown type name 'pid_t'
# const pid_t pid);
# ^
# src/lockdev.c:141:1: error: unknown type name 'pid_t'
# static inline int _dl_filename_0 ( char * name, const pid_t pid);
# ^
# src/lockdev.c:142:62: warning: 'struct stat' declared inside parameter list [enabled by default]
# static inline int _dl_filename_1 ( char * name, const struct stat * st);
# ^
# src/lockdev.c:142:62: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
# src/lockdev.c:149:1: error: unknown type name 'pid_t'
# static pid_t _dl_check_lock ( const char * lockname);
# ^
# src/lockdev.c:242:4: error: #error "lock filename build missing"
# # error "lock filename build missing"
# ^
# src/lockdev.c:268:22: error: 'MAXPATHLEN' undeclared here (not in a function)
# static char sem_name[MAXPATHLEN+1];
# ^
# src/lockdev.c: In function '_dl_get_semaphore':
# src/lockdev.c:277:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf( sem_name, "%s/%s", LOCK_PATH, SEMAPHORE);
# ^
# src/lockdev.c:280:33: error: 'S_IRWXU' undeclared (first use in this function)
# semaphore = creat( sem_name, (S_IRWXU | S_IRWXG | S_IRWXO));
# ^
# src/lockdev.c:280:33: note: each undeclared identifier is reported only once for each function it appears in
# src/lockdev.c:280:43: error: 'S_IRWXG' undeclared (first use in this function)
# semaphore = creat( sem_name, (S_IRWXU | S_IRWXG | S_IRWXO));
# ^
# src/lockdev.c:280:53: error: 'S_IRWXO' undeclared (first use in this function)
# semaphore = creat( sem_name, (S_IRWXU | S_IRWXG | S_IRWXO));
# ^
# src/lockdev.c:282:9: error: 'errno' undeclared (first use in this function)
# if ( errno == EAGAIN ) {
# ^
# src/lockdev.c:282:18: error: 'EAGAIN' undeclared (first use in this function)
# if ( errno == EAGAIN ) {
# ^
# src/lockdev.c:308:28: error: 'LOCK_EX' undeclared (first use in this function)
# while ( flock( semaphore, LOCK_EX | LOCK_NB) < 0 ) {
# ^
# src/lockdev.c:308:38: error: 'LOCK_NB' undeclared (first use in this function)
# while ( flock( semaphore, LOCK_EX | LOCK_NB) < 0 ) {
# ^
# src/lockdev.c:309:17: error: 'EWOULDBLOCK' undeclared (first use in this function)
# if ( errno == EWOULDBLOCK ) {
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:353:1: error: unknown type name 'pid_t'
# static pid_t pid_read = 0; /* read also by dev_testlock */
# ^
# src/lockdev.c:358:1: error: unknown type name 'pid_t'
# _dl_check_lock(const char *lockname)
# ^
# src/lockdev.c: In function '_dl_check_lock':
# src/lockdev.c:361:2: error: unknown type name 'FILE'
# FILE *fd = 0;
# ^
# src/lockdev.c:368:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( ! (fd=fopen( lockname, "r")) ) {
# ^
# src/lockdev.c:369:8: error: 'errno' undeclared (first use in this function)
# if ( errno == ENOENT ) {
# ^
# src/lockdev.c:369:17: error: 'ENOENT' undeclared (first use in this function)
# if ( errno == ENOENT ) {
# ^
# src/lockdev.c:377:6: warning: incompatible implicit declaration of built-in function 'fscanf' [enabled by default]
# j = fscanf( fd, "%d", &pid_read);
# ^
# src/lockdev.c:384:49: error: 'EPERM' undeclared (first use in this function)
# if ( ( kill( pid_read, 0) == 0 ) || (errno == EPERM) ) {
# ^
# src/lockdev.c:420:3: error: unknown type name 'pid_t'
# pid_t pid2 = 0;
# ^
# src/lockdev.c:426:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf( tpname, "%s/.%d", LOCK_PATH, (int)getpid());
# ^
# src/lockdev.c: In function '_dl_check_devname':
# src/lockdev.c:472:34: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strncmp(DEV_PATH, p, strlen(DEV_PATH)) == 0) {
# ^
# src/lockdev.c:477:14: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
# while ( (m=strrchr( p, '/')) != 0 ) {
# ^
# src/lockdev.c:483:5: warning: assignment makes pointer from integer without a cast [enabled by default]
# p = ttyname( 0); /* this terminal, if it exists */
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# src/lockdev.c:486:14: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ( ! (m = malloc( 1 + l)) )
# ^
# src/lockdev.c:488:9: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# return strcpy( m, p);
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:105:19: error: no include path in which to search for errno.h
# #include
# ^
# src/lockdev.c:106:20: error: no include path in which to search for signal.h
# #include
# ^
# src/lockdev.c:494:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c:107:19: error: no include path in which to search for stdio.h
# #include
# ^
# src/lockdev.c: In function 'dev_testlock':
# src/lockdev.c:108:20: error: no include path in which to search for string.h
# #include
# ^
# src/lockdev.c:109:20: error: no include path in which to search for unistd.h
# #include
# ^
# src/lockdev.c:500:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:110:19: error: no include path in which to search for fcntl.h
# #include
# ^
# src/lockdev.c:111:20: error: no include path in which to search for stdlib.h
# #include
# ^
# src/lockdev.c:501:2: error: unknown type name 'pid_t'
# pid_t pid;
# ^
# src/lockdev.c:112:19: error: no include path in which to search for paths.h
# #include
# ^
# src/lockdev.c:123:23: error: no include path in which to search for sys/param.h
# #include
# ^
# src/lockdev.c:124:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# src/lockdev.c:515:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:125:22: error: no include path in which to search for sys/file.h
# #include
# ^
# src/lockdev.c:131:4: error: #error "put here a define for MAJOR and MINOR"
# # error "put here a define for MAJOR and MINOR"
# ^
# src/lockdev.c:516:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# In file included from src/lockdev.c:134:0:
# src/lockdev.h:45:23: error: no include path in which to search for sys/types.h
# #include
# ^
# src/lockdev.h:52:1: error: unknown type name 'pid_t'
# pid_t dev_testlock (const char *devname);
# ^
# src/lockdev.c: At top level:
# src/lockdev.h:54:1: error: unknown type name 'pid_t'
# pid_t dev_lock (const char *devname);
# ^
# src/lockdev.c:564:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.h:56:1: error: unknown type name 'pid_t'
# pid_t dev_relock (const char * devname,
# ^
# src/lockdev.c: In function 'dev_lock':
# src/lockdev.h:57:5: error: unknown type name 'pid_t'
# const pid_t old_pid);
# ^
# src/lockdev.h:59:1: error: unknown type name 'pid_t'
# pid_t dev_unlock (const char * devname,
# ^
# src/lockdev.c:573:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.h:60:5: error: unknown type name 'pid_t'
# const pid_t pid);
# ^
# src/lockdev.c:141:1: error: unknown type name 'pid_t'
# static inline int _dl_filename_0 ( char * name, const pid_t pid);
# ^
# src/lockdev.c:574:2: error: unknown type name 'pid_t'
# pid_t pid, pid2, our_pid;
# ^
# src/lockdev.c:142:62: warning: 'struct stat' declared inside parameter list [enabled by default]
# static inline int _dl_filename_1 ( char * name, const struct stat * st);
# ^
# src/lockdev.c:142:62: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
# src/lockdev.c:575:2: error: unknown type name 'FILE'
# FILE *fd = 0;
# ^
# src/lockdev.c:149:1: error: unknown type name 'pid_t'
# static pid_t _dl_check_lock ( const char * lockname);
# ^
# src/lockdev.c:591:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:592:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c:242:4: error: #error "lock filename build missing"
# # error "lock filename build missing"
# ^
# src/lockdev.c:617:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf( fd, "%10d\n", (int)our_pid);
# ^
# src/lockdev.c:268:22: error: 'MAXPATHLEN' undeclared here (not in a function)
# static char sem_name[MAXPATHLEN+1];
# ^
# src/lockdev.c: In function '_dl_get_semaphore':
# src/lockdev.c:277:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf( sem_name, "%s/%s", LOCK_PATH, SEMAPHORE);
# ^
# src/lockdev.c:643:42: error: 'errno' undeclared (first use in this function)
# if (( link( lock0, lock1) == -1 ) && ( errno != EEXIST )) {
# ^
# src/lockdev.c:643:51: error: 'EEXIST' undeclared (first use in this function)
# if (( link( lock0, lock1) == -1 ) && ( errno != EEXIST )) {
# ^
# src/lockdev.c:280:33: error: 'S_IRWXU' undeclared (first use in this function)
# semaphore = creat( sem_name, (S_IRWXU | S_IRWXG | S_IRWXO));
# ^
# src/lockdev.c:280:33: note: each undeclared identifier is reported only once for each function it appears in
# src/lockdev.c:280:43: error: 'S_IRWXG' undeclared (first use in this function)
# semaphore = creat( sem_name, (S_IRWXU | S_IRWXG | S_IRWXO));
# ^
# src/lockdev.c:280:53: error: 'S_IRWXO' undeclared (first use in this function)
# semaphore = creat( sem_name, (S_IRWXU | S_IRWXG | S_IRWXO));
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:282:9: error: 'errno' undeclared (first use in this function)
# if ( errno == EAGAIN ) {
# ^
# src/lockdev.c:282:18: error: 'EAGAIN' undeclared (first use in this function)
# if ( errno == EAGAIN ) {
# ^
# src/lockdev.c:720:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c:308:28: error: 'LOCK_EX' undeclared (first use in this function)
# while ( flock( semaphore, LOCK_EX | LOCK_NB) < 0 ) {
# ^
# src/lockdev.c:722:6: error: unknown type name 'pid_t'
# const pid_t old_pid)
# ^
# src/lockdev.c: In function 'dev_relock':
# src/lockdev.c:308:38: error: 'LOCK_NB' undeclared (first use in this function)
# while ( flock( semaphore, LOCK_EX | LOCK_NB) < 0 ) {
# ^
# src/lockdev.c:309:17: error: 'EWOULDBLOCK' undeclared (first use in this function)
# if ( errno == EWOULDBLOCK ) {
# ^
# src/lockdev.c:728:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:729:2: error: unknown type name 'pid_t'
# pid_t pid, our_pid;
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:730:2: error: unknown type name 'FILE'
# FILE *fd = 0;
# ^
# src/lockdev.c:353:1: error: unknown type name 'pid_t'
# static pid_t pid_read = 0; /* read also by dev_testlock */
# ^
# src/lockdev.c:358:1: error: unknown type name 'pid_t'
# _dl_check_lock(const char *lockname)
# ^
# src/lockdev.c: In function '_dl_check_lock':
# src/lockdev.c:746:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:361:2: error: unknown type name 'FILE'
# FILE *fd = 0;
# ^
# src/lockdev.c:747:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c:368:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ( ! (fd=fopen( lockname, "r")) ) {
# ^
# src/lockdev.c:369:8: error: 'errno' undeclared (first use in this function)
# if ( errno == ENOENT ) {
# ^
# src/lockdev.c:369:17: error: 'ENOENT' undeclared (first use in this function)
# if ( errno == ENOENT ) {
# ^
# src/lockdev.c:787:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf( fd, "%10d\n", (int)our_pid);
# ^
# src/lockdev.c:377:6: warning: incompatible implicit declaration of built-in function 'fscanf' [enabled by default]
# j = fscanf( fd, "%d", &pid_read);
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:805:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c:384:49: error: 'EPERM' undeclared (first use in this function)
# if ( ( kill( pid_read, 0) == 0 ) || (errno == EPERM) ) {
# ^
# src/lockdev.c:807:6: error: unknown type name 'pid_t'
# const pid_t pid)
# ^
# src/lockdev.c: In function 'dev_unlock':
# src/lockdev.c:420:3: error: unknown type name 'pid_t'
# pid_t pid2 = 0;
# ^
# src/lockdev.c:426:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf( tpname, "%s/.%d", LOCK_PATH, (int)getpid());
# ^
# src/lockdev.c:814:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:815:2: error: unknown type name 'pid_t'
# pid_t wpid;
# ^
# src/lockdev.c:831:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c: In function '_dl_check_devname':
# src/lockdev.c:472:34: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strncmp(DEV_PATH, p, strlen(DEV_PATH)) == 0) {
# ^
# src/lockdev.c:832:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c:477:14: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
# while ( (m=strrchr( p, '/')) != 0 ) {
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:141:19: warning: '_dl_filename_0' used but never defined [enabled by default]
# static inline int _dl_filename_0 ( char * name, const pid_t pid);
# ^
# src/lockdev.c:142:19: warning: '_dl_filename_1' used but never defined [enabled by default]
# static inline int _dl_filename_1 ( char * name, const struct stat * st);
# ^
# src/lockdev.c:143:19: warning: '_dl_filename_2' used but never defined [enabled by default]
# static inline int _dl_filename_2 ( char * name, const char * dev);
# ^
# src/lockdev.c:483:5: warning: assignment makes pointer from integer without a cast [enabled by default]
# p = ttyname( 0); /* this terminal, if it exists */
# ^
# src/lockdev.c:486:14: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if ( ! (m = malloc( 1 + l)) )
# ^
# src/lockdev.c:488:9: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# return strcpy( m, p);
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:494:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c: In function 'dev_testlock':
# src/lockdev.c:500:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:501:2: error: unknown type name 'pid_t'
# pid_t pid;
# ^
# src/lockdev.c:515:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:516:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:564:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c: In function 'dev_lock':
# src/lockdev.c:573:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:574:2: error: unknown type name 'pid_t'
# pid_t pid, pid2, our_pid;
# ^
# src/lockdev.c:575:2: error: unknown type name 'FILE'
# FILE *fd = 0;
# ^
# src/lockdev.c:591:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:592:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c:617:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf( fd, "%10d\n", (int)our_pid);
# ^
# src/lockdev.c:643:42: error: 'errno' undeclared (first use in this function)
# if (( link( lock0, lock1) == -1 ) && ( errno != EEXIST )) {
# ^
# make: *** [Makefile:40: src/lockdev.z] Error 1
# make: *** Waiting for unfinished jobs....
# src/lockdev.c:643:51: error: 'EEXIST' undeclared (first use in this function)
# if (( link( lock0, lock1) == -1 ) && ( errno != EEXIST )) {
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:720:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c:722:6: error: unknown type name 'pid_t'
# const pid_t old_pid)
# ^
# src/lockdev.c: In function 'dev_relock':
# src/lockdev.c:728:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:729:2: error: unknown type name 'pid_t'
# pid_t pid, our_pid;
# ^
# src/lockdev.c:730:2: error: unknown type name 'FILE'
# FILE *fd = 0;
# ^
# src/lockdev.c:746:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:747:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c:787:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf( fd, "%10d\n", (int)our_pid);
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:805:1: error: unknown type name 'pid_t'
# pid_t
# ^
# src/lockdev.c:807:6: error: unknown type name 'pid_t'
# const pid_t pid)
# ^
# src/lockdev.c: In function 'dev_unlock':
# src/lockdev.c:814:14: error: storage size of 'statbuf' isn't known
# struct stat statbuf;
# ^
# src/lockdev.c:815:2: error: unknown type name 'pid_t'
# pid_t wpid;
# ^
# src/lockdev.c:831:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy( device, DEV_PATH);
# ^
# src/lockdev.c:832:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat( device, p); /* now device has a copy of the pathname */
# ^
# src/lockdev.c: At top level:
# src/lockdev.c:141:19: warning: '_dl_filename_0' used but never defined [enabled by default]
# static inline int _dl_filename_0 ( char * name, const pid_t pid);
# ^
# src/lockdev.c:142:19: warning: '_dl_filename_1' used but never defined [enabled by default]
# static inline int _dl_filename_1 ( char * name, const struct stat * st);
# ^
# src/lockdev.c:143:19: warning: '_dl_filename_2' used but never defined [enabled by default]
# static inline int _dl_filename_2 ( char * name, const char * dev);
# ^
# make: *** [: src/lockdev.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...