CPL Quality Control - failure in cpl on host psdlin2

OS:Linux
OS Version:Scientific Linux release 6.3 (Carbon)
CPU:Intel(R) Xeon(R) E7540 @ 2.00GHz
Hardware:x86_64 (x86_64)
C Compiler:gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)
CFITSIODIR:/home/llundin/Linux64/cfitsio
FFTWDIR:/opt/fftw
GSLDIR:/home/llundin/Linux64/gsl
JAVA_HOME:/vlt/VLT2013/jdk1.6.0_26
WCSDIR:/home/llundin/Linux64/wcs

Failed with exit-value 1

stderr produced by: make clean && make CC=splint -k CFLAGS='+weak +posixstrictlib -globs -retvalother -badflag -fileextensions +messagestreamstdout +warningstreamstdout +errorstreamstdout -D__STRICT_ANSI__' 2>/dev/null | splint_filter.pl

Splint 3.1.1 --- 29 Nov 2004

lt_dlloader.c: (in function loader_callback)
lt_dlloader.c:53:11: Function assert expects arg 1 to be boolean gets
lt_dlvtable *: vtable
Types are incompatible. (Use -type to inhibit warning)
lt_dlloader.c: (in function lt_dlloader_add)
lt_dlloader.c:67:11: Operands of == have incompatible types (lt_module_open *,
int): vtable->module_open == 0
lt_dlloader.c:68:11: Operands of == have incompatible types (lt_module_close *,
int): vtable->module_close == 0
lt_dlloader.c:69:11: Operands of == have incompatible types (lt_find_sym *,
int): vtable->find_sym == 0

Finished checking --- 4 code warnings
Splint 3.1.1 --- 29 Nov 2004

lt_error.c: (in function lt_dladderror)
lt_error.c:52:11: Function assert expects arg 1 to be boolean gets char *:
diagnostic
Types are incompatible. (Use -type to inhibit warning)

Finished checking --- 1 code warning
Splint 3.1.1 --- 29 Nov 2004

ltdl.c: (in function tryall_dlopen_module)
ltdl.c:485:11: Function assert expects arg 1 to be boolean gets lt_dlhandle *:
handle
Types are incompatible. (Use -type to inhibit warning)
ltdl.c:486:11: Function assert expects arg 1 to be boolean gets char *: dirname
ltdl.c:487:11: Function assert expects arg 1 to be boolean gets char *: dlname
ltdl.c:505:3: Buffer overflow possible with sprintf. Recommend using snprintf
instead: sprintf
Use of function that may lead to buffer overflow. (Use -bufferoverflowhigh to
inhibit warning)
ltdl.c: (in function canonicalize_path)
ltdl.c:575:11: Function assert expects arg 1 to be boolean gets char **:
pcanonical
ltdl.c: (in function argzize_path)
ltdl.c:635:11: Function assert expects arg 1 to be boolean gets char *: path
ltdl.c:636:11: Function assert expects arg 1 to be boolean gets char **: pargz
ltdl.c:637:11: Function assert expects arg 1 to be boolean gets size_t *:
pargz_len
ltdl.c: (in function find_file_callback)
ltdl.c:736:11: Function assert expects arg 1 to be boolean gets char **: pdir
ltdl.c:737:11: Function assert expects arg 1 to be boolean gets FILE **: pfile
ltdl.c: (in function trim)
ltdl.c:1006:28: Function memcpy expects arg 3 to be size_t gets int:
(end - str) - 1
To allow arbitrary integral types to match long unsigned, use +longintegral.
ltdl.c: (in function try_dlopen)
ltdl.c:1147:11: Function assert expects arg 1 to be boolean gets lt_dlhandle *:
phandle
ltdl.c:1187:7: Buffer overflow possible with sprintf. Recommend using snprintf
instead: sprintf
ltdl.c:1209:23: Variable dirlen initialized to type int, expects size_t:
(1 + base_name) - canonical
ltdl.c:1280:4: Buffer overflow possible with sprintf. Recommend using snprintf
instead: sprintf
ltdl.c:1385:15: Function assert expects arg 1 to be boolean gets lt_dlhandle:
*phandle
ltdl.c: (in function has_library_ext)
ltdl.c:1512:11: Function assert expects arg 1 to be boolean gets char *:
filename
ltdl.c: (in function lt_argz_insertinorder)
ltdl.c:1705:11: Function assert expects arg 1 to be boolean gets char **: pargz
ltdl.c:1706:11: Function assert expects arg 1 to be boolean gets size_t *:
pargz_len
ltdl.c: (in function lt_argz_insertdir)
ltdl.c:1732:11: Function assert expects arg 1 to be boolean gets char **: pargz
ltdl.c:1733:11: Function assert expects arg 1 to be boolean gets size_t *:
pargz_len
ltdl.c:1734:11: Function assert expects arg 1 to be boolean gets struct dirent
*: dp
ltdl.c:1768:11: Function assert expects arg 1 to be boolean gets char *: buf
ltdl.c: (in function list_files_by_dir)
ltdl.c:1791:11: Function assert expects arg 1 to be boolean gets char **: pargz
ltdl.c:1792:11: Function assert expects arg 1 to be boolean gets size_t *:
pargz_len
ltdl.c: (in function lt_dlclose)
ltdl.c:1939:17: Call to non-function (type lt_module_close *):
cur->vtable->module_close
ltdl.c: (in function lt_dlsym)
ltdl.c:2025:17: Call to non-function (type lt_find_sym *):
handle->vtable->find_sym
ltdl.c:2048:13: Call to non-function (type lt_find_sym *):
handle->vtable->find_sym
ltdl.c: (in function lt_dlpath_insertdir)
ltdl.c:2076:11: Function assert expects arg 1 to be boolean gets char **: ppath
ltdl.c:2091:15: Function assert expects arg 1 to be boolean gets char *: dir
ltdl.c: (in function lt_dlisresident)
ltdl.c:2233:10: Return value type unsigned int does not match declared type
int: ((handle)->info.is_resident)
To ignore signs in type comparisons use +ignoresigns
ltdl.c: (in function lt_dlhandle_iterate)
ltdl.c:2360:11: Function assert expects arg 1 to be boolean gets
lt_dlinterface_id: iface
ltdl.c: (in function lt_dlhandle_fetch)
ltdl.c:2383:11: Function assert expects arg 1 to be boolean gets
lt_dlinterface_id: iface
ltdl.c: (in function lt_dlhandle_map)
ltdl.c:2403:11: Function assert expects arg 1 to be boolean gets
lt_dlinterface_id: iface

Finished checking --- 34 code warnings
Splint 3.1.1 --- 29 Nov 2004

slist.c: (in function lt__slist_delete)
slist.c:55:11: Function assert expects arg 1 to be boolean gets [function (void
*) returns void] *: delete_fct
Types are incompatible. (Use -type to inhibit warning)
slist.c: (in function lt__slist_remove)
slist.c:82:11: Function assert expects arg 1 to be boolean gets SListCallback
*: find
slist.c: (in function lt__slist_find)
slist.c:121:11: Function assert expects arg 1 to be boolean gets SListCallback
*: find
slist.c: (in function lt__slist_foreach)
slist.c:245:11: Function assert expects arg 1 to be boolean gets SListCallback
*: foreach

Finished checking --- 4 code warnings
Splint 3.1.1 --- 29 Nov 2004

cxfileutils.c: (in function cx_path_alloc)
cxfileutils.c:150:22: Function cx_calloc expects arg 1 to be cxsize gets long
int: cx_path_max(path) + 1
Types are incompatible. (Use -type to inhibit warning)

Finished checking --- 1 code warning
Splint 3.1.1 --- 29 Nov 2004

cxmap.c: (in function cx_map_count)
cxmap.c:635:12: Return value type int does not match declared type cxsize:
cx_tree_find(map, key) == cx_tree_end(map) ? 0 : 1
Types are incompatible. (Use -type to inhibit warning)

Finished checking --- 1 code warning
Splint 3.1.1 --- 29 Nov 2004

cxmessages.c: (in function cx_debug_parse_string)
cxmessages.c:180:52: Function cx_strncasecmp expects arg 3 to be cxsize gets
int: q - p
Types are incompatible. (Use -type to inhibit warning)
cxmessages.c: (in function cx_debug_init)
cxmessages.c:209:48: Function cx_debug_parse_string expects arg 3 to be cxuint
gets arbitrary unsigned integral type:
(sizeof((keys)) / sizeof(((keys)[0])))
cxmessages.c: (in function cx_msg_format_unsigned)
cxmessages.c:312:9: Assignment of cxulong to cxchar: c = (value % radix)
cxmessages.c: (in function cx_log_prefix_init)
cxmessages.c:423:51: Function cx_debug_parse_string expects arg 3 to be cxuint
gets arbitrary unsigned integral type:
(sizeof((keys)) / sizeof(((keys)[0])))
cxmessages.c: (in function cx_logv)
cxmessages.c:989:28: Variable depth initialized to type cxint, expects cxuint:
((cxint)(cxlong)(pthread_getspecific((cx_log_depth))))
cxmessages.c:1076:17: Unrecognized identifier: va_copy
Identifier used in code has not been declared. (Use -unrecog to inhibit
warning)

Finished checking --- 6 code warnings
Splint 3.1.1 --- 29 Nov 2004

cxstring.c: (in function cx_string_insert)
cxstring.c:704:34: Function strncpy expects arg 3 to be size_t gets cxssize:
position
To allow arbitrary integral types to match long unsigned, use +longintegral.
cxstring.c: (in function cx_string_erase)
cxstring.c:761:9: Assignment of unsigned long int to cxssize:
length = self->sz - position
Types are incompatible. (Use -type to inhibit warning)
cxstring.c:772:34: Function strncpy expects arg 3 to be size_t gets cxssize:
position

Finished checking --- 3 code warnings
Splint 3.1.1 --- 29 Nov 2004

cxstrutils.c: (in function cx_strsplit)
cxstrutils.c:691:13: Assignment of int to cxsize: length = s - remainder
Types are incompatible. (Use -type to inhibit warning)

Finished checking --- 1 code warning
Splint 3.1.1 --- 29 Nov 2004

cxtree.c:195:1: File static function _cx_tnode_set_key declared but not used
A function is declared but not used. Use /*@unused@*/ in front of function
header to suppress message. (Use -fcnuse to inhibit warning)
cxtree.c:201:1: Definition of _cx_tnode_set_key

Finished checking --- 1 code warning
Splint 3.1.1 --- 29 Nov 2004

cxutils.c: (in function cx_vasprintf)
cxutils.c:432:9: Unrecognized identifier: va_copy
Identifier used in code has not been declared. (Use -unrecog to inhibit
warning)
cxutils.c:448:49: Function cx_vsnprintf expects arg 2 to be cxsize gets int:
nc + 1
Types are incompatible. (Use -type to inhibit warning)
cxutils.c: (in function cx_line_alloc)
cxutils.c:509:32: Function cx_calloc expects arg 1 to be cxsize gets cxlong: sz

Finished checking --- 3 code warnings
Splint 3.1.1 --- 29 Nov 2004

cxdeque.c:231:1: File static function _cx_deque_balance declared but not used
A function is declared but not used. Use /*@unused@*/ in front of function
header to suppress message. (Use -fcnuse to inhibit warning)
cxdeque.c:267:1: Definition of _cx_deque_balance
cxdeque.c:275:1: File static function _cx_deque_first declared but not used
cxdeque.c:278:1: Definition of _cx_deque_first
cxdeque.c:286:1: File static function _cx_deque_last declared but not used
cxdeque.c:289:1: Definition of _cx_deque_last

Finished checking --- 3 code warnings
Splint 3.1.1 --- 29 Nov 2004

cpl_xmemory.c: (in function cpl_xmemory_malloc_count)
cpl_xmemory.c:202:59: Unrecognized format code: %zu) returned NULL:\n
Format code in a format string is not valid. (Use -formatcode to inhibit
warning)
cpl_xmemory.c: (in function cpl_xmemory_calloc_count)
cpl_xmemory.c:248:59: Unrecognized format code: %zu, %zu) returned "
"NULL:\n
cpl_xmemory.c:248:64: Unrecognized format code: %zu) returned "
"NULL:\n
cpl_xmemory.c: (in function cpl_xmemory_realloc_count)
cpl_xmemory.c:286:68: Unrecognized format code: %zu bytes on "
"unallocated pointer (%p)\n
cpl_xmemory.c:298:72: Unrecognized format code: %zu) "
"returned NULL:\n
cpl_xmemory.c: (in function cpl_xmemory_realloc)
cpl_xmemory.c:457:72: Unrecognized format code: %zu bytes"
" requested on unallocated pointer
(%p)\n
cpl_xmemory.c:465:72: Unrecognized format code: %zu bytes"
" requested on unallocated pointer
(%p)\n
cpl_xmemory.c: (in function cpl_xmemory_status)
cpl_xmemory.c:597:57: Unrecognized format code: %zu\n"
"Peak memory allocation [B]: %zu\n"
"Peak table size [pointer]: %zu\n"
"Peak table size [B]: %zu\n
cpl_xmemory.c:597:119: Unrecognized format code: %zu\n"
"Peak table size [pointer]: %zu\n"
"Peak table size [B]: %zu\n
cpl_xmemory.c:597:181: Unrecognized format code: %zu\n"
"Peak table size [B]:
%zu\n
cpl_xmemory.c:597:243: Unrecognized format code: %zu\n
cpl_xmemory.c:606:94: Unrecognized format code: %zu\n
cpl_xmemory.c:616:61: Unrecognized format code: %zu\n
cpl_xmemory.c:626:57: Unrecognized format code: %zu\n"
"Current table size [pointer]: %zu\n"
"Current table size [B]: %zu\n
cpl_xmemory.c:626:119: Unrecognized format code: %zu\n"
"Current table size [B]:
%zu\n
cpl_xmemory.c:626:181: Unrecognized format code: %zu\n
cpl_xmemory.c:641:62: Unrecognized format code: %zu bytes\n
cpl_xmemory.c:648:42: Unrecognized format code: %zu\n
cpl_xmemory.c:649:42: Unrecognized format code: %zu\n
cpl_xmemory.c:650:42: Unrecognized format code: %zu\n
cpl_xmemory.c: (in function cpl_xmemory_init_alloc)
cpl_xmemory.c:759:113: Unrecognized format code: %zu:\n
cpl_xmemory.c: (in function cpl_xmemory_resize)
cpl_xmemory.c:801:106: Unrecognized format code: %zu < %zu:\n
cpl_xmemory.c:801:112: Unrecognized format code: %zu:\n

Finished checking --- 23 code warnings
13 files out of 75 had warnings