Build of catdoc with clang_glibc toolchain

The build took 00h 03m 30s and was SUCCESSFUL.

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

SLOCLanguage
4,197 ansic
525 tcl
208 sh
4,930 total

The process tree of the build process is here.

Log

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

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

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

Copied permanent toolchain into container-local sysroot
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/sbin --> /sysroot/sbin
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/etc --> /sysroot/etc
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/var --> /sysroot/var
# /toolchain_root/usr --> /sysroot/usr
# /toolchain_root/glibc-build --> /sysroot/glibc-build
# /toolchain_root/x86_64-pc-linux-gnu --> /sysroot/x86_64-pc-linux-gnu
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: catdoc 0.94.4-1 (Thu Apr 13 11:49:11 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# creating cache ./config.cache
# checking for gcc... clang
# checking whether the C compiler (clang ) works... yes
# checking whether the C compiler (clang ) is a cross-compiler... no
# checking whether we are using GNU C... yes
# checking whether clang accepts -g... yes
# checking whether byte ordering is bigendian... no
# checking for a BSD compatible install... /usr/bin/install -c
# checking how to run the C preprocessor... clang -E
# checking for ANSI C header files... yes
# checking for unistd.h... yes
# checking for langinfo.h... yes
# checking For nl_langinfo(CODESET)... yes
# checking for working const... yes
# checking whether setvbuf arguments are reversed... no
# checking for strdup... yes
# checking for strtol... yes
# checking for strftime... yes
# updating cache ./config.cache
# creating ./config.status
# creating desktop/Makefile
# creating doc/Makefile
# creating charsets/Makefile
# creating src/Makefile
# creating Makefile
# creating doc/catdoc.1
# creating doc/xls2csv.1
# creating doc/wordview.1
# creating doc/catppt.1
# creating src/config.h
# src/config.h is unchanged
# for i in src doc charsets desktop; do\
# (cd $i; make all);\
# done
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/src'
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o catdoc.o catdoc.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o reader.o reader.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o writer.o writer.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o analyze.o analyze.c
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:899:21: note: expanded from macro 'strncmp'
# && strlen (s1) < ((size_t) (n))) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:803:30: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s2_len = strlen (s2), \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:806:27: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:808:26: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s1_len < 4) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:810:26: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:815:29: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:817:26: note: expanded from macro 'strcmp'
# : __builtin_strcmp (s1, s2)))); })
# ^~
# analyze.c:43:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,write_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:34: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:899:21: note: expanded from macro 'strncmp'
# && strlen (s1) < ((size_t) (n))) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:803:30: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s2_len = strlen (s2), \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:806:27: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:808:26: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s1_len < 4) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:810:26: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:815:29: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:817:26: note: expanded from macro 'strcmp'
# : __builtin_strcmp (s1, s2)))); })
# ^~
# analyze.c:47:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,rtf_sign,4)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:34: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:899:21: note: expanded from macro 'strncmp'
# && strlen (s1) < ((size_t) (n))) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:803:30: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s2_len = strlen (s2), \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:806:27: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:808:26: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s1_len < 4) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:810:26: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:815:29: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:817:26: note: expanded from macro 'strcmp'
# : __builtin_strcmp (s1, s2)))); })
# ^~
# analyze.c:49:21: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# } else if (strncmp(buffer,old_word_sign,2)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:34: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:899:21: note: expanded from macro 'strncmp'
# && strlen (s1) < ((size_t) (n))) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:803:30: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s2_len = strlen (s2), \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:806:27: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:808:26: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s1_len < 4) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:810:26: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:815:29: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:817:26: note: expanded from macro 'strcmp'
# : __builtin_strcmp (s1, s2)))); })
# ^~
# analyze.c:54:14: warning: passing 'unsigned char [129]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(buffer,ole_sign,8)==0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:34: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# analyze.c:75:14: warning: passing 'unsigned char [129]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# copy_out(f,buffer);
# ^~~~~~
# ./catdoc.h:220:30: note: passing argument to parameter 'header' here
# void copy_out(FILE *f, char *header);
# ^
# 33 warnings generated.
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o rtfread.o rtfread.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o charsets.o charsets.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o substmap.o substmap.c
# substmap.c:75:24: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
# if (!isspace(*p)|| uc<0 || uc>0xfffd) {
# ~~^~
# 1 warning generated.
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o fileutil.o fileutil.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o confutil.o confutil.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o numutils.o numutils.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o ole.o ole.c
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:899:21: note: expanded from macro 'strncmp'
# && strlen (s1) < ((size_t) (n))) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:901:17: note: expanded from macro 'strncmp'
# && strlen (s2) < ((size_t) (n)))) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:803:30: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s2_len = strlen (s2), \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:19: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:803:54: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s2_len = strlen (s2), \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:806:27: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:19: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:806:31: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:808:26: note: expanded from macro 'strcmp'
# && (__s1_len = strlen (s1), __s1_len < 4) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:810:26: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:19: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:810:30: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:19: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:813:29: note: expanded from macro 'strcmp'
# && (__s2_len = strlen (s2), __s2_len < 4) \
# ^~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:815:29: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:19: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:815:33: note: expanded from macro 'strcmp'
# ? __builtin_strcmp (s1, s2) \
# ^~
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:15: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:817:26: note: expanded from macro 'strcmp'
# : __builtin_strcmp (s1, s2)))); })
# ^~
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:19: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/bits/string2.h:817:30: note: expanded from macro 'strcmp'
# : __builtin_strcmp (s1, s2)))); })
# ^~
# ole.c:100:14: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~
# /usr/include/bits/string2.h:902:34: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/string.h:143:33: note: passing argument to parameter '__s1' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# ole.c:100:21: warning: passing 'unsigned char [9]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (strncmp(oleBuf,ole_sign,8) != 0) {
# ^~~~~~~~
# /usr/include/bits/string2.h:902:38: note: expanded from macro 'strncmp'
# ? strcmp (s1, s2) : strncmp (s1, s2, n)))
# ^~
# /usr/include/string.h:143:51: note: passing argument to parameter '__s2' here
# extern int strncmp (const char *__s1, const char *__s2, size_t __n)
# ^
# ole.c:327:13: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
# e->length >= 0 &&
# ~~~~~~~~~ ^ ~
# ole.c:464:35: warning: if statement has empty body [-Wempty-body]
# if (newoffset != e->file_offset);
# ^
# ole.c:464:35: note: put the semicolon on a separate line to silence this warning
# 18 warnings generated.
# clang -o catdoc catdoc.o reader.o writer.o analyze.o rtfread.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o xls2csv.o xls2csv.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o sheet.o sheet.c
# sheet.c:97:13: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# strtod(value,&endptr);
# ^~~~~
# /usr/include/stdlib.h:164:46: note: passing argument to parameter '__nptr' here
# extern double strtod (const char *__restrict __nptr,
# ^
# 1 warning generated.
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o xlsparse.o xlsparse.c
# xlsparse.c:95:20: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# rectype=getshort(buffer,0);
# ^~~~~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:101:19: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# reclen=getshort(buffer,0);
# ^~~~~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:112:31: warning: passing 'unsigned char [18000]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# process_item(rectype,reclen,rec);
# ^~~
# ./xls.h:37:51: note: passing argument to parameter 'rec' here
# void process_item (int rectype, int reclen, char *rec);
# ^
# xlsparse.c:138:13: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# parse_sst(sstBuffer,sstBytes);
# ^~~~~~~~~
# ./xls.h:36:22: note: passing argument to parameter 'sstbuf' here
# void parse_sst(char *sstbuf,int bufsize);
# ^
# xlsparse.c:153:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# codepage=getshort(rec,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:163:24: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# format_code=getshort(rec,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:194:12: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# sstBuffer=(char*)malloc(reclen);
# ^~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:222:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:223:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:226:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=copy_unicode_string(&src);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:230:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:231:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:239:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:240:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# startcol = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:241:19: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# endcol=getshort(rec,reclen-2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:247:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# int row = getshort(rec,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:248:22: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# int col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:250:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# int string_no=getshort(rec,6);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:265:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# len=strlen(sst[string_no]);
# ^~~~~~~~~~~~~~
# /usr/include/string.h:394:35: note: passing argument to parameter '__s' here
# extern size_t strlen (const char *__s)
# ^
# xlsparse.c:266:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# outptr=*pcell=malloc(len+1);
# ^~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:267:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# strcpy(outptr,sst[string_no]);
# ^~~~~~~~~~~~~~
# /usr/include/string.h:125:70: note: passing argument to parameter '__src' here
# extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
# ^
# xlsparse.c:270:11: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# strcpy(*pcell,"");
# ^~~~~~
# /usr/include/string.h:125:39: note: passing argument to parameter '__dest' here
# extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
# ^
# xlsparse.c:282:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0)-startrow;
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:283:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:41: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:66: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# /usr/include/bits/string2.h:93:28: note: expanded from macro '__string2_1bptr_p'
# ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:66: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# /usr/include/bits/string2.h:93:63: note: expanded from macro '__string2_1bptr_p'
# ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1281:25: note: expanded from macro '__strdup'
# ? (((const char *) (s))[0] == '\0' \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1283:36: note: expanded from macro '__strdup'
# : ({ size_t __len = strlen (s) + 1; \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1286:46: note: expanded from macro '__strdup'
# __retval = (char *) memcpy (__retval, s, __len); \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:46: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1288:17: note: expanded from macro '__strdup'
# : __strdup (s)))
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:285:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,getshort(rec,4)));
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:292:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0)-startrow;
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:293:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:41: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:41: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:66: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# /usr/include/bits/string2.h:93:28: note: expanded from macro '__string2_1bptr_p'
# ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:66: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# /usr/include/bits/string2.h:93:28: note: expanded from macro '__string2_1bptr_p'
# ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:66: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# /usr/include/bits/string2.h:93:63: note: expanded from macro '__string2_1bptr_p'
# ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1280:66: note: expanded from macro '__strdup'
# (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \
# ^
# /usr/include/bits/string2.h:93:63: note: expanded from macro '__string2_1bptr_p'
# ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1281:25: note: expanded from macro '__strdup'
# ? (((const char *) (s))[0] == '\0' \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1281:25: note: expanded from macro '__strdup'
# ? (((const char *) (s))[0] == '\0' \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1283:36: note: expanded from macro '__strdup'
# : ({ size_t __len = strlen (s) + 1; \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1283:36: note: expanded from macro '__strdup'
# : ({ size_t __len = strlen (s) + 1; \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1286:46: note: expanded from macro '__strdup'
# __retval = (char *) memcpy (__retval, s, __len); \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1286:46: note: expanded from macro '__strdup'
# __retval = (char *) memcpy (__retval, s, __len); \
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1288:17: note: expanded from macro '__strdup'
# : __strdup (s)))
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:53: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~
# /usr/include/bits/string2.h:1291:32: note: expanded from macro 'strdup'
# # define strdup(s) __strdup (s)
# ^
# /usr/include/bits/string2.h:1288:17: note: expanded from macro '__strdup'
# : __strdup (s)))
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:295:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_int(getshort(rec,7),getshort(rec,4)));
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:304:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0)-startrow;
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:305:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:307:26: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# format_code = getshort(rec,4);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:308:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_rk(rec+6,format_code));
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:314:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0)-startrow;
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:315:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# startcol = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:316:21: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# endcol = getshort(rec,reclen-2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:321:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# format_code=getshort(rec,offset);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:322:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_rk(rec+offset+2,format_code));
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:331:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# row = getshort(rec,0)-startrow;
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:332:18: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# col = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:340:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(buf);
# ^~~~~~~~~~~~
# xlsparse.c:344:11: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(buf);
# ^~~~~~~~~~~~
# xlsparse.c:349:29: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# int format_code=getshort(rec,4);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:350:10: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *pcell=strdup(format_double(rec,6,format_code));
# ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:360:19: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *saved_reference=copy_unicode_string(&src);
# ^~~~~~~~~~~~~~~~~~~~~~~~~~
# xlsparse.c:373:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# short int formatIndex = getshort(rec,2);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:392:16: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# if (getshort(rec, 0) == 1)
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:495:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# for (s=*src,d=dest,i=0;i
# ^~~~~
# xlsparse.c:507:31: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# u=(unsigned short)getshort(s,0);
# ^
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# xlsparse.c:531:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *src=s+to_skip;
# ^~~~~~~~~~
# xlsparse.c:768:20: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# sstsize = getlong(sstbuf+4,0);
# ^~~~~~~~
# ./catdoc.h:233:33: note: passing argument to parameter 'buffer' here
# long int getlong(unsigned char *buffer,int offset);
# ^
# xlsparse.c:776:37: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# for (i=0,parsedString=sst,curString=sstbuf+8;
# ^~~~~~~~~
# xlsparse.c:779:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# *parsedString = copy_unicode_string(&curString);
# ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 73 warnings generated.
# clang -o xls2csv xls2csv.o sheet.o xlsparse.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o -lm
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o catppt.o catppt.c
# clang -I. -g -O2 -Wall -DHAVE_CONFIG_H -DCATDOC_VERSION=\"0.94.4\" -DCHARSETPATH=\"/usr/share/catdoc\" -DSYSTEMRC=\"/usr/etc/catdocrc\" -DUSERRC=\".catdocrc\" -DHAVE_CONFIG_H -c -o pptparse.o pptparse.c
# pptparse.c:155:32: warning: passing 'char [2]' to parameter of type 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
# u=(unsigned short)getshort(buf,0);
# ^~~
# ./catdoc.h:235:38: note: passing argument to parameter 'buffer' here
# unsigned int getshort(unsigned char *buffer,int offset);
# ^
# 1 warning generated.
# clang -o catppt catppt.o pptparse.o charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o -lm
# echo "#! /usr/bin/wish" >wordview
# echo set charset_lib "\"/usr/share/catdoc\"">>wordview
# cat wordview.tcl >>wordview
# chmod 0755 wordview
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/src'
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/doc'
# touch build
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/doc'
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/charsets'
# make[1]: Nothing to be done for 'all'.
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/charsets'
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/desktop'
# make[1]: Nothing to be done for 'all'.
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/desktop'
# ==> Entering fakeroot environment...
# ==> Starting package()...
# for i in src doc charsets desktop; do\
# (cd $i; make install);\
# done
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/src'
# ../mkinstalldirs /tmp/catdoc/pkg/catdoc/usr/bin
# mkdir /tmp/catdoc/pkg/catdoc/usr
# mkdir /tmp/catdoc/pkg/catdoc/usr/bin
# /usr/bin/install -c -m 755 catdoc /tmp/catdoc/pkg/catdoc/usr/bin/catdoc
# /usr/bin/install -c -m 755 xls2csv /tmp/catdoc/pkg/catdoc/usr/bin/xls2csv
# /usr/bin/install -c -m 755 catppt /tmp/catdoc/pkg/catdoc/usr/bin/catppt
# ../mkinstalldirs /tmp/catdoc/pkg/catdoc/usr/bin
# /usr/bin/install -c -m 755 wordview /tmp/catdoc/pkg/catdoc/usr/bin/wordview
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/src'
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/doc'
# make[1]: *** No rule to make target 'install'. Stop.
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/doc'
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/charsets'
# ../mkinstalldirs /tmp/catdoc/pkg/catdoc/usr/share/catdoc
# mkdir /tmp/catdoc/pkg/catdoc/usr/share
# mkdir /tmp/catdoc/pkg/catdoc/usr/share/catdoc
# /usr/bin/install -c -m 644 ascii.spc /tmp/catdoc/pkg/catdoc/usr/share/catdoc/ascii.specchars
# /usr/bin/install -c -m 644 tex.spc /tmp/catdoc/pkg/catdoc/usr/share/catdoc/tex.specchars
# /usr/bin/install -c -m 644 ascii.rpl /tmp/catdoc/pkg/catdoc/usr/share/catdoc/ascii.replchars
# /usr/bin/install -c -m 644 tex.rpl /tmp/catdoc/pkg/catdoc/usr/share/catdoc/tex.replchars
# for i in *.txt; do\
# /usr/bin/install -c -m 0644 $i /tmp/catdoc/pkg/catdoc/usr/share/catdoc;\
# done
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/charsets'
# make[1]: Entering directory '/tmp/catdoc/src/catdoc-0.94.4/desktop'
# ../mkinstalldirs /tmp/catdoc/pkg/catdoc/usr/share/applications
# mkdir /tmp/catdoc/pkg/catdoc/usr/share/applications
# ../mkinstalldirs /tmp/catdoc/pkg/catdoc/usr/share/pixmaps
# mkdir /tmp/catdoc/pkg/catdoc/usr/share/pixmaps
# /usr/bin/install -c -m 644 wordview.desktop /tmp/catdoc/pkg/catdoc/usr/share/applications/wordview.desktop
# /usr/bin/install -c -m 644 wordview.xpm /tmp/catdoc/pkg/catdoc/usr/share/pixmaps/wordview.xpm
# make[1]: Leaving directory '/tmp/catdoc/src/catdoc-0.94.4/desktop'
# ==> Tidying install...
# -> Removing doc files...
# -> Purging unwanted files...
# ==> Checking for packaging issue...
# ==> Creating package "catdoc"...
# -> Generating .PKGINFO file...
# -> Generating .BUILDINFO file...
# error: invalid option '--noprogressbar'
# -> Generating .MTREE file...
# -> Compressing package...
# ==> Leaving fakeroot environment.
# ==> Finished making: catdoc 0.94.4-1 (Thu Apr 13 11:49:52 UTC 2017)

