Build of rtmpdump with clang_glibc toolchain

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

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

SLOCLanguage
12,659 ansic
261 sh
166 makefile
13,086 total

The process tree of the build process is here.

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

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/sysroot --> /sysroot/sysroot
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/sbin --> /sysroot/sbin
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/etc --> /sysroot/etc
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/var --> /sysroot/var
# /toolchain_root/usr --> /sysroot/usr
# /toolchain_root/glibc-build --> /sysroot/glibc-build
# /toolchain_root/x86_64-pc-linux-gnu --> /sysroot/x86_64-pc-linux-gnu
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/usr/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: rtmpdump 1:2.4.r96.fa8646d-2 (Thu Apr 13 19:42:38 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting pkgver()...
# ==> Starting build()...
# make[1]: Entering directory '/tmp/rtmpdump/src/rtmpdump/librtmp'
# gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c -o rtmp.o rtmp.c
# rtmp.c:192:13: warning: comparison of constant 18446744073709551597 with expression of type 'uint32_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
# if (nSize > SIZE_MAX - RTMP_MAX_HEADER_SIZE)
# ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# rtmp.c:1905:1: warning: unused variable 'av_record' [-Wunused-const-variable]
# SAVC(record);
# ^
# rtmp.c:1559:35: note: expanded from macro 'SAVC'
# #define SAVC(x) static const AVal av_##x = AVC(#x)
# ^
# :87:1: note: expanded from here
# av_record
# ^
# rtmp.c:2907:19: warning: unused variable 'av_NetConnection_Connect_Rejected' [-Wunused-const-variable]
# static const AVal av_NetConnection_Connect_Rejected =
# ^
# 3 warnings generated.
# gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c -o log.o log.c
# gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c -o amf.o amf.c
# gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c -o hashswf.o hashswf.c
# gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -fPIC -c -o parseurl.o parseurl.c
# ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
# ar: creating librtmp.a
# gcc -shared -Wl,-soname,librtmp.so.1 -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz
# ln -sf librtmp.so.1 librtmp.so
# make[1]: Leaving directory '/tmp/rtmpdump/src/rtmpdump/librtmp'
# gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -c -o rtmpdump.o rtmpdump.c
# rtmpdump.c:335:23: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (prevTagSize < 0 || prevTagSize > size - 4 - 13)
# ~~~~~~~~~~~ ^ ~
# rtmpdump.c:398:14: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (*dSeek < 0)
# ~~~~~~ ^ ~
# 2 warnings generated.
# gcc -Wall -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz
# rtmpdump.o: In function `main':
# rtmpdump.c:(.text+0x3408): undefined reference to `CleanupSockets'
# clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)
# make: *** [Makefile:79: rtmpdump] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...