D: [iurt_root_command] chroot warning: Macro expanded in comment on line 20: %{url_subver}/%%{name}-%%{version}.tar.bz2 Installing /home/pterjan/rpmbuild/SRPMS/ptlib-2.10.11-4.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jz9Pt1 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf ptlib-2.10.11 + /usr/bin/tar -xof - + /usr/bin/xz -dc /home/pterjan/rpmbuild/SOURCES/ptlib-2.10.11.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd ptlib-2.10.11 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/ptlib-2.10.10-mga-bison-parameter.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/ptlib-2.10.11-openssl-1.1.0.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/ptlib-2.10.11-gcc6.patch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/ptlib-2.10.11-gcc7.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.o7yPz4 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd ptlib-2.10.11 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --disable-static --enable-v4l2 --enable-plugins --enable-oss --enable-avc --enable-dc checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for gcc... gcc 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... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes configure: PTLib version is 2.10.11 checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for swab... yes configure: OSTYPE set to linux configure: OSRELEASE set to "4.9.0-5-amd64" configure: MACHTYPE set to x86_64 configure: gcc version is 7.3.0 checking checking if pragma implementation should be used... no checking checking if precompiled headers available... no checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no configure: Default extension for C++ files is cpp checking if compiler accepts -felide-constructors... yes checking if linker accepts -Wreorder... yes checking if debug build accepts -g3 -ggdb -O0... yes checking if compiler uses RTTI by default... yes checking size of int... 4 checking for long double with more range or precision than double... yes checking for flex... /usr/bin/flex checking for ar... ar checking for bison... /usr/bin/bison checking if readdir_r has 2 parms... no checking if readdir_r has 3 parms... yes configure: PTRACE and all trace logging included configure: Using ANSI C++ bool for PBoolean: (PFalse=false PTrue=true) checking for recvmsg... yes checking for IPV6_ADD_MEMBERSHIP... yes checking for NetLink support... yes checking if using STL streams... yes checking if atomic integer available... yes checking if __exchange_and_add is in __gnu_cxx namespace... yes checking if Unix semaphores are available... yes checking for pthread_create in -lpthread... yes checking for clock_gettime in -lrt... yes checking if pthread_mutex_timedlock is available... yes checking for sem_timedwait in -lpthread... yes checking if sem_timedwait is compilable... yes checking if recursive mutexes are available... PTHREAD_MUTEX_RECURSIVE_NP checking if setpgrp takes no parameters... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking for regcomp... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking if dlopen is available... yes checking for dlopen in -ldl... yes checking enable plugin support... yes checking where plugins are being installed... /usr/lib64/ptlib-2.10.11 checking enable samples build... no checking how to run the C preprocessor... gcc -E checking for res_ninit... no checking for res_ninit in -lresolv... yes checking for sasl_version in -lsasl2... yes checking for sasl_client_out in -lsasl... no checking if works... no checking if works... yes configure: SUN mlib disabled checking ldap.h usability... yes checking ldap.h presence... yes checking for ldap.h... yes checking for ldap_open in -lldap... yes checking for OPENSSL... yes checking openssl/aes.h usability... yes checking openssl/aes.h presence... yes checking for openssl/aes.h... yes checking for const arg to d2i_AutoPrivateKey... yes checking for d2i_DHparams_bio variants... new checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking for XML_ParserCreate in -lexpat... yes checking lua.h usability... no checking lua.h presence... no checking for lua.h... no configure: IPV6 disabled checking for inet_ntop... yes checking enable config file support... yes checking enable URL support... yes checking enable HTTP support... yes checking enable HTTP forms support... yes checking enable HTTP server support... yes checking enable Jabber support... yes checking enable VXML support... yes checking enable XMLRPC support... yes checking enable SOAP support... yes checking enable Text-To-Speech server support... yes checking enable ASN decoding/encoding support... yes checking enable STUN support... yes checking enable pipechannel support... yes checking enable DTMF protocol support... yes checking enable SOCKS protocol support... yes checking enable FTP protocol support... yes checking enable SNMP protocol support... yes checking enable TELNET protocol support... yes checking enable remote connection support... yes checking enable serial port support... yes checking enable POP3/SMTP support... yes checking enable audio support... yes checking enable WAVFILE support... yes checking enable QOS support... yes checking enable video device support... yes checking enable video file support... yes checking enable FFMpeg video file support... yes checking enable application sharing support... no checking enable shared memory video devices... yes checking for SDL... yes checking enable video for windows capture... no checking sql.h usability... yes checking sql.h presence... yes checking for sql.h... yes checking for SQLAllocStmt in -lodbc... yes configure: ODBC support enabled checking enable C++ exceptions... no checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating make/ptbuildopts.mak config.status: creating make/ptlib-config config.status: creating Makefile config.status: creating ptlib_cfg.dxy config.status: creating ptlib.pc config.status: creating include/ptbuildopts.h === configuring in plugins (/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/plugins) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr' '--build=x86_64-mageia-linux-gnu' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--x-includes=/usr/include' '--x-libraries=/usr/lib64' '--disable-static' '--enable-v4l2' '--enable-plugins' '--enable-oss' '--enable-avc' '--enable-dc' 'build_alias=x86_64-mageia-linux-gnu' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' --cache-file=/dev/null --srcdir=. checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking alsa/asoundlib.h usability... yes checking alsa/asoundlib.h presence... yes checking for alsa/asoundlib.h... yes checking for ALSA sound support... yes checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking for OSS sound support... yes checking pulse/simple.h usability... yes checking pulse/simple.h presence... yes checking for pulse/simple.h... yes checking for Pulse sound support... yes checking for linux/videodev2.h... yes checking for V4L2 video support... yes checking libv4l2.h usability... no checking libv4l2.h presence... no checking for libv4l2.h... no checking for libv4l2 support... no checking machine/ioctl_meteor.h usability... no checking machine/ioctl_meteor.h presence... no checking for machine/ioctl_meteor.h... no checking i386/ioctl_meteor.h usability... no checking i386/ioctl_meteor.h presence... no checking for i386/ioctl_meteor.h... no checking dev/ic/bt8xx.h usability... no checking dev/ic/bt8xx.h presence... no checking for dev/ic/bt8xx.h... no checking for BSD video support... no checking libavc1394/avc1394.h usability... yes checking libavc1394/avc1394.h presence... yes checking for libavc1394/avc1394.h... yes checking libdv/dv.h usability... yes checking libdv/dv.h presence... yes checking for libdv/dv.h... yes checking libraw1394/raw1394.h usability... yes checking libraw1394/raw1394.h presence... yes checking for libraw1394/raw1394.h... yes checking for IEEE1394/AVC video support... yes checking libdc1394/dc1394_control.h usability... yes checking libdc1394/dc1394_control.h presence... yes checking for libdc1394/dc1394_control.h... yes checking for libraw1394/raw1394.h... (cached) yes checking for IEEE1394/DC video support... yes checking if dc1394_dma_setup_capture has 12 parms... no configure: creating ./config.status config.status: creating Makefile config.status: creating vidinput_v4l2/Makefile config.status: creating vidinput_dc/Makefile + /usr/bin/make -O -j8 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' /usr/bin/make DEBUG= P_SHAREDLIB=1 default_target /usr/bin/make DEBUG= P_SHAREDLIB=1 default_target make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptclib/podbc.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptclib/podbc.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/podbc.cxx:35: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from /usr/include/sql.h:19:0, from /usr/include/odbcinst.h:22, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptclib/podbc.h:100, from ptclib/podbc.cxx:39: /usr/include/sqltypes.h:105:26: error: conflicting declaration 'typedef short unsigned int WCHAR' typedef unsigned short WCHAR; ^~~~~ In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:44:0, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/podbc.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/unix/ptlib/contain.h:92:33: note: previous declaration as 'typedef wchar_t WCHAR' typedef wchar_t WCHAR; ^~~~~ In file included from /usr/include/sql.h:19:0, from /usr/include/odbcinst.h:22, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptclib/podbc.h:100, from ptclib/podbc.cxx:39: /usr/include/sqltypes.h:268:33: error: conflicting declaration 'typedef unsigned int UINT' typedef unsigned int UINT; ^~~~ In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:44:0, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/podbc.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/unix/ptlib/contain.h:82:22: note: previous declaration as 'typedef uintptr_t UINT' typedef uintptr_t UINT; ^~~~ ptclib/podbc.cxx: In member function 'PBoolean PODBC::DataSource(PODBC::DataSources, PODBC::ConnectData)': ptclib/podbc.cxx:407:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (Data.Host.GetLength() == 0) ^~ ptclib/podbc.cxx:409:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Connect_MSSQL(Data.User,Data.Pass,Data.Host,Data.Excl_Trust, (MSSQLProtocols)Data.opt); ^~~~~~ ptclib/podbc.cxx: In member function 'PString PODBC::Field::AsString()': ptclib/podbc.cxx:488:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:490:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.sbint); ^~~~~~ ptclib/podbc.cxx:494:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:496:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.sbit); ^~~~~~ ptclib/podbc.cxx:499:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:501:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.suchar); ^~~~~~ ptclib/podbc.cxx:504:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:506:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.slint); ^~~~~~ ptclib/podbc.cxx:509:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:511:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.ssint); ^~~~~~ ptclib/podbc.cxx:518:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:520:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.sdoub,Decimals); ^~~~~~ ptclib/podbc.cxx:524:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:526:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.date); ^~~~~~ ptclib/podbc.cxx:529:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:531:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.time); ^~~~~~ ptclib/podbc.cxx:534:10: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:536:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.timestamp); ^~~~~~ ptclib/podbc.cxx:539:10: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:541:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return Convert(b.guid); ^~~~~~ ptclib/podbc.cxx:555:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:557:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return b.sbin; ^~~~~~ ptclib/podbc.cxx: In member function 'void PODBCRecord::Data(PINDEX, PODBC::Field&)': ptclib/podbc.cxx:1250:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:1252:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' AddField(field,ColumnName(Column),ctype, PODBC::oPInt64); ^~~~~~~~ ptclib/podbc.cxx:1256:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:1258:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' AddField(field,ColumnName(Column),ctype, PODBC::oshort); ^~~~~~~~ ptclib/podbc.cxx:1262:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:1264:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' AddField(field,ColumnName(Column),ctype, PODBC::oBOOL); ^~~~~~~~ ptclib/podbc.cxx:1268:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:1270:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' AddField(field,ColumnName(Column),ctype,PODBC::ochar); ^~~~~~~~ ptclib/podbc.cxx:1274:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:1276:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' AddField(field,ColumnName(Column),ctype,PODBC::olong); ^~~~~~~~ ptclib/podbc.cxx:1280:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (B) ^~ ptclib/podbc.cxx:1282:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' AddField(field,ColumnName(Column),ctype, PODBC::oint); ^~~~~~~~ ptclib/podbc.cxx:1331:72: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] SQLBindCol(m_hStmt, Column, SQL_LONGVARCHAR, (SQLPOINTER)Column, 0, &b.dataLen); ^~~~~~ make[2]: *** [../make/common.mak:96: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/lib_linux_x86_64/obj/podbc.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptclib/psasl.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptclib/psasl.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/psasl.cxx:35: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptlib/common/vfakeio.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptlib/common/vfakeio.cxx:31: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptlib/common/vfakeio.cxx:31: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ ptlib/common/vfakeio.cxx: In member function 'void PVideoInputDevice_FakeVideo::GrabMovingBlocksTestFrame(BYTE*)': ptlib/common/vfakeio.cxx:1882:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(hi = 0; hi < 8; hi++) //Fill the background in. ^~~ ptlib/common/vfakeio.cxx:1890:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' boxSize= frameHeight / 10; ^~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptclib/pils.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptclib/pils.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/pils.cxx:35: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptclib/vsdl.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptclib/vsdl.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/vsdl.cxx:35: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptclib/pssl.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptclib/pssl.cxx:86: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/pssl.cxx:86: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ In file included from /usr/include/openssl/x509.h:23:0, from /usr/include/openssl/ssl.h:50, from ptclib/pssl.cxx:99: ptclib/pssl.cxx: In member function 'PBoolean PSSLPrivateKey::Create(unsigned int, void (*)(int, int, void*), void*)': ptclib/pssl.cxx:255:83: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated [-Wdeprecated-declarations] if (EVP_PKEY_assign_RSA(key, RSA_generate_key(modulus, 0x10001, callback, cb_arg))) ^ In file included from /usr/include/multiarch-dispatch.h:80:0, from /usr/include/openssl/opensslconf.h:2, from /usr/include/openssl/rsa.h:13, from /usr/include/openssl/x509.h:31, from /usr/include/openssl/ssl.h:50, from ptclib/pssl.cxx:99: /usr/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ ptclib/pssl.cxx: In member function 'void PSSLContext::Construct(PSSLContext::Method, const void*, PINDEX)': ptclib/pssl.cxx:810:27: warning: 'const SSL_METHOD* SSLv3_method()' is deprecated [-Wdeprecated-declarations] meth = SSLv3_method(); ^ In file included from /usr/include/multiarch-dispatch.h:80:0, from /usr/include/openssl/opensslconf.h:2, from /usr/include/openssl/ct.h:13, from /usr/include/openssl/ssl.h:61, from ptclib/pssl.cxx:99: /usr/include/openssl/ssl.h:1617:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ ptclib/pssl.cxx:813:27: warning: 'const SSL_METHOD* TLSv1_method()' is deprecated [-Wdeprecated-declarations] meth = TLSv1_method(); ^ In file included from /usr/include/multiarch-dispatch.h:80:0, from /usr/include/openssl/opensslconf.h:2, from /usr/include/openssl/ct.h:13, from /usr/include/openssl/ssl.h:61, from ptclib/pssl.cxx:99: /usr/include/openssl/ssl.h:1632:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ ptclib/pssl.cxx: At global scope: ptclib/pssl.cxx:721:13: warning: 'void LockingCallback(int, int, const char*, int)' defined but not used [-Wunused-function] static void LockingCallback(int mode, int n, const char * /*file*/, int /*line*/) ^~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptclib/pldap.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptclib/pldap.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptclib/pldap.cxx:35: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' [CC] ptlib/common/videoio.cxx In file included from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:145:0, from ptlib/common/videoio.cxx:35: /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psharedptr.h:63:21: warning: 'template class std::auto_ptr' is deprecated [-Wdeprecated-declarations] PSharedPtr(std::auto_ptr & v) ^~~~~~~~ In file included from /usr/include/c++/7.3.0/bits/locale_conv.h:41:0, from /usr/include/c++/7.3.0/locale:43, from /usr/include/c++/7.3.0/iomanip:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/object.h:58, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/psync.h:43, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/critsec.h:34, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib/contain.h:42, from /home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/include/ptlib.h:56, from ptlib/common/videoio.cxx:35: /usr/include/c++/7.3.0/bits/unique_ptr.h:51:28: note: declared here template class auto_ptr; ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ptlib-2.10.11/src' make[1]: *** [../make/common.mak:292: optshared] Error 2 make: *** [Makefile:91: optshared] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.o7yPz4 (%build) RPM build errors: Macro expanded in comment on line 20: %{url_subver}/%%{name}-%%{version}.tar.bz2 Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.o7yPz4 (%build) I: [iurt_root_command] ERROR: chroot