CMD: pacman --query --file catdoc-0.94.4-1-x86_64.pkg.tar.xz
# catdoc 0.94.4-1

Creating hybrid package for 'catdoc'

Trying to find vanilla package 'catdoc'...

CMD: pacman --query --file /mirror/catdoc-0.94.4-1.pkg.tar.xz
# catdoc 0.94.4-1

Package file has the following structure:
# /.PKGINFO
# /.MTREE
# /usr/bin/wordview
# /usr/bin/catdoc
# /usr/bin/xls2csv
# /usr/bin/catppt
# /usr/share/catdoc/ascii.specchars
# /usr/share/catdoc/tex.specchars
# /usr/share/catdoc/ascii.replchars
# /usr/share/catdoc/tex.replchars
# /usr/share/catdoc/8859-1.txt
# /usr/share/catdoc/8859-10.txt
# /usr/share/catdoc/8859-11.txt
# /usr/share/catdoc/8859-13.txt
# /usr/share/catdoc/8859-14.txt
# /usr/share/catdoc/8859-15.txt
# /usr/share/catdoc/8859-2.txt
# /usr/share/catdoc/8859-3.txt
# /usr/share/catdoc/8859-4.txt
# /usr/share/catdoc/8859-5.txt
# /usr/share/catdoc/8859-6.txt
# /usr/share/catdoc/8859-7.txt
# /usr/share/catdoc/8859-8.txt
# /usr/share/catdoc/8859-9.txt
# /usr/share/catdoc/big5.txt
# /usr/share/catdoc/cns11643.txt
# /usr/share/catdoc/cp1250.txt
# /usr/share/catdoc/cp1251.txt
# /usr/share/catdoc/cp1252.txt
# /usr/share/catdoc/cp1253.txt
# /usr/share/catdoc/cp1254.txt
# /usr/share/catdoc/cp1255.txt
# /usr/share/catdoc/cp1256.txt
# /usr/share/catdoc/cp1257.txt
# /usr/share/catdoc/cp1258.txt
# /usr/share/catdoc/cp437.txt
# /usr/share/catdoc/cp850.txt
# /usr/share/catdoc/cp852.txt
# /usr/share/catdoc/cp855.txt
# /usr/share/catdoc/cp857.txt
# /usr/share/catdoc/cp860.txt
# /usr/share/catdoc/cp861.txt
# /usr/share/catdoc/cp862.txt
# /usr/share/catdoc/cp863.txt
# /usr/share/catdoc/cp864.txt
# /usr/share/catdoc/cp865.txt
# /usr/share/catdoc/cp866.txt
# /usr/share/catdoc/cp869.txt
# /usr/share/catdoc/cp874.txt
# /usr/share/catdoc/hangul.txt
# /usr/share/catdoc/jis0201.txt
# /usr/share/catdoc/jis0208.txt
# /usr/share/catdoc/jis0212.txt
# /usr/share/catdoc/koi8-r.txt
# /usr/share/catdoc/koi8-u.txt
# /usr/share/catdoc/mac-arabic.txt
# /usr/share/catdoc/mac-centeuro.txt
# /usr/share/catdoc/mac-cyrillic.txt
# /usr/share/catdoc/mac-greek.txt
# /usr/share/catdoc/mac-hebrew.txt
# /usr/share/catdoc/mac-roman.txt
# /usr/share/catdoc/shiftjis.txt
# /usr/share/catdoc/us-ascii.txt
# /usr/share/applications/wordview.desktop
# /usr/share/pixmaps/wordview.xpm
# /usr/share/man/man1/catdoc.1.gz
# /usr/share/man/man1/catppt.1.gz
# /usr/share/man/man1/wordview.1.gz
# /usr/share/man/man1/xls2csv.1.gz

