Build of sdparm with musl toolchain

The build took 00h 01m 12s and was SUCCESSFUL.

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

SLOCLanguage
20,072 ansic
5,329 sh
2,146 makefile
27,547 total

The process tree of the build process is here.

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

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: sdparm 1.10-1 (Wed Apr 5 00:53:11 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# checking for a BSD-compatible install... /usr/bin/install -c
# checking whether build environment is sane... yes
# checking for x86_64-unknown-linux-strip... no
# checking for strip... strip
# checking for a thread-safe mkdir -p... /usr/sbin/mkdir -p
# checking for gawk... gawk
# checking whether make sets $(MAKE)... yes
# checking whether make supports nested variables... yes
# checking whether to enable maintainer-specific portions of Makefiles... no
# checking for x86_64-unknown-linux-gcc... clang
# checking whether the C compiler works... yes
# checking for C compiler default output file name... a.out
# checking for suffix of executables...
# checking whether we are cross compiling... yes
# checking for suffix of object files... o
# checking whether we are using the GNU C compiler... yes
# checking whether clang accepts -g... yes
# checking for clang option to accept ISO C89... none needed
# checking whether clang understands -c and -o together... yes
# checking for style of include used by make... GNU
# checking dependency style of clang... gcc3
# checking how to run the C preprocessor... clang -E
# checking for grep that handles long lines and -e... /usr/sbin/grep
# checking for egrep... /usr/sbin/grep -E
# checking for ANSI C header files... yes
# checking for linux/types.h... no
# checking for linux/bsg.h... no
# checking for linux/kdev_t.h... no
# checking for getopt_long... yes
# checking build system type... x86_64-unknown-linux-gnu
# checking host system type... x86_64-unknown-linux-gnu
# checking for sg_ll_inquiry in -lsgutils2... no
# checking that generated files are newer than configure... done
# configure: creating ./config.status
# config.status: creating Makefile
# config.status: creating src/Makefile
# config.status: creating doc/Makefile
# config.status: creating scripts/Makefile
# config.status: creating config.h
# config.status: executing depfiles commands
# make all-recursive
# make[1]: Entering directory '/tmp/sdparm/src/sdparm-1.10'
# Making all in src
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10/src'
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sdparm.o -MD -MP -MF .deps/sdparm.Tpo -c -o sdparm.o sdparm.c
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sdparm_data.o -MD -MP -MF .deps/sdparm_data.Tpo -c -o sdparm_data.o sdparm_data.c
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sdparm_data_vendor.o -MD -MP -MF .deps/sdparm_data_vendor.Tpo -c -o sdparm_data_vendor.o sdparm_data_vendor.c
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sdparm_access.o -MD -MP -MF .deps/sdparm_access.Tpo -c -o sdparm_access.o sdparm_access.c
# mv -f .deps/sdparm_access.Tpo .deps/sdparm_access.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sdparm_vpd.o -MD -MP -MF .deps/sdparm_vpd.Tpo -c -o sdparm_vpd.o sdparm_vpd.c
# mv -f .deps/sdparm_data_vendor.Tpo .deps/sdparm_data_vendor.Po
# mv -f .deps/sdparm_data.Tpo .deps/sdparm_data.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sdparm_cmd.o -MD -MP -MF .deps/sdparm_cmd.Tpo -c -o sdparm_cmd.o sdparm_cmd.c
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_lib.o -MD -MP -MF .deps/sg_lib.Tpo -c -o sg_lib.o `test -f '../lib/sg_lib.c' || echo './'`../lib/sg_lib.c
# mv -f .deps/sdparm_cmd.Tpo .deps/sdparm_cmd.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_lib_data.o -MD -MP -MF .deps/sg_lib_data.Tpo -c -o sg_lib_data.o `test -f '../lib/sg_lib_data.c' || echo './'`../lib/sg_lib_data.c
# mv -f .deps/sdparm.Tpo .deps/sdparm.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_cmds_basic.o -MD -MP -MF .deps/sg_cmds_basic.Tpo -c -o sg_cmds_basic.o `test -f '../lib/sg_cmds_basic.c' || echo './'`../lib/sg_cmds_basic.c
# mv -f .deps/sg_lib_data.Tpo .deps/sg_lib_data.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_cmds_basic2.o -MD -MP -MF .deps/sg_cmds_basic2.Tpo -c -o sg_cmds_basic2.o `test -f '../lib/sg_cmds_basic2.c' || echo './'`../lib/sg_cmds_basic2.c
# mv -f .deps/sdparm_vpd.Tpo .deps/sdparm_vpd.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_cmds_mmc.o -MD -MP -MF .deps/sg_cmds_mmc.Tpo -c -o sg_cmds_mmc.o `test -f '../lib/sg_cmds_mmc.c' || echo './'`../lib/sg_cmds_mmc.c
# mv -f .deps/sg_cmds_basic.Tpo .deps/sg_cmds_basic.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_pt_common.o -MD -MP -MF .deps/sg_pt_common.Tpo -c -o sg_pt_common.o `test -f '../lib/sg_pt_common.c' || echo './'`../lib/sg_pt_common.c
# mv -f .deps/sg_lib.Tpo .deps/sg_lib.Po
# clang -DHAVE_CONFIG_H -I. -I.. -I../include -iquote ../include -Wall -W -MT sg_pt_linux.o -MD -MP -MF .deps/sg_pt_linux.Tpo -c -o sg_pt_linux.o `test -f '../lib/sg_pt_linux.c' || echo './'`../lib/sg_pt_linux.c
# mv -f .deps/sg_cmds_basic2.Tpo .deps/sg_cmds_basic2.Po
# mv -f .deps/sg_cmds_mmc.Tpo .deps/sg_cmds_mmc.Po
# mv -f .deps/sg_pt_common.Tpo .deps/sg_pt_common.Po
# mv -f .deps/sg_pt_linux.Tpo .deps/sg_pt_linux.Po
# clang -iquote ../include -Wall -W -o sdparm sdparm.o sdparm_data.o sdparm_data_vendor.o sdparm_access.o sdparm_vpd.o sdparm_cmd.o sg_lib.o sg_lib_data.o sg_cmds_basic.o sg_cmds_basic2.o sg_cmds_mmc.o sg_pt_common.o sg_pt_linux.o
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/src'
# Making all in doc
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10/doc'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/doc'
# Making all in scripts
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10/scripts'
# make[2]: Nothing to be done for 'all'.
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/scripts'
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10'
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10'
# make[1]: Leaving directory '/tmp/sdparm/src/sdparm-1.10'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# Making install in src
# make[1]: Entering directory '/tmp/sdparm/src/sdparm-1.10/src'
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10/src'
# make[2]: Nothing to be done for 'install-data-am'.
# /usr/sbin/mkdir -p '/tmp/sdparm/pkg/sdparm/usr/bin'
# /usr/bin/install -c sdparm '/tmp/sdparm/pkg/sdparm/usr/bin'
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/src'
# make[1]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/src'
# Making install in doc
# make[1]: Entering directory '/tmp/sdparm/src/sdparm-1.10/doc'
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10/doc'
# make[2]: Nothing to be done for 'install-exec-am'.
# /usr/sbin/mkdir -p '/tmp/sdparm/pkg/sdparm/usr/share/man/man8'
# /usr/bin/install -c -m 644 sdparm.8 sas_disk_blink.8 scsi_ch_swp.8 '/tmp/sdparm/pkg/sdparm/usr/share/man/man8'
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/doc'
# make[1]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/doc'
# Making install in scripts
# make[1]: Entering directory '/tmp/sdparm/src/sdparm-1.10/scripts'
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10/scripts'
# make[2]: Nothing to be done for 'install-data-am'.
# /usr/sbin/mkdir -p '/tmp/sdparm/pkg/sdparm/usr/bin'
# /usr/bin/install -c sas_disk_blink scsi_ch_swp '/tmp/sdparm/pkg/sdparm/usr/bin'
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/scripts'
# make[1]: Leaving directory '/tmp/sdparm/src/sdparm-1.10/scripts'
# make[1]: Entering directory '/tmp/sdparm/src/sdparm-1.10'
# make[2]: Entering directory '/tmp/sdparm/src/sdparm-1.10'
# make[2]: Nothing to be done for 'install-exec-am'.
# make[2]: Nothing to be done for 'install-data-am'.
# make[2]: Leaving directory '/tmp/sdparm/src/sdparm-1.10'
# make[1]: Leaving directory '/tmp/sdparm/src/sdparm-1.10'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "sdparm"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: sdparm 1.10-1 (Wed Apr 5 00:53:19 UTC 2017)

CMD: pacman --query --file sdparm-1.10-1-x86_64.pkg.tar.xz
# sdparm 1.10-1

Creating hybrid package for 'sdparm'

Trying to find vanilla package 'sdparm'...

CMD: pacman --query --file /mirror/sdparm-1.10-1.pkg.tar.xz
# sdparm 1.10-1

Package file has the following structure:
# /.PKGINFO
# /.BUILDINFO
# /.MTREE
# /usr/bin/sas_disk_blink
# /usr/bin/scsi_ch_swp
# /usr/bin/sdparm
# /usr/share/man/man8/scsi_ch_swp.8.gz
# /usr/share/man/man8/sas_disk_blink.8.gz
# /usr/share/man/man8/sdparm.8.gz
# /usr/share/licenses/sdparm/LICENSE

Generating .MTREE

CMD: bsdtar -czf .MTREE --format=mtree --options=!all,use-set,type,uid,mode,time,size,md5,sha256,link .PKGINFO .BUILDINFO usr

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO .BUILDINFO usr .MTREE

CMD: xz -c -z

Successfully ran bsdtar -cf - .PKGINFO .BUILDINFO usr .MTREE | xz -c -z

CMD: bsdtar -tqf sdparm.pkg.tar.xz .PKGINFO
# .PKGINFO

Created package at path /var/cache/pacman/pkg/sdparm.pkg.tar.xz

Attempting to access local repository, attempt 1

CMD: repo-add /var/cache/pacman/pkg/tuscan.db.tar /var/cache/pacman/pkg/sdparm.pkg.tar.xz
# ==> Extracting database to a temporary location...
# ==> Extracting database to a temporary location...
# ==> Adding package '/var/cache/pacman/pkg/sdparm.pkg.tar.xz'
# -> Computing checksums...
# -> Creating 'desc' db entry...
# -> Creating 'files' db entry...
# ==> Creating updated database file '/var/cache/pacman/pkg/tuscan.db.tar'

Printing config logfiles

CMD: config logfiles '/tmp/sdparm/src/sdparm-1.10/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# It was created by sdparm configure 1.10, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# $ ./configure --host=x86_64-unknown-linux --prefix=/usr
#
# ## --------- ##
# ## Platform. ##
# ## --------- ##
#
# hostname = a6aaab1a4687
# uname -m = x86_64
# uname -r = 4.10.6-1-ARCH
# uname -s = Linux
# uname -v = #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017
#
# /usr/bin/uname -p = unknown
# /bin/uname -X = unknown
#
# /bin/arch = unknown
# /usr/bin/arch -k = unknown
# /usr/convex/getsysinfo = unknown
# /usr/bin/hostinfo = unknown
# /bin/machine = unknown
# /usr/bin/oslevel = unknown
# /bin/universe = unknown
#
# PATH: /sysroot/bin
# PATH: /usr/local/sbin
# PATH: /usr/local/bin
# PATH: /usr/sbin
# PATH: /usr/bin
# PATH: /sbin
# PATH: /bin
#
#
# ## ----------- ##
# ## Core tests. ##
# ## ----------- ##
#
# configure:2105: checking for a BSD-compatible install
# configure:2173: result: /usr/bin/install -c
# configure:2184: checking whether build environment is sane
# configure:2239: result: yes
# configure:2298: checking for x86_64-unknown-linux-strip
# configure:2328: result: no
# configure:2338: checking for strip
# configure:2354: found /sysroot/bin/strip
# configure:2365: result: strip
# configure:2390: checking for a thread-safe mkdir -p
# configure:2429: result: /usr/sbin/mkdir -p
# configure:2436: checking for gawk
# configure:2452: found /usr/sbin/gawk
# configure:2463: result: gawk
# configure:2474: checking whether make sets $(MAKE)
# configure:2496: result: yes
# configure:2525: checking whether make supports nested variables
# configure:2542: result: yes
# configure:2669: checking whether to enable maintainer-specific portions of Makefiles
# configure:2678: result: no
# configure:2702: checking for x86_64-unknown-linux-gcc
# configure:2729: result: clang
# configure:2998: checking for C compiler version
# configure:3007: clang --version >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# configure:3018: $? = 0
# configure:3007: clang -v >&5
# clang version 3.8.1
# Target: x86_64-unknown-linux-gnu
# Thread model: posix
# InstalledDir: /
# Found candidate GCC installation: //../lib/gcc/x86_64-pc-linux-gnu/6.1.1
# Found candidate GCC installation: //../lib64/gcc/x86_64-pc-linux-gnu/6.1.1
# Selected GCC installation: //../lib64/gcc/x86_64-pc-linux-gnu/6.1.1
# Candidate multilib: .;@m64
# Selected multilib: .;@m64
# configure:3018: $? = 0
# configure:3007: clang -V >&5
# clang-3.8: error: argument to '-V' is missing (expected 1 value)
# clang-3.8: error: no input files
# configure:3018: $? = 1
# configure:3007: clang -qversion >&5
# clang-3.8: error: unknown argument: '-qversion'
# clang-3.8: error: no input files
# configure:3018: $? = 1
# configure:3038: checking whether the C compiler works
# configure:3060: clang conftest.c >&5
# configure:3064: $? = 0
# configure:3112: result: yes
# configure:3115: checking for C compiler default output file name
# configure:3117: result: a.out
# configure:3123: checking for suffix of executables
# configure:3130: clang -o conftest conftest.c >&5
# configure:3134: $? = 0
# configure:3156: result:
# configure:3178: checking whether we are cross compiling
# configure:3186: clang -o conftest conftest.c >&5
# configure:3190: $? = 0
# configure:3197: ./conftest
# ./conftest: error while loading shared libraries: /usr/lib/libc.so: invalid ELF header
# configure:3201: $? = 127
# configure:3216: result: yes
# configure:3221: checking for suffix of object files
# configure:3243: clang -c conftest.c >&5
# configure:3247: $? = 0
# configure:3268: result: o
# configure:3272: checking whether we are using the GNU C compiler
# configure:3291: clang -c conftest.c >&5
# configure:3291: $? = 0
# configure:3300: result: yes
# configure:3309: checking whether clang accepts -g
# configure:3329: clang -c -g conftest.c >&5
# configure:3329: $? = 0
# configure:3370: result: yes
# configure:3387: checking for clang option to accept ISO C89
# configure:3450: clang -c conftest.c >&5
# configure:3450: $? = 0
# configure:3463: result: none needed
# configure:3488: checking whether clang understands -c and -o together
# configure:3510: clang -c conftest.c -o conftest2.o
# configure:3513: $? = 0
# configure:3510: clang -c conftest.c -o conftest2.o
# configure:3513: $? = 0
# configure:3525: result: yes
# configure:3553: checking for style of include used by make
# configure:3581: result: GNU
# configure:3607: checking dependency style of clang
# configure:3718: result: gcc3
# configure:3743: checking how to run the C preprocessor
# configure:3774: clang -E conftest.c
# configure:3774: $? = 0
# configure:3788: clang -E conftest.c
# conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3788: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "sdparm"
# | #define PACKAGE_TARNAME "sdparm"
# | #define PACKAGE_VERSION "1.10"
# | #define PACKAGE_STRING "sdparm 1.10"
# | #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# | #define PACKAGE_URL ""
# | #define PACKAGE "sdparm"
# | #define VERSION "1.10"
# | /* end confdefs.h. */
# | #include
# configure:3813: result: clang -E
# configure:3833: clang -E conftest.c
# configure:3833: $? = 0
# configure:3847: clang -E conftest.c
# conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
# #include
# ^
# 1 error generated.
# configure:3847: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "sdparm"
# | #define PACKAGE_TARNAME "sdparm"
# | #define PACKAGE_VERSION "1.10"
# | #define PACKAGE_STRING "sdparm 1.10"
# | #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# | #define PACKAGE_URL ""
# | #define PACKAGE "sdparm"
# | #define VERSION "1.10"
# | /* end confdefs.h. */
# | #include
# configure:3876: checking for grep that handles long lines and -e
# configure:3934: result: /usr/sbin/grep
# configure:3939: checking for egrep
# configure:4001: result: /usr/sbin/grep -E
# configure:4006: checking for ANSI C header files
# configure:4026: clang -c conftest.c >&5
# configure:4026: $? = 0
# configure:4110: result: yes
# configure:4121: checking for linux/types.h
# configure:4121: clang -c conftest.c >&5
# conftest.c:17:10: fatal error: 'linux/types.h' file not found
# #include
# ^
# 1 error generated.
# configure:4121: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "sdparm"
# | #define PACKAGE_TARNAME "sdparm"
# | #define PACKAGE_VERSION "1.10"
# | #define PACKAGE_STRING "sdparm 1.10"
# | #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# | #define PACKAGE_URL ""
# | #define PACKAGE "sdparm"
# | #define VERSION "1.10"
# | #define STDC_HEADERS 1
# | /* end confdefs.h. */
# | #ifdef HAVE_LINUX_TYPES_H
# | # include
# | #endif
# |
# |
# | #include
# configure:4121: result: no
# configure:4121: checking for linux/bsg.h
# configure:4121: clang -c conftest.c >&5
# conftest.c:17:10: fatal error: 'linux/bsg.h' file not found
# #include
# ^
# 1 error generated.
# configure:4121: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "sdparm"
# | #define PACKAGE_TARNAME "sdparm"
# | #define PACKAGE_VERSION "1.10"
# | #define PACKAGE_STRING "sdparm 1.10"
# | #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# | #define PACKAGE_URL ""
# | #define PACKAGE "sdparm"
# | #define VERSION "1.10"
# | #define STDC_HEADERS 1
# | /* end confdefs.h. */
# | #ifdef HAVE_LINUX_TYPES_H
# | # include
# | #endif
# |
# |
# | #include
# configure:4121: result: no
# configure:4121: checking for linux/kdev_t.h
# configure:4121: clang -c conftest.c >&5
# conftest.c:17:10: fatal error: 'linux/kdev_t.h' file not found
# #include
# ^
# 1 error generated.
# configure:4121: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "sdparm"
# | #define PACKAGE_TARNAME "sdparm"
# | #define PACKAGE_VERSION "1.10"
# | #define PACKAGE_STRING "sdparm 1.10"
# | #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# | #define PACKAGE_URL ""
# | #define PACKAGE "sdparm"
# | #define VERSION "1.10"
# | #define STDC_HEADERS 1
# | /* end confdefs.h. */
# | #ifdef HAVE_LINUX_TYPES_H
# | # include
# | #endif
# |
# |
# | #include
# configure:4121: result: no
# configure:4138: checking for getopt_long
# configure:4138: clang -o conftest conftest.c >&5
# configure:4138: $? = 0
# configure:4138: result: yes
# configure:4155: checking build system type
# configure:4169: result: x86_64-unknown-linux-gnu
# configure:4189: checking host system type
# configure:4202: result: x86_64-unknown-linux-gnu
# configure:4407: checking for sg_ll_inquiry in -lsgutils2
# configure:4432: clang -o conftest conftest.c -lsgutils2 >&5
# /sysroot/bin/ld: error: cannot find -lsgutils2
# /tmp/conftest-2f6df8.o:conftest.c:function main: error: undefined reference to 'sg_ll_inquiry'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# configure:4432: $? = 1
# configure: failed program was:
# | /* confdefs.h */
# | #define PACKAGE_NAME "sdparm"
# | #define PACKAGE_TARNAME "sdparm"
# | #define PACKAGE_VERSION "1.10"
# | #define PACKAGE_STRING "sdparm 1.10"
# | #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# | #define PACKAGE_URL ""
# | #define PACKAGE "sdparm"
# | #define VERSION "1.10"
# | #define STDC_HEADERS 1
# | #define HAVE_GETOPT_LONG 1
# | #define SG_LIB_BUILD_HOST "x86_64-unknown-linux-gnu"
# | #define SG_LIB_LINUX 1
# | /* end confdefs.h. */
# |
# | /* Override any GCC internal prototype to avoid an error.
# | Use char because int might match the return type of a GCC
# | builtin and then its argument prototype would still apply. */
# | #ifdef __cplusplus
# | extern "C"
# | #endif
# | char sg_ll_inquiry ();
# | int
# | main ()
# | {
# | return sg_ll_inquiry ();
# | ;
# | return 0;
# | }
# configure:4441: result: no
# configure:4584: checking that generated files are newer than configure
# configure:4590: result: done
# configure:4645: creating ./config.status
#
# ## ---------------------- ##
# ## Running config.status. ##
# ## ---------------------- ##
#
# This file was extended by sdparm config.status 1.10, which was
# generated by GNU Autoconf 2.69. Invocation command line was
#
# CONFIG_FILES =
# CONFIG_HEADERS =
# CONFIG_LINKS =
# CONFIG_COMMANDS =
# $ ./config.status
#
# on a6aaab1a4687
#
# config.status:880: creating Makefile
# config.status:880: creating src/Makefile
# config.status:880: creating doc/Makefile
# config.status:880: creating scripts/Makefile
# config.status:880: creating config.h
# config.status:1109: executing depfiles commands
#
# ## ---------------- ##
# ## Cache variables. ##
# ## ---------------- ##
#
# ac_cv_build=x86_64-unknown-linux-gnu
# ac_cv_c_compiler_gnu=yes
# ac_cv_env_CC_set=set
# ac_cv_env_CC_value=clang
# ac_cv_env_CFLAGS_set=set
# ac_cv_env_CFLAGS_value=
# ac_cv_env_CPPFLAGS_set=set
# ac_cv_env_CPPFLAGS_value=
# ac_cv_env_CPP_set=
# ac_cv_env_CPP_value=
# ac_cv_env_LDFLAGS_set=set
# ac_cv_env_LDFLAGS_value=
# ac_cv_env_LIBS_set=
# ac_cv_env_LIBS_value=
# ac_cv_env_build_alias_set=
# ac_cv_env_build_alias_value=
# ac_cv_env_host_alias_set=set
# ac_cv_env_host_alias_value=x86_64-unknown-linux
# ac_cv_env_target_alias_set=
# ac_cv_env_target_alias_value=
# ac_cv_func_getopt_long=yes
# ac_cv_header_linux_bsg_h=no
# ac_cv_header_linux_kdev_t_h=no
# ac_cv_header_linux_types_h=no
# ac_cv_header_stdc=yes
# ac_cv_host=x86_64-unknown-linux-gnu
# ac_cv_lib_sgutils2_sg_ll_inquiry=no
# ac_cv_objext=o
# ac_cv_path_EGREP='/usr/sbin/grep -E'
# ac_cv_path_GREP=/usr/sbin/grep
# ac_cv_path_install='/usr/bin/install -c'
# ac_cv_path_mkdir=/usr/sbin/mkdir
# ac_cv_prog_AWK=gawk
# ac_cv_prog_CC=clang
# ac_cv_prog_CPP='clang -E'
# ac_cv_prog_ac_ct_STRIP=strip
# ac_cv_prog_cc_c89=
# ac_cv_prog_cc_g=yes
# ac_cv_prog_make_make_set=yes
# am_cv_CC_dependencies_compiler_type=gcc3
# am_cv_make_support_nested_variables=yes
# am_cv_prog_cc_c_o=yes
#
# ## ----------------- ##
# ## Output variables. ##
# ## ----------------- ##
#
# ACLOCAL='${SHELL} /tmp/sdparm/src/sdparm-1.10/missing aclocal-1.15'
# AMDEPBACKSLASH='\'
# AMDEP_FALSE='#'
# AMDEP_TRUE=''
# AMTAR='$${TAR-tar}'
# AM_BACKSLASH='\'
# AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
# AM_DEFAULT_VERBOSITY='1'
# AM_V='$(V)'
# AUTOCONF='${SHELL} /tmp/sdparm/src/sdparm-1.10/missing autoconf'
# AUTOHEADER='${SHELL} /tmp/sdparm/src/sdparm-1.10/missing autoheader'
# AUTOMAKE='${SHELL} /tmp/sdparm/src/sdparm-1.10/missing automake-1.15'
# AWK='gawk'
# CC='clang'
# CCDEPMODE='depmode=gcc3'
# CFLAGS=''
# CPP='clang -E'
# CPPFLAGS=''
# CYGPATH_W='echo'
# DEFS='-DHAVE_CONFIG_H'
# DEPDIR='.deps'
# ECHO_C=''
# ECHO_N='-n'
# ECHO_T=''
# EGREP='/usr/sbin/grep -E'
# EXEEXT=''
# GETOPT_O_FILES=''
# GREP='/usr/sbin/grep'
# HAVE_SGUTILS_FALSE=''
# HAVE_SGUTILS_TRUE='#'
# INSTALL_DATA='${INSTALL} -m 644'
# INSTALL_PROGRAM='${INSTALL}'
# INSTALL_SCRIPT='${INSTALL}'
# INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
# LDFLAGS=''
# LIBOBJS=''
# LIBS=''
# LTLIBOBJS=''
# MAINT='#'
# MAINTAINER_MODE_FALSE=''
# MAINTAINER_MODE_TRUE='#'
# MAKEINFO='${SHELL} /tmp/sdparm/src/sdparm-1.10/missing makeinfo'
# MKDIR_P='/usr/sbin/mkdir -p'
# OBJEXT='o'
# OS_FREEBSD_FALSE=''
# OS_FREEBSD_TRUE='#'
# OS_LINUX_FALSE='#'
# OS_LINUX_TRUE=''
# OS_OSF_FALSE=''
# OS_OSF_TRUE='#'
# OS_SOLARIS_FALSE=''
# OS_SOLARIS_TRUE='#'
# OS_WIN32_CYGWIN_FALSE=''
# OS_WIN32_CYGWIN_TRUE='#'
# OS_WIN32_MINGW_FALSE=''
# OS_WIN32_MINGW_TRUE='#'
# PACKAGE='sdparm'
# PACKAGE_BUGREPORT='dgilbert@interlog.com'
# PACKAGE_NAME='sdparm'
# PACKAGE_STRING='sdparm 1.10'
# PACKAGE_TARNAME='sdparm'
# PACKAGE_URL=''
# PACKAGE_VERSION='1.10'
# PATH_SEPARATOR=':'
# SET_MAKE=''
# SGUTILS_LIBS=''
# SHELL='/bin/sh'
# STRIP='strip'
# VERSION='1.10'
# ac_ct_CC=''
# am__EXEEXT_FALSE=''
# am__EXEEXT_TRUE='#'
# am__fastdepCC_FALSE='#'
# am__fastdepCC_TRUE=''
# am__include='include'
# am__isrc=''
# am__leading_dot='.'
# am__nodep='_no'
# am__quote=''
# am__tar='$${TAR-tar} chof - "$$tardir"'
# am__untar='$${TAR-tar} xf -'
# bindir='${exec_prefix}/bin'
# build='x86_64-unknown-linux-gnu'
# build_alias=''
# build_cpu='x86_64'
# build_os='linux-gnu'
# build_vendor='unknown'
# datadir='${datarootdir}'
# datarootdir='${prefix}/share'
# docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
# dvidir='${docdir}'
# exec_prefix='${prefix}'
# host='x86_64-unknown-linux-gnu'
# host_alias='x86_64-unknown-linux'
# host_cpu='x86_64'
# host_os='linux-gnu'
# host_vendor='unknown'
# htmldir='${docdir}'
# includedir='${prefix}/include'
# infodir='${datarootdir}/info'
# install_sh='${SHELL} /tmp/sdparm/src/sdparm-1.10/install-sh'
# libdir='${exec_prefix}/lib'
# libexecdir='${exec_prefix}/libexec'
# localedir='${datarootdir}/locale'
# localstatedir='${prefix}/var'
# mandir='${datarootdir}/man'
# mkdir_p='$(MKDIR_P)'
# oldincludedir='/usr/include'
# os_cflags=''
# os_deps='sg_pt_linux.o'
# os_libs=''
# pdfdir='${docdir}'
# prefix='/usr'
# program_transform_name='s,x,x,'
# psdir='${docdir}'
# sbindir='${exec_prefix}/sbin'
# sharedstatedir='${prefix}/com'
# sysconfdir='${prefix}/etc'
# target_alias=''
#
# ## ----------- ##
# ## confdefs.h. ##
# ## ----------- ##
#
# /* confdefs.h */
# #define PACKAGE_NAME "sdparm"
# #define PACKAGE_TARNAME "sdparm"
# #define PACKAGE_VERSION "1.10"
# #define PACKAGE_STRING "sdparm 1.10"
# #define PACKAGE_BUGREPORT "dgilbert@interlog.com"
# #define PACKAGE_URL ""
# #define PACKAGE "sdparm"
# #define VERSION "1.10"
# #define STDC_HEADERS 1
# #define HAVE_GETOPT_LONG 1
# #define SG_LIB_BUILD_HOST "x86_64-unknown-linux-gnu"
# #define SG_LIB_LINUX 1
# #define SG_SCSI_STRINGS 1
#
# configure: exit 0