Source: xfsdump Version: 3.1.4 Severity: serious Justification: fails to build from source User: reproducible-bui...@lists.alioth.debian.org Usertags: ftbfs X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Dear Maintainer, xfsdump fails to build from source in unstable/amd64: [..] drive_scsitape.c: In function 'do_get_align_cnt': drive_scsitape.c:2122:2: error: unknown type name '__psint_t' __psint_t next_alignment_off; ^ drive_scsitape.c:2143:25: error: '__psint_t' undeclared (first use in this function) next_alignment_off = ( __psint_t )contextp->dc_nextp; ^ drive_scsitape.c:2143:25: note: each undeclared identifier is reported only once for each function it appears in drive_scsitape.c:2143:36: error: expected ';' before 'contextp' next_alignment_off = ( __psint_t )contextp->dc_nextp; [..] The full build log is attached or can be viewed here: https://reproducible.debian.net/logs/unstable/amd64/xfsdump_3.1.4.build1.log.gz Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
I: using fakeroot in build. I: pbuilder: network access will be disabled during build I: Current time: Wed Sep 16 01:15:08 GMT+12 2015 I: pbuilder-time-stamp: 1442409308 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: creating local configuration I: copying local configuration I: mounting /proc filesystem I: mounting /run/shm filesystem I: mounting /dev/pts filesystem I: Mounting /dev/shm I: Mounting /sys I: policy-rc.d already exists I: Installing the build-deps -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: amd64 Maintainer: Debian Pbuilder Team <pbuilder-ma...@lists.alioth.debian.org> Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: xfslibs-dev (>= 3.0.0), uuid-dev, libattr1-dev (>= 2.4.14), libncurses-dev, autoconf, debhelper (>= 5), gettext, libtool, autotools-dev dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 20254 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on xfslibs-dev (>= 3.0.0); however: Package xfslibs-dev is not installed. pbuilder-satisfydepends-dummy depends on uuid-dev; however: Package uuid-dev is not installed. pbuilder-satisfydepends-dummy depends on libattr1-dev (>= 2.4.14); however: Package libattr1-dev is not installed. pbuilder-satisfydepends-dummy depends on libncurses-dev; however: Package libncurses-dev is not installed. pbuilder-satisfydepends-dummy depends on autoconf; however: Package autoconf is not installed. pbuilder-satisfydepends-dummy depends on libtool; however: Package libtool is not installed. pbuilder-satisfydepends-dummy depends on autotools-dev; however: Package autotools-dev is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} autotools-dev{a} libattr1-dev{a} libncurses5-dev{a} libreadline5{a} libsigsegv2{a} libtinfo-dev{a} libtool{a} m4{a} uuid-dev{a} xfslibs-dev{a} xfsprogs{a} 0 packages upgraded, 12 newly installed, 0 to remove and 0 not upgraded. Need to get 2144 kB of archives. After unpacking 9357 kB will be used. Writing extended state information... Get: 1 http://ftp.de.debian.org/debian/ unstable/main libsigsegv2 amd64 2.10-4+b1 [29.2 kB] Get: 2 http://ftp.de.debian.org/debian/ unstable/main m4 amd64 1.4.17-4 [254 kB] Get: 3 http://ftp.de.debian.org/debian/ unstable/main autoconf all 2.69-9 [338 kB] Get: 4 http://ftp.de.debian.org/debian/ unstable/main autotools-dev all 20150820.1 [71.7 kB] Get: 5 http://ftp.de.debian.org/debian/ unstable/main libtinfo-dev amd64 6.0+20150810-1 [77.5 kB] Get: 6 http://ftp.de.debian.org/debian/ unstable/main libncurses5-dev amd64 6.0+20150810-1 [172 kB] Get: 7 http://ftp.de.debian.org/debian/ unstable/main libreadline5 amd64 5.2+dfsg-3 [120 kB] Get: 8 http://ftp.de.debian.org/debian/ unstable/main libtool all 2.4.2-1.11 [190 kB] Get: 9 http://ftp.de.debian.org/debian/ unstable/main xfsprogs amd64 4.2.0 [716 kB] Get: 10 http://ftp.de.debian.org/debian/ unstable/main libattr1-dev amd64 1:2.4.47-2 [40.0 kB] Get: 11 http://ftp.de.debian.org/debian/ unstable/main uuid-dev amd64 2.27-1 [80.7 kB] Get: 12 http://ftp.de.debian.org/debian/ unstable/main xfslibs-dev amd64 4.2.0 [54.5 kB] Fetched 2144 kB in 0s (30.7 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libsigsegv2:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20254 files and directories currently installed.) Preparing to unpack .../libsigsegv2_2.10-4+b1_amd64.deb ... Unpacking libsigsegv2:amd64 (2.10-4+b1) ... Selecting previously unselected package m4. Preparing to unpack .../archives/m4_1.4.17-4_amd64.deb ... Unpacking m4 (1.4.17-4) ... Selecting previously unselected package autoconf. Preparing to unpack .../autoconf_2.69-9_all.deb ... Unpacking autoconf (2.69-9) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../autotools-dev_20150820.1_all.deb ... Unpacking autotools-dev (20150820.1) ... Selecting previously unselected package libtinfo-dev:amd64. Preparing to unpack .../libtinfo-dev_6.0+20150810-1_amd64.deb ... Unpacking libtinfo-dev:amd64 (6.0+20150810-1) ... Selecting previously unselected package libncurses5-dev:amd64. Preparing to unpack .../libncurses5-dev_6.0+20150810-1_amd64.deb ... Unpacking libncurses5-dev:amd64 (6.0+20150810-1) ... Selecting previously unselected package libreadline5:amd64. Preparing to unpack .../libreadline5_5.2+dfsg-3_amd64.deb ... Unpacking libreadline5:amd64 (5.2+dfsg-3) ... Selecting previously unselected package libtool. Preparing to unpack .../libtool_2.4.2-1.11_all.deb ... Unpacking libtool (2.4.2-1.11) ... Selecting previously unselected package xfsprogs. Preparing to unpack .../xfsprogs_4.2.0_amd64.deb ... Unpacking xfsprogs (4.2.0) ... Selecting previously unselected package libattr1-dev:amd64. Preparing to unpack .../libattr1-dev_1%3a2.4.47-2_amd64.deb ... Unpacking libattr1-dev:amd64 (1:2.4.47-2) ... Selecting previously unselected package uuid-dev:amd64. Preparing to unpack .../uuid-dev_2.27-1_amd64.deb ... Unpacking uuid-dev:amd64 (2.27-1) ... Selecting previously unselected package xfslibs-dev. Preparing to unpack .../xfslibs-dev_4.2.0_amd64.deb ... Unpacking xfslibs-dev (4.2.0) ... Processing triggers for man-db (2.7.3-1) ... Setting up libsigsegv2:amd64 (2.10-4+b1) ... Setting up m4 (1.4.17-4) ... Setting up autoconf (2.69-9) ... Setting up autotools-dev (20150820.1) ... Setting up libtinfo-dev:amd64 (6.0+20150810-1) ... Setting up libncurses5-dev:amd64 (6.0+20150810-1) ... Setting up libreadline5:amd64 (5.2+dfsg-3) ... Setting up libtool (2.4.2-1.11) ... Setting up xfsprogs (4.2.0) ... Setting up libattr1-dev:amd64 (1:2.4.47-2) ... Setting up uuid-dev:amd64 (2.27-1) ... Setting up xfslibs-dev (4.2.0) ... Processing triggers for libc-bin (2.19-20) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps Reading package lists... Building dependency tree... Reading state information... fakeroot is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Copying source file I: copying [xfsdump_3.1.4.dsc] I: copying [./xfsdump_3.1.4.tar.gz] I: Extracting source gpgv: keyblock resource `/tmp/buildd/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Sun Jul 20 21:28:18 2014 GMT+12 using DSA key ID 74886B63 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./xfsdump_3.1.4.dsc dpkg-source: info: extracting xfsdump in xfsdump-3.1.4 dpkg-source: info: unpacking xfsdump_3.1.4.tar.gz I: Building the package I: Running cd tmp/buildd/*/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" dpkg-buildpackage -us -uc -b -rfakeroot dpkg-buildpackage: source package xfsdump dpkg-buildpackage: source version 3.1.4 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by Nathan Scott <nath...@debian.org> dpkg-source --before-build xfsdump-3.1.4 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean == dpkg-buildpackage: clean test -f debian/rules rm -f built .census /usr/bin/make distclean make[1]: Entering directory '/tmp/buildd/xfsdump-3.1.4' rm -f config.log .ltdep .dep config.status config.cache confdefs.h conftest* built .census install.* install-dev.* *.gz autom4te.cache/* libtool include/builddefs include/config.h make[1]: Leaving directory '/tmp/buildd/xfsdump-3.1.4' rm -rf debian/xfsdump rm -f debian/*substvars debian/files* debian/*.debhelper dh_autotools-dev_restoreconfig for c_g in `find . -type f -name config.guess` ; do if test -e "$c_g.dh-orig" ; then mv -f "$c_g.dh-orig" "$c_g" ; fi ; done for c_s in `find . -type f -name config.sub` ; do if test -e "$c_s.dh-orig" ; then mv -f "$c_s.dh-orig" "$c_s" ; fi ; done find . -type f \( -name config.guess.dh-orig -o -name config.sub.dh-orig \) -delete dh_clean rm -f debian/xfsdump.substvars rm -f debian/xfsdump.*.debhelper rm -rf debian/xfsdump/ rm -rf debian/.debhelper/ rm -f debian/*.debhelper.log rm -f debian/files find . \( \( \ \( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS \) -prune -o -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ \) -exec rm -f {} + \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \) debian/rules build == dpkg-buildpackage: configure test -f debian/rules dh_autotools-dev_updateconfig for c_g in `find -type f -name config.guess` ; do if ! test -e "$c_g.dh-orig" ; then mv -f "$c_g" "$c_g.dh-orig" ; cp -f /usr/share/misc/config.guess "$c_g" ; fi ; done for c_s in `find -type f -name config.sub` ; do if ! test -e "$c_s.dh-orig" ; then mv -f "$c_s" "$c_s.dh-orig" ; cp -f /usr/share/misc/config.sub "$c_s" ; fi ; done export DEBUG=-DNDEBUG DISTRIBUTION=debian INSTALL_USER=root INSTALL_GROUP=root ; /usr/bin/make include/config.h make[1]: Entering directory '/tmp/buildd/xfsdump-3.1.4' ./configure $LOCAL_CONFIGURE_OPTIONS checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf 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 a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... no checking for mawk... mawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for gmake... no checking for make... /usr/bin/make checking for tar... /bin/tar checking for gzip... /bin/gzip checking whether gcc -MM is supported... yes checking for sort... /usr/bin/sort checking whether ln -s works... yes checking for msgfmt... /usr/bin/msgfmt checking for msgmerge... /usr/bin/msgmerge checking for xgettext... /usr/bin/xgettext checking for rpm... no checking uuid.h usability... no checking uuid.h presence... no checking for uuid.h... no checking sys/uuid.h usability... no checking sys/uuid.h presence... no checking for sys/uuid.h... no checking uuid/uuid.h usability... yes checking uuid/uuid.h presence... yes checking for uuid/uuid.h... yes checking for uuid_compare... no checking for uuid_compare in -luuid... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_mutex_init in -lpthread... yes checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking for initscr in -lncurses... yes checking for bad glibc/ncurses header interaction... ok checking xfs/xfs.h usability... yes checking xfs/xfs.h presence... yes checking for xfs/xfs.h... yes checking xfs/handle.h usability... yes checking xfs/handle.h presence... yes checking for xfs/handle.h... yes checking for open_by_fshandle in -lhandle... yes checking attr/attributes.h usability... yes checking attr/attributes.h presence... yes checking for attr/attributes.h... yes checking sys/attributes.h usability... no checking sys/attributes.h presence... no checking for sys/attributes.h... no checking macros in attr/attributes.h... ok checking for attr_get in -lattr... yes configure: creating ./config.status config.status: creating include/builddefs config.status: creating include/config.h config.status: executing libtool commands make[1]: Leaving directory '/tmp/buildd/xfsdump-3.1.4' touch .census == dpkg-buildpackage: build /usr/bin/make default make[1]: Entering directory '/tmp/buildd/xfsdump-3.1.4' Building include Building librmt [LTDEP] [CC] isrmt.lo [CC] rmtclose.lo rmtclose.c: In function 'rmtclose': rmtclose.c:43:11: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] return (close (fildes)); ^ [CC] rmtdev.lo [CC] rmtisatty.lo [CC] rmtread.lo rmtread.c: In function 'rmtread': rmtread.c:45:11: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] return (read (fildes, buf, nbyte)); ^ [CC] rmtabort.lo rmtabort.c: In function '_rmt_abort': rmtabort.c:32:2: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(READ(fildes)); ^ [CC] rmtcommand.lo rmtcommand.c: In function '_rmt_command': rmtcommand.c:45:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] blen = strlen(buf); ^ rmtcommand.c:45:9: warning: incompatible implicit declaration of built-in function 'strlen' rmtcommand.c:45:9: note: include '<string.h>' or provide a declaration of 'strlen' rmtcommand.c:46:6: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] if (write(WRITE(fildes), buf, blen) == blen) ^ [CC] rmtfstat.lo rmtfstat.c: In function '_rmt_fstat': rmtfstat.c:79:9: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] cnt = read(READ(fildes), arg, adj_rc); ^ [CC] rmtlseek.lo rmtlseek.c: In function 'rmtlseek': rmtlseek.c:44:11: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration] return (lseek (fildes, offset, whence)); ^ [CC] rmtstatus.lo rmtstatus.c: In function '_rmt_status': rmtstatus.c:45:7: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] if (read(READ(fildes), cp, 1) != 1) ^ In file included from rmtstatus.c:26:0: rmtstatus.c:75:15: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] setoserror( atoi(cp + 1) ); ^ rmtlib.h:80:34: note: in definition of macro 'setoserror' #define setoserror(err) (errno = err) /* TODO: multithread check */ ^ [CC] rmtaccess.lo [CC] rmtcreat.lo [CC] rmtioctl.lo rmtioctl.c: In function '_rmt_ioctl': rmtioctl.c:192:3: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] _("rmtioctl: remote host type not supported for MTIOCTOP\n")); ^ rmtioctl.c:192:3: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] In file included from rmtioctl.c:26:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtioctl.c:247:3: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] _("rmtioctl: remote host type not supported for MTIOCGET\n")); ^ In file included from rmtioctl.c:26:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtioctl.c:253:5: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] _("rmtioctl: IRIX mtget structure of wrong size" ^ In file included from rmtioctl.c:26:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtioctl.c:269:4: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] _("rmtioctl: Linux mtget structure of wrong size " ^ In file included from rmtioctl.c:26:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtioctl.c:283:3: warning: implicit declaration of function 'assert' [-Wimplicit-function-declaration] assert(RMTHOST(fildes)==UNAME_LINUX || RMTHOST(fildes)==UNAME_IRIX); ^ rmtioctl.c:300:10: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] cnt = read(READ(fildes), p, ssize); ^ [CC] rmtopen.lo rmtopen.c: In function '_rmt_open': rmtopen.c:102:18: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration] if ((rsh_path = getenv("RSH")) == NULL) { ^ rmtopen.c:102:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((rsh_path = getenv("RSH")) == NULL) { ^ rmtopen.c:106:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((rmt_path = getenv("RMT")) == NULL) { ^ rmtopen.c:175:21: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] _rmt_msg(RMTWARN, _( ^ rmtopen.c:175:21: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] In file included from rmtopen.c:34:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtopen.c:187:25: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] _rmt_msg(RMTWARN, _( ^ In file included from rmtopen.c:34:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtopen.c:204:21: warning: passing argument 2 of '_rmt_msg' makes pointer from integer without a cast [-Wint-conversion] _rmt_msg(RMTWARN, _( ^ In file included from rmtopen.c:34:0: rmtlib.h:89:6: note: expected 'const char *' but argument is of type 'int' void _rmt_msg(int level, const char *msg, ...); ^ rmtopen.c:259:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^ rmtopen.c:259:3: warning: incompatible implicit declaration of built-in function 'exit' rmtopen.c:259:3: note: include '<stdlib.h>' or provide a declaration of 'exit' [CC] rmtwrite.lo rmtwrite.c: In function 'rmtwrite': rmtwrite.c:45:11: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] return (write (fildes, buf, nbyte)); ^ [CC] rmtmsg.lo rmtmsg.c: In function '_rmt_turnonmsgsbyenv': rmtmsg.c:44:27: warning: implicit declaration of function 'getenv' [-Wimplicit-function-declaration] char *rmt_debug_str = getenv("RMTDEBUG"); ^ rmtmsg.c:44:27: warning: initialization makes pointer from integer without a cast [-Wint-conversion] rmtmsg.c:47:26: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] rmt_debug_code = atoi(rmt_debug_str); ^ rmtmsg.c: In function '_rmt_msg': rmtmsg.c:74:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration] va_start(arg, msg); ^ rmtmsg.c:76:2: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration] va_end(arg); ^ rmtmsg.c:78:43: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] fprintf(stderr, "%s%s", level==RMTWARN ? _("WARNING: "):"", msg_str); ^ rmtmsg.c:78:57: warning: pointer/integer type mismatch in conditional expression fprintf(stderr, "%s%s", level==RMTWARN ? _("WARNING: "):"", msg_str); ^ [LD] librmt.la ar: `u' modifier ignored since `D' is the default (see `U') Building common Building inventory [LTDEP] gcc: fatal error: no input files compilation terminated. Building invutil [LN] global.h [LN] mlog.h [LN] timeutil.h [LN] types.h [LN] timeutil.c [LN] inventory.h [LN] inv_priv.h [LN] inv_files.c [DEP] [CC] timeutil.o [CC] inv_files.o inv_files.c: In function 'inv_setup_base': inv_files.c:106:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(inv_dirpathp, inv_base); ^ inv_files.c:106:2: warning: incompatible implicit declaration of built-in function 'strcpy' inv_files.c:106:2: note: include '<string.h>' or provide a declaration of 'strcpy' inv_files.c:107:2: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat(inv_dirpathp, MGR_DIRPATH); ^ inv_files.c:107:2: warning: incompatible implicit declaration of built-in function 'strcat' inv_files.c:107:2: note: include '<string.h>' or provide a declaration of 'strcat' [CC] invutil.o invutil.c: In function 'main': invutil.c:71:21: warning: implicit declaration of function 'basename' [-Wimplicit-function-declaration] g_programName = basename(argv[0]); ^ invutil.c:71:19: warning: assignment makes pointer from integer without a cast [-Wint-conversion] g_programName = basename(argv[0]); ^ invutil.c:246:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^ invutil.c:246:9: warning: incompatible implicit declaration of built-in function 'exit' invutil.c:246:9: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c: In function 'get_mntpnt': invutil.c:294:9: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] p = strchr(txt, ':'); ^ invutil.c:294:9: warning: incompatible implicit declaration of built-in function 'strchr' invutil.c:294:9: note: include '<string.h>' or provide a declaration of 'strchr' invutil.c: In function 'mntpnt_equal': invutil.c:304:8: warning: incompatible implicit declaration of built-in function 'strchr' if(strchr(s1, ':') == NULL || strchr(s2, ':') == NULL) { ^ invutil.c:304:8: note: include '<string.h>' or provide a declaration of 'strchr' In file included from invutil.c:30:0: inv_priv.h:88:26: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] #define STREQL( n,m ) ( strcmp((n),(m)) == 0 ) ^ invutil.c:309:12: note: in expansion of macro 'STREQL' return STREQL(s1, s2); ^ invutil.c: In function 'ParseDate': invutil.c:357:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset (&tm, 0, sizeof (struct tm)); /* ensure fields init'ed */ ^ invutil.c:357:9: warning: incompatible implicit declaration of built-in function 'memset' invutil.c:357:9: note: include '<string.h>' or provide a declaration of 'memset' invutil.c:375:9: warning: incompatible implicit declaration of built-in function 'memset' memset (&tm, 0, sizeof (struct tm)); ^ invutil.c:375:9: note: include '<string.h>' or provide a declaration of 'memset' invutil.c: In function 'GetNameOfStobj': invutil.c:405:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion] str = basename(filename); ^ invutil.c:406:29: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] name = (char *) malloc( strlen( inv_path ) + 1 + strlen( str ) + 1); ^ invutil.c:406:29: warning: incompatible implicit declaration of built-in function 'strlen' invutil.c:406:29: note: include '<string.h>' or provide a declaration of 'strlen' invutil.c:407:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy( name, inv_path ); ^ invutil.c:407:5: warning: incompatible implicit declaration of built-in function 'strcpy' invutil.c:407:5: note: include '<string.h>' or provide a declaration of 'strcpy' invutil.c:408:5: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] strcat( name, "/" ); ^ invutil.c:408:5: warning: incompatible implicit declaration of built-in function 'strcat' invutil.c:408:5: note: include '<string.h>' or provide a declaration of 'strcat' invutil.c: In function 'GetNameOfInvIndex': invutil.c:421:29: warning: incompatible implicit declaration of built-in function 'strlen' name = (char *) malloc( strlen( inv_path ) + 1 + strlen( str ) ^ invutil.c:421:29: note: include '<string.h>' or provide a declaration of 'strlen' invutil.c:423:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy( name, inv_path ); ^ invutil.c:423:5: note: include '<string.h>' or provide a declaration of 'strcpy' invutil.c:424:5: warning: incompatible implicit declaration of built-in function 'strcat' strcat( name, "/" ); ^ invutil.c:424:5: note: include '<string.h>' or provide a declaration of 'strcat' invutil.c: In function 'GetFstabFullPath': invutil.c:436:34: warning: incompatible implicit declaration of built-in function 'strlen' fstabname = (char *) malloc( strlen(inv_path) + 1 /* one for the "/" */ ^ invutil.c:436:34: note: include '<string.h>' or provide a declaration of 'strlen' invutil.c:438:5: warning: incompatible implicit declaration of built-in function 'strcpy' strcpy( fstabname, inv_path ); ^ invutil.c:438:5: note: include '<string.h>' or provide a declaration of 'strcpy' invutil.c:439:5: warning: incompatible implicit declaration of built-in function 'strcat' strcat( fstabname, "/" ); ^ invutil.c:439:5: note: include '<string.h>' or provide a declaration of 'strcat' invutil.c: In function 'CheckAndPruneFstab': invutil.c:464:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invutil.c:464:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c:473:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invutil.c:473:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c:552:3: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy((void *)&fstabentry[i + 1], ^ invutil.c:552:3: warning: incompatible implicit declaration of built-in function 'bcopy' invutil.c:575:2: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration] ftruncate(fd, ^ invutil.c:579:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(fd); ^ invutil.c:586:2: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink( fstabname ); ^ invutil.c: In function 'CheckAndPruneInvIndexFile': invutil.c:642:8: warning: implicit declaration of function 'access' [-Wimplicit-function-declaration] if (( access( invIndexEntry[i].ie_filename, R_OK | W_OK ) == -1) && ^ invutil.c:659:10: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy((void *)&invIndexEntry[i + 1], ^ invutil.c: In function 'CheckAndPruneStObjFile': invutil.c:744:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invutil.c:744:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c:866:13: warning: incompatible implicit declaration of built-in function 'strchr' chp = strchr( response, '\n'); ^ invutil.c:866:13: note: include '<string.h>' or provide a declaration of 'strchr' invutil.c:869:11: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration] if (strcasecmp( response, "Y" ) == 0) { ^ invutil.c: In function 'uses_specified_mf_label': invutil.c:942:11: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if (!strncmp(StObjmed->mf_label, r_mf_label, ^ invutil.c: In function 'open_and_lock': invutil.c:1043:2: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] abort(); ^ invutil.c:1043:2: warning: incompatible implicit declaration of built-in function 'abort' invutil.c:1043:2: note: include '<stdlib.h>' or provide a declaration of 'abort' invutil.c: In function 'read_n_bytes': invutil.c:1104:10: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] rc = read(fd, buf, count); ^ invutil.c:1109:2: warning: incompatible implicit declaration of built-in function 'exit' exit (2); ^ invutil.c:1109:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c:1115:2: warning: incompatible implicit declaration of built-in function 'exit' exit (2); ^ invutil.c:1115:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c: In function 'write_n_bytes': invutil.c:1124:10: warning: implicit declaration of function 'write' [-Wimplicit-function-declaration] rc = write(fd, buf, count); ^ invutil.c:1129:2: warning: incompatible implicit declaration of built-in function 'exit' exit (2); ^ invutil.c:1129:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c:1135:2: warning: incompatible implicit declaration of built-in function 'exit' exit (2); ^ invutil.c:1135:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c: In function 'mmap_n_bytes': invutil.c:1144:5: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration] lseek( fd, 0, SEEK_SET ); ^ invutil.c:1154:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invutil.c:1154:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invutil.c: In function 'usage': invutil.c:1175:5: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invutil.c:1175:5: note: include '<stdlib.h>' or provide a declaration of 'exit' [CC] cmenu.o In file included from cmenu.c:32:0: cmenu.c: In function 'menu_import': cmenu.h:34:6: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(2) ^ cmenu.c:129:6: note: in expansion of macro 'put_error' put_error("Error: invalid input"); ^ cmenu.c:132:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if(strlen(inv_path) == 0) { ^ cmenu.c:132:5: warning: incompatible implicit declaration of built-in function 'strlen' cmenu.c:132:5: note: include '<string.h>' or provide a declaration of 'strlen' cmenu.c:145:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^ cmenu.c:145:6: warning: incompatible implicit declaration of built-in function 'exit' cmenu.c:145:6: note: include '<stdlib.h>' or provide a declaration of 'exit' cmenu.c: In function 'generate_menu': cmenu.c:517:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ cmenu.c:517:2: note: include '<stdlib.h>' or provide a declaration of 'exit' cmenu.c: In function 'create_windows': cmenu.c:541:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ cmenu.c:541:2: note: include '<stdlib.h>' or provide a declaration of 'exit' cmenu.c: In function 'invutil_interactive': cmenu.c:577:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ cmenu.c:577:2: note: include '<stdlib.h>' or provide a declaration of 'exit' [CC] fstab.o fstab.c: In function 'fstab_commit': fstab.c:83:6: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration] memmove(fstabentry, ^ fstab.c:83:6: warning: incompatible implicit declaration of built-in function 'memmove' fstab.c:83:6: note: include '<string.h>' or provide a declaration of 'memmove' fstab.c:117:2: warning: incompatible implicit declaration of built-in function 'memmove' memmove(dest, fstabentry, sizeof(*fstabentry)); ^ fstab.c:117:2: note: include '<string.h>' or provide a declaration of 'memmove' fstab.c: In function 'add_fstab_data': fstab.c:205:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^ fstab.c:205:6: warning: incompatible implicit declaration of built-in function 'exit' fstab.c:205:6: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c:214:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:214:6: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c: In function 'generate_fstab_menu': fstab.c:242:8: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] len = strlen(fstab_entry[i].ft_mountpt) + strlen(fstab_entry[i].ft_devpath) + 40; ^ fstab.c:242:8: warning: incompatible implicit declaration of built-in function 'strlen' fstab.c:242:8: note: include '<string.h>' or provide a declaration of 'strlen' fstab.c:246:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:246:6: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c:266:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:266:6: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c: In function 'add_fstab': fstab.c:287:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:287:6: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c:297:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:297:3: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c: In function 'fstab_equal': fstab.c:318:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if(strcmp(f1->ft_mountpt, f2->ft_mountpt) != 0) ^ fstab.c: In function 'remmap_fstab': fstab.c:358:5: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration] lseek(fstab_file[fidx].fd, (num * sizeof(invt_fstab_t)) - 1, SEEK_END); ^ fstab.c: In function 'open_fstab': fstab.c:397:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:397:2: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c:400:12: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] name = strdup(fstabname); ^ fstab.c:400:12: warning: incompatible implicit declaration of built-in function 'strdup' fstab.c:403:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ fstab.c:403:2: note: include '<stdlib.h>' or provide a declaration of 'exit' fstab.c: In function 'close_fstab': fstab.c:429:2: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration] ftruncate(fstab_file[fidx].fd, ^ fstab.c:433:5: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(fstab_file[fidx].fd); ^ fstab.c:436:2: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink( fstab_file[fidx].name ); ^ [CC] invidx.o invidx.c: In function 'invidx_commit': invidx.c:92:6: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration] memmove(&inv_entry[idx], ^ invidx.c:92:6: warning: incompatible implicit declaration of built-in function 'memmove' invidx.c:92:6: note: include '<string.h>' or provide a declaration of 'memmove' invidx.c:114:70: warning: implicit declaration of function 'basename' [-Wimplicit-function-declaration] snprintf(dst_idxfile, sizeof(dst_idxfile), "%s/%s", inventory_path, basename(invidx_file[fidx].name)); ^ invidx.c:114:45: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] snprintf(dst_idxfile, sizeof(dst_idxfile), "%s/%s", inventory_path, basename(invidx_file[fidx].name)); ^ invidx.c:114:45: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] invidx.c:211:7: warning: incompatible implicit declaration of built-in function 'memmove' memmove(invidx_file[dst_fileidx].data[dst_invpos + 1], ^ invidx.c:211:7: note: include '<string.h>' or provide a declaration of 'memmove' invidx.c:220:3: warning: incompatible implicit declaration of built-in function 'memmove' memmove(dest, inv_entry, sizeof(*inv_entry)); ^ invidx.c:220:3: note: include '<string.h>' or provide a declaration of 'memmove' In file included from invidx.c:32:0: cmenu.h:34:6: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep(2) ^ invidx.c:230:7: note: in expansion of macro 'put_error' put_error("Error: unable to work out stobj filename"); ^ invidx.c:234:50: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] snprintf(dst_stobjfile, sizeof(dst_stobjfile), "%s/%s", inventory_path, basename(stobjfile)); ^ invidx.c:234:50: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] invidx.c:248:6: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration] if(system(cmd) != 0) { ^ invidx.c:262:6: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset(&cnt, 0, sizeof(cnt)); ^ invidx.c:262:6: warning: incompatible implicit declaration of built-in function 'memset' invidx.c:262:6: note: include '<string.h>' or provide a declaration of 'memset' invidx.c:293:6: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(new_fd); ^ invidx.c:304:53: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] snprintf(dst_stobjfile, sizeof(dst_stobjfile), "%s/%s", inventory_path, basename(stobjfile)); ^ invidx.c:304:53: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=] invidx.c: In function 'read_stobj_info': invidx.c:358:5: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration] lseek(fd, STOBJ_OFFSET(idx, 0), SEEK_SET); ^ invidx.c: In function 'update_invidx_entry': invidx.c:459:5: warning: incompatible implicit declaration of built-in function 'memset' memset(&hdr, 0, sizeof(hdr)); ^ invidx.c:459:5: note: include '<string.h>' or provide a declaration of 'memset' invidx.c:477:5: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if(strcmp(entry.ie_filename, filename) == 0) { ^ invidx.c:488:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] strcpy(entry.ie_filename, filename); ^ invidx.c:488:5: warning: incompatible implicit declaration of built-in function 'strcpy' invidx.c:488:5: note: include '<string.h>' or provide a declaration of 'strcpy' invidx.c: In function 'insert_stobj_into_stobjfile': invidx.c:549:5: warning: incompatible implicit declaration of built-in function 'memmove' memmove(buf, hdr, sizeof(invt_seshdr_t)); ^ invidx.c:549:5: note: include '<string.h>' or provide a declaration of 'memmove' invidx.c: In function 'stobj_create': invidx.c:607:5: warning: incompatible implicit declaration of built-in function 'memset' memset(&sescnt, 0, sizeof(sescnt)); ^ invidx.c:607:5: note: include '<string.h>' or provide a declaration of 'memset' invidx.c: In function 'invidx_highlight': invidx.c:703:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] txt[strlen(txt) - 1] = '\0'; ^ invidx.c:703:9: warning: incompatible implicit declaration of built-in function 'strlen' invidx.c:703:9: note: include '<string.h>' or provide a declaration of 'strlen' invidx.c: In function 'add_invidx_data': invidx.c:879:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^ invidx.c:879:6: warning: incompatible implicit declaration of built-in function 'exit' invidx.c:879:6: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c:889:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invidx.c:889:6: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c: In function 'generate_invidx_menu': invidx.c:917:8: warning: incompatible implicit declaration of built-in function 'strlen' len = strlen(invidx_entry[i].ie_filename) + 54; ^ invidx.c:917:8: note: include '<string.h>' or provide a declaration of 'strlen' invidx.c:921:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invidx.c:921:6: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c:923:21: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] snprintf(txt, len, " inv file: %s ", basename(invidx_entry[i].ie_filename)); ^ invidx.c:923:21: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] invidx.c:939:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invidx.c:939:6: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c: In function 'add_invidx': invidx.c:960:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invidx.c:960:6: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c:970:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invidx.c:970:3: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c: In function 'open_invidx': invidx.c:1044:12: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] name = strdup(idxFileName); ^ invidx.c:1044:12: warning: incompatible implicit declaration of built-in function 'strdup' invidx.c:1047:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ invidx.c:1047:2: note: include '<stdlib.h>' or provide a declaration of 'exit' invidx.c: In function 'close_invidx': invidx.c:1076:2: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration] ftruncate(invidx_file[idx].fd, ^ invidx.c:1083:2: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink(invidx_file[idx].name); ^ [CC] list.o [CC] menu.o [CC] screen.o screen.c: In function 'put_line': screen.c:38:14: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] msglen = strlen(msg); ^ screen.c:38:14: warning: incompatible implicit declaration of built-in function 'strlen' screen.c:38:14: note: include '<string.h>' or provide a declaration of 'strlen' screen.c: In function 'get_string': screen.c:78:30: warning: incompatible implicit declaration of built-in function 'strlen' wmove(stdscr, LINES - 1, strlen(prompt)); ^ screen.c:78:30: note: include '<string.h>' or provide a declaration of 'strlen' [CC] stobj.o stobj.c: In function 'stobjsess_highlight': stobj.c:190:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] txt[strlen(txt)-1] = '\0'; ^ stobj.c:190:9: warning: incompatible implicit declaration of built-in function 'strlen' stobj.c:190:9: note: include '<string.h>' or provide a declaration of 'strlen' stobj.c: In function 'add_stobj_data': stobj.c:364:6: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^ stobj.c:364:6: warning: incompatible implicit declaration of built-in function 'exit' stobj.c:364:6: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:374:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:374:6: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c: In function 'generate_stobj_menu': stobj.c:416:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:416:6: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:421:11: warning: incompatible implicit declaration of built-in function 'strlen' len = 60+strlen(session->session->s_label); ^ stobj.c:421:11: note: include '<string.h>' or provide a declaration of 'strlen' stobj.c:425:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:425:6: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:444:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:444:6: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:460:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:460:3: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:477:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:477:3: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:493:7: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:493:7: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:510:7: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:510:7: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c: In function 'add_stobj': stobj.c:537:6: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:537:6: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c:547:3: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:547:3: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c: In function 'open_stobj': stobj.c:582:5: warning: implicit declaration of function 'lseek' [-Wimplicit-function-declaration] lseek( fd, 0, SEEK_SET ); ^ stobj.c:587:2: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration] close(fd); ^ stobj.c:593:12: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] name = strdup(StObjFileName); ^ stobj.c:593:12: warning: incompatible implicit declaration of built-in function 'strdup' stobj.c:596:2: warning: incompatible implicit declaration of built-in function 'exit' exit(1); ^ stobj.c:596:2: note: include '<stdlib.h>' or provide a declaration of 'exit' stobj.c: In function 'close_stobj_file': stobj.c:613:2: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration] unlink(stobj_file[fidx].name); ^ [LD] xfsinvutil Building dump [LN] arch_xlate.h [LN] cldmgr.h [LN] content.h [LN] content_common.h [LN] content_inode.h [LN] dlog.h [LN] drive.h [LN] exit.h [LN] fs.h [LN] getdents.h [LN] global.h [LN] hsmapi.h [LN] lock.h [LN] media.h [LN] mlog.h [LN] openutil.h [LN] path.h [LN] qlock.h [LN] ring.h [LN] stream.h [LN] timeutil.h [LN] ts_mtio.h [LN] types.h [LN] util.h [LN] rec_hdr.h [LN] arch_xlate.c [LN] cldmgr.c [LN] content_common.c [LN] dlog.c [LN] drive.c [LN] drive_scsitape.c [LN] drive_simple.c [LN] drive_minrmt.c [LN] fs.c [LN] getdents.c [LN] global.c [LN] hsmapi.c [LN] lock.c [LN] main.c [LN] mlog.c [LN] openutil.c [LN] qlock.c [LN] path.c [LN] ring.c [LN] stream.c [LN] timeutil.c [LN] util.c [LN] inventory.h [LN] inv_priv.h [LN] inv_api.c [LN] inv_core.c [LN] inv_files.c [LN] inv_fstab.c [LN] inv_idx.c [LN] inv_mgr.c [LN] inv_stobj.c [DEP] [CC] arch_xlate.o arch_xlate.c: In function 'xlate_global_hdr': arch_xlate.c:37:2: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:61:2: note: in expansion of macro 'BXLATE' BXLATE(gh_magic); ^ arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:61:2: note: in expansion of macro 'BXLATE' BXLATE(gh_magic); ^ arch_xlate.c: In function 'xlate_drive_hdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:123:2: note: in expansion of macro 'BXLATE' BXLATE(dh_pad1); ^ arch_xlate.c: In function 'xlate_media_hdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:180:2: note: in expansion of macro 'BXLATE' BXLATE(mh_medialabel); ^ arch_xlate.c: In function 'xlate_content_hdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:210:2: note: in expansion of macro 'BXLATE' BXLATE(ch_mntpnt); ^ arch_xlate.c: In function 'xlate_content_inode_hdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:252:2: note: in expansion of macro 'BXLATE' BXLATE(pad1); ^ arch_xlate.c: In function 'xlate_hnk': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:304:2: note: in expansion of macro 'BXLATE' BXLATE(pad); ^ arch_xlate.c: In function 'xlate_filehdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:328:2: note: in expansion of macro 'BXLATE' BXLATE(fh_pad2); ^ arch_xlate.c: In function 'xlate_bstat': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:390:2: note: in expansion of macro 'BXLATE' BXLATE(bs_pad); ^ arch_xlate.c: In function 'xlate_extenthdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:429:2: note: in expansion of macro 'BXLATE' BXLATE(eh_pad); ^ arch_xlate.c: In function 'xlate_direnthdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:451:2: note: in expansion of macro 'BXLATE' BXLATE(dh_name); ^ arch_xlate.c: In function 'xlate_direnthdr_v1': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:497:2: note: in expansion of macro 'BXLATE' BXLATE(dh_name); ^ arch_xlate.c: In function 'xlate_rec_hdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:566:2: note: in expansion of macro 'BXLATE' BXLATE(pad1); ^ arch_xlate.c: In function 'xlate_invt_seshdr': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:636:2: note: in expansion of macro 'BXLATE' BXLATE(sh_level); ^ arch_xlate.c: In function 'xlate_invt_session': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:657:2: note: in expansion of macro 'BXLATE' BXLATE(s_sesid); ^ arch_xlate.c: In function 'xlate_invt_stream': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:705:2: note: in expansion of macro 'BXLATE' BXLATE(st_cmdarg); ^ arch_xlate.c: In function 'xlate_invt_mediafile': arch_xlate.c:37:2: warning: incompatible implicit declaration of built-in function 'bcopy' bcopy(&(ptr1)->MEMBER, &(ptr2)->MEMBER, sizeof((ptr1)->MEMBER)) ^ arch_xlate.c:730:2: note: in expansion of macro 'BXLATE' BXLATE(mf_moid); ^ [CC] cldmgr.o cldmgr.c: In function 'cldmgr_init': cldmgr.c:66:10: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] ( void )memset( ( void * )cld, 0, sizeof( cld )); ^ cldmgr.c:66:10: warning: incompatible implicit declaration of built-in function 'memset' cldmgr.c:66:10: note: include '<string.h>' or provide a declaration of 'memset' cldmgr.c: In function 'cldmgr_create': cldmgr.c:86:47: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_PROC, _( ^ cldmgr.c:86:47: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] In file included from cldmgr.c:34:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ cldmgr.c:105:9: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] strerror( rval )); ^ cldmgr.c:101:47: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_PROC, _( ^ In file included from cldmgr.c:34:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ cldmgr.c: In function 'cldmgr_join': cldmgr.c:151:4: warning: incompatible implicit declaration of built-in function 'memset' memset( ( void * )p, 0, sizeof( cld_t )); ^ cldmgr.c:151:4: note: include '<string.h>' or provide a declaration of 'memset' cldmgr.c: In function 'cldmgr_cleanup': cldmgr.c:250:8: warning: implicit declaration of function 'getpid' [-Wimplicit-function-declaration] kill( getpid( ), SIGUSR1 ); ^ [CC] content_common.o content_common.c: In function 'Media_prompt_change': content_common.c:65:19: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] fold_init( fold, _("change media dialog"), '=' ); ^ content_common.c:65:19: warning: passing argument 2 of 'fold_init' makes pointer from integer without a cast [-Wint-conversion] In file included from content_common.c:29:0: util.h:150:13: note: expected 'char *' but argument is of type 'int' extern void fold_init( fold_t fold, char *infostr, char c ); ^ content_common.c:74:21: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast [-Wint-conversion] sprintf( question, _( ^ In file included from /usr/include/malloc.h:24:0, from /usr/include/xfs/linux.h:27, from /usr/include/xfs/xfs.h:37, from content_common.c:19: /usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int' extern int sprintf (char *__restrict __s, ^ content_common.c:83:27: warning: assignment makes pointer from integer without a cast [-Wint-conversion] choicestr[ choicecnt++ ] = _("media change declined"); ^ content_common.c:85:27: warning: assignment makes pointer from integer without a cast [-Wint-conversion] choicestr[ choicecnt++ ] = _("media changed"); ^ content_common.c:104:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ackstr[ ackcnt++ ] = _("examining new media\n"); ^ content_common.c:106:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ackstr[ ackcnt++ ] = _("media change aborted\n"); ^ content_common.c:109:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ackstr[ ackcnt++ ] = _("keyboard interrupt\n"); ^ content_common.c:117:19: warning: passing argument 2 of 'fold_init' makes pointer from integer without a cast [-Wint-conversion] fold_init( fold, _("end dialog"), '-' ); ^ In file included from content_common.c:29:0: util.h:150:13: note: expected 'char *' but argument is of type 'int' extern void fold_init( fold_t fold, char *infostr, char c ); ^ content_common.c:129:3: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] sleep( 1 ); /* to allow main thread to begin dialog */ ^ [CC] dlog.o dlog.c: In function 'dlog_multi_query': dlog.c:213:37: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] defaultstr ? defaultstr : _(" (default)") ); ^ dlog.c:213:35: warning: pointer/integer type mismatch in conditional expression defaultstr ? defaultstr : _(" (default)") ); ^ dlog.c:221:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _(" (timeout in %u sec)"), ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c:251:11: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] if ( ! strlen( buf )) { ^ dlog.c:251:11: warning: incompatible implicit declaration of built-in function 'strlen' dlog.c:251:11: note: include '<string.h>' or provide a declaration of 'strlen' dlog.c:257:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion] prepromptstr = _( ^ dlog.c: In function 'dlog_string_query': dlog.c:310:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _(" (timeout in %u sec)\n"), ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c: In function 'promptinput': dlog.c:451:12: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration] nread = read( dlog_ttyfd, bufp, bufsz ); ^ dlog.c:486:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("timeout\n") ); ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c:490:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("keyboard interrupt\n") ); ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c:495:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("hangup\n") ); ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c:499:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("terminate\n") ); ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c:503:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("keyboard quit\n") ); ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ dlog.c:508:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("abnormal dialog termination\n")); ^ In file included from dlog.c:31:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ [CC] drive.o drive.c: In function 'drive_init1': drive.c:132:11: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] _("-%c argument missing\n"), ^ drive.c:132:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] In file included from drive.c:27:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive.c:151:26: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( optind < argc && ! strcmp( argv[ optind ], "-" )) { ^ drive.c:155:4: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("cannot specify source files and stdout together\n") ^ In file included from drive.c:27:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive.c:186:4: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("no destination file(s) specified\n") ^ In file included from drive.c:27:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive.c:223:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("using %s strategy\n"), ^ In file included from drive.c:27:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ [CC] drive_scsitape.o drive_scsitape.c: In function 'is_scsi_driver': drive_scsitape.c:457:6: warning: implicit declaration of function 'realpath' [-Wimplicit-function-declaration] if (realpath(pathname, rp) == NULL) { ^ drive_scsitape.c:457:29: warning: comparison between pointer and integer if (realpath(pathname, rp) == NULL) { ^ drive_scsitape.c: In function 'ds_match': drive_scsitape.c:517:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( ! strcmp( drivep->d_pathname, "stdio" )) { ^ drive_scsitape.c:521:7: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration] if ( strchr( drivep->d_pathname, ':')) { ^ drive_scsitape.c:521:7: warning: incompatible implicit declaration of built-in function 'strchr' drive_scsitape.c:521:7: note: include '<string.h>' or provide a declaration of 'strchr' drive_scsitape.c: In function 'ds_instantiate': drive_scsitape.c:568:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration] memset( ( void * )contextp, 0, sizeof( *contextp )); ^ drive_scsitape.c:568:2: warning: incompatible implicit declaration of built-in function 'memset' drive_scsitape.c:568:2: note: include '<string.h>' or provide a declaration of 'memset' drive_scsitape.c:593:11: warning: implicit declaration of function '_' [-Wimplicit-function-declaration] _("-%c argument missing\n"), ^ drive_scsitape.c:593:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:597:37: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] contextp->dc_ringlen = ( size_t )atoi( optarg ); ^ drive_scsitape.c:602:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("-%c argument must be " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:626:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("-%c argument missing\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:639:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("-%c argument missing\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:647:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("-%c argument must be a " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:693:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to allocate memory " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:697:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("not enough physical memory " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:701:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("not allowed " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:712:7: warning: incompatible implicit declaration of built-in function 'strchr' if ( strchr( drivep->d_pathname, ':') ) { ^ drive_scsitape.c:712:7: note: include '<string.h>' or provide a declaration of 'strchr' drive_scsitape.c: In function 'do_read': drive_scsitape.c:963:14: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration] actualcnt = min( wantedcnt, availcnt ); ^ drive_scsitape.c: In function 'do_return_read_buf': drive_scsitape.c:993:9: warning: variable 'ownedcnt' set but not used [-Wunused-but-set-variable] size_t ownedcnt; ^ drive_scsitape.c: In function 'do_seek_mark': drive_scsitape.c:1280:12: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration] strerror( saved_errno )); ^ drive_scsitape.c:1275:12: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("could not forward space %d " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:1342:14: warning: variable 'recoff' set but not used [-Wunused-but-set-variable] u_int32_t recoff; ^ drive_scsitape.c: In function 'do_next_mark': drive_scsitape.c:1522:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to locate next mark in media file\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:1574:47: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_DRIVE, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:1602:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("valid record %lld but no mark\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:1628:8: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("resynchronized at record %lld offset %u\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:1641:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("could not forward space one tape block beyond " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:1671:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy( ( void * )contextp->dc_recp, ^ drive_scsitape.c:1671:2: warning: incompatible implicit declaration of built-in function 'memcpy' drive_scsitape.c:1671:2: note: include '<string.h>' or provide a declaration of 'memcpy' drive_scsitape.c: In function 'do_begin_write': drive_scsitape.c:1806:2: warning: incompatible implicit declaration of built-in function 'memset' memset( ( void * )contextp->dc_recp, 0, tape_recsz ); ^ drive_scsitape.c:1806:2: note: include '<string.h>' or provide a declaration of 'memset' drive_scsitape.c: In function 'do_get_align_cnt': drive_scsitape.c:2122:2: error: unknown type name '__psint_t' __psint_t next_alignment_off; ^ drive_scsitape.c:2143:25: error: '__psint_t' undeclared (first use in this function) next_alignment_off = ( __psint_t )contextp->dc_nextp; ^ drive_scsitape.c:2143:25: note: each undeclared identifier is reported only once for each function it appears in drive_scsitape.c:2143:36: error: expected ';' before 'contextp' next_alignment_off = ( __psint_t )contextp->dc_nextp; ^ drive_scsitape.c:2146:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] next_alignment_point = ( char * )next_alignment_off; ^ drive_scsitape.c: In function 'do_fsf': drive_scsitape.c:2426:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("advancing tape to next media file\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2453:6: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("FSF tape command failed\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'do_display_metrics': drive_scsitape.c:2727:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("drive %u "), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'read_label': drive_scsitape.c:2867:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("file mark missing from tape (hit EOD)\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2870:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("writing file mark at EOD\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2874:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to write file mark at eod: %s (%d)\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2891:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("file mark missing from tape\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2930:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("could not read from drive: %s (%d)\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2940:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unexpectedly encountered EOD at BOT: " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:2990:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unexpectedly encountered a file mark: " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'validate_media_file_hdr': drive_scsitape.c:3026:2: warning: incompatible implicit declaration of built-in function 'memcpy' memcpy( tmpbuf, contextp->dc_recp, GLOBAL_HDR_SZ ); ^ drive_scsitape.c:3026:2: note: include '<string.h>' or provide a declaration of 'memcpy' drive_scsitape.c:3070:7: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] if ( strncmp( grhdrp->gh_magic, GLOBAL_HDR_MAGIC,GLOBAL_HDR_MAGIC_SZ)) { ^ drive_scsitape.c: In function 'set_fixed_blksz': drive_scsitape.c:3196:8: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to set block size to %d\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'set_recommended_sizes': drive_scsitape.c:3289:24: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_WARNING, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'determine_write_error': drive_scsitape.c:3566:8: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("tape is write protected\n")); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3576:8: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("tape media error on write operation\n")); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3579:8: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("no more data can be written to this tape\n")); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'display_access_failed_message': drive_scsitape.c:3743:4: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("attempt to access/open remote " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3750:4: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("attempt to access/open device %s failed: %d (%s)\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'status_failed_message': drive_scsitape.c:3779:6: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("attempt to get status of remote " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3786:5: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("attempt to get status of " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'prepare_drive': drive_scsitape.c:3870:8: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("preparing drive\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3877:20: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] for ( try = 1 ; ; sleep( 10 ), try++ ) { ^ drive_scsitape.c:3919:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("tape is write protected\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3954:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("giving up waiting for drive " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3962:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("tape drive %s is not ready (0x%x): " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:3983:48: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_DRIVE, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4062:51: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4122:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to backspace/rewind media\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4148:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to backspace/rewind media\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4446:48: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_DRIVE, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4478:4: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("likely problem is that the block size, %d, " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4482:4: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("either try using a smaller block size with " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4497:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("media file header version (%d) " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4508:12: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("may be an EFS dump at BOT\n")); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4511:12: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("bad media file header at BOT " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4553:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("cannot determine tape block size " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4557:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("will rewind and try again\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4563:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("assuming media is corrupt " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4581:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("cannot determine tape block size\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4592:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("cannot determine tape block size " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4596:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("will rewind and try again\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4602:11: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("assuming media is corrupt " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4622:10: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("cannot determine tape block size\n") ); ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'quick_backup': drive_scsitape.c:4778:12: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("unable to backspace tape: " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'record_hdr_validate': drive_scsitape.c:4806:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: bad record checksum\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4816:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: bad magic number\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4824:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: null dump id\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4832:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: dump id mismatch\n"), ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4838:50: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_WARNING | MLOG_DRIVE, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4846:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: record offset in header " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4858:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4869:9: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] _("record %lld corrupt: " ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c:4875:2: warning: incompatible implicit declaration of built-in function 'memcpy' memcpy(tmprh, rechdrp, sizeof(*rechdrp)); ^ drive_scsitape.c:4875:2: note: include '<string.h>' or provide a declaration of 'memcpy' drive_scsitape.c: In function 'read_record': drive_scsitape.c:4957:47: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( MLOG_NORMAL | MLOG_ERROR | MLOG_DRIVE, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ drive_scsitape.c: In function 'write_record': drive_scsitape.c:5042:3: warning: incompatible implicit declaration of built-in function 'memcpy' memcpy( &rechdr, bufp, sizeof(rechdr) ); ^ drive_scsitape.c:5042:3: note: include '<string.h>' or provide a declaration of 'memcpy' drive_scsitape.c: In function 'display_ring_metrics': drive_scsitape.c:5154:49: warning: pointer/integer type mismatch in conditional expression contextp->dc_ringpinnedpr ? _("pinned ") : "", ^ drive_scsitape.c:5146:20: warning: passing argument 2 of 'mlog' makes pointer from integer without a cast [-Wint-conversion] mlog( mlog_flags, _( ^ In file included from drive_scsitape.c:37:0: mlog.h:112:13: note: expected 'char *' but argument is of type 'int' extern void mlog( intgen_t level, char *fmt, ... ); ^ ../include/buildrules:46: recipe for target 'drive_scsitape.o' failed make[3]: *** [drive_scsitape.o] Error 1 include/buildrules:22: recipe for target 'dump' failed make[2]: *** [dump] Error 2 Makefile:53: recipe for target 'default' failed make[1]: *** [default] Error 2 make[1]: Leaving directory '/tmp/buildd/xfsdump-3.1.4' debian/rules:17: recipe for target 'built' failed make: *** [built] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 E: Failed autobuilding of package I: unmounting /sys filesystem I: unmounting /dev/shm filesystem I: unmounting dev/pts filesystem I: unmounting run/shm filesystem I: unmounting proc filesystem I: cleaning the build env I: removing directory /var/cache/pbuilder/build//30383 and its subdirectories