Generating .MTREE

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

Tar-ing up files

CMD: bsdtar -cf - .PKGINFO usr .MTREE

CMD: xz -c -z

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

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

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

Attempting to access local repository, attempt 1

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

Printing config logfiles

CMD: config logfiles '/tmp/catdoc/src/catdoc-0.94.4/config.log'
# This file contains any messages produced by compilers while
# running configure, to aid debugging if configure makes a mistake.
#
# configure:549: checking for gcc
# configure:662: checking whether the C compiler (clang ) works
# configure:678: clang -o conftest conftest.c 1>&5
# configure:675:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main(){return(0);}
# ^
# 1 warning generated.
# configure:704: checking whether the C compiler (clang ) is a cross-compiler
# configure:709: checking whether we are using GNU C
# configure:718: clang -E conftest.c
# configure:737: checking whether clang accepts -g
# configure:776: checking whether byte ordering is bigendian
# configure:794: clang -c conftest.c 1>&5
# configure:809: clang -c conftest.c 1>&5
# configure:804:2: error: use of undeclared identifier 'not'
# not big endian
# ^
# 1 error generated.
# configure: failed program was:
# #line 798 "configure"
# #include "confdefs.h"
# #include
# #include
# int main() {
#
# #if BYTE_ORDER != BIG_ENDIAN
# not big endian
# #endif
# ; return 0; }
# configure:896: checking for a BSD compatible install
# configure:1080: checking how to run the C preprocessor
# configure:1101: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1160: checking for ANSI C header files
# configure:1173: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1240: clang -o conftest conftest.c 1>&5
# configure:1235:67: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
# ^
# configure:1235:67: note: include the header or explicitly provide a declaration for 'exit'
# 1 warning generated.
# configure:1267: checking for unistd.h
# configure:1277: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1314: checking for langinfo.h
# configure:1324: clang -E conftest.c >/dev/null 2>conftest.out
# configure:1342: checking For nl_langinfo(CODESET)
# configure:1351: clang -c conftest.c 1>&5
# configure:1381: checking for working const
# configure:1435: clang -c conftest.c 1>&5
# configure:1457: checking whether setvbuf arguments are reversed
# configure:1479: clang -o conftest conftest.c 1>&5
# configure:1468:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
# main () {
# ^
# configure:1472:23: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion]
# if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
# ^~~~~~
# /usr/include/stdio.h:121:16: note: expanded from macro '_IOLBF'
# #define _IOLBF 1 /* Line buffered. */
# ^
# /usr/include/stdio.h:336:65: note: passing argument to parameter '__buf' here
# extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
# ^
# configure:1472:31: warning: incompatible pointer to integer conversion passing 'char *' to parameter of type 'int' [-Wint-conversion]
# if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
# ^~~~~~~~~~~~~
# /usr/include/stdio.h:337:11: note: passing argument to parameter '__modes' here
# int __modes, size_t __n) __THROW;
# ^
# configure:1473:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
# exit(1);
# ^
# configure:1473:5: note: include the header or explicitly provide a declaration for 'exit'
# 4 warnings generated.
# configure: failed program was:
# #line 1465 "configure"
# #include "confdefs.h"
# #include
# /* If setvbuf has the reversed format, exit 0. */
# main () {
# /* This call has the arguments reversed.
# A reversed system may check and see that the address of main
# is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
# if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
# exit(1);
# putc('\r', stdout);
# exit(0); /* Non-reversed systems segv here. */
# }
# configure:1530: checking for strdup
# configure:1558: clang -o conftest -g -O2 -Wall conftest.c 1>&5
# configure:1542:6: warning: incompatible redeclaration of library function 'strdup' [-Wincompatible-library-redeclaration]
# char strdup();
# ^
# configure:1542:6: note: 'strdup' is a builtin with type 'char *(const char *)'
# 1 warning generated.
# configure:1530: checking for strtol
# configure:1558: clang -o conftest -g -O2 -Wall conftest.c 1>&5
# configure:1585: checking for strftime
# configure:1613: clang -o conftest -g -O2 -Wall conftest.c 1>&5