[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#749000: Conflicting return types of cue_scanner_free



Package: libewf
Version: 20130416-3
Severity: wishlist
Usertags: goto-cc

During a rebuild of all packages in a clean sid chroot (and cowbuilder+pbuilder)
the build failed with the following error. Please note that we use our research
compiler tool-chain (using tools from the cbmc package), which permits extended
reporting on type inconsistencies at link time.

[...]
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall  -Wl,--as-needed -Wl,-z,relro -o ewfacquire byte_size_string.o digest_hash.o device_handle.o ewfacquire.o ewfinput.o ewfoutput.o guid.o imaging_handle.o log_handle.o platform.o process_status.o storage_media_buffer.o ../libodraw/libodraw.la ../libsmdev/libsmdev.la ../libsmraw/libsmraw.la -luuid ../libhmac/libhmac.la -lcrypto -ldl ../libcsystem/libcsystem.la ../libcsplit/libcsplit.la ../libewf/libewf.la ../libcnotify/libcnotify.la ../libclocale/libclocale.la ../libcerror/libcerror.la ../libcstring/libcstring.la  -lbz2 
libtool: link: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wl,--as-needed -Wl,-z -Wl,relro -o .libs/ewfacquire byte_size_string.o digest_hash.o device_handle.o ewfacquire.o ewfinput.o ewfoutput.o guid.o imaging_handle.o log_handle.o platform.o process_status.o storage_media_buffer.o  ../libodraw/.libs/libodraw.a ../libsmdev/.libs/libsmdev.a ../libsmraw/.libs/libsmraw.a -lbfio -luuid ../libhmac/.libs/libhmac.a -lcrypto -ldl ../libcsystem/.libs/libcsystem.a ../libcsplit/.libs/libcsplit.a ../libewf/.libs/libewf.so ../libcnotify/.libs/libcnotify.a ../libclocale/.libs/libclocale.a ../libcerror/.libs/libcerror.a ../libcstring/.libs/libcstring.a -lbz2

error: conflicting function declarations "cue_scanner_free"
old definition in module libodraw_cue_parser file libodraw_cue_parser.c line 426
void * (void *)
new definition in module libodraw_cue_scanner file libodraw_cue_scanner.l line 364
void (void *buffer)
Makefile:1037: recipe for target 'ewfacquire' failed
make[2]: *** [ewfacquire] Error 64
make[2]: Leaving directory '/srv/jenkins-slave/workspace/sid-goto-cc-libewf/libewf-20130416/ewftools'
Makefile:824: recipe for target 'all-recursive' failed

As the actual implementation does not return a value, this seems to be just a
mistake here:

http://sources.debian.net/src/libewf/20130416-3/libodraw/libodraw_cue_parser.y?hl=220#L220

Yet it is worth fixing to avoid any future (invalid) use of the presumed return
value.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/forensics-devel/attachments/20140522/dfa6e7ae/attachment.sig>


Reply to: