{"action":"created","issue":{"url":"https://api.github.com/repos/libyal/libewf/issues/26","labels_url":"https://api.github.com/repos/libyal/libewf/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/libyal/libewf/issues/26/comments","events_url":"https://api.github.com/repos/libyal/libewf/issues/26/events","html_url":"https://github.com/libyal/libewf/issues/26","id":92158341,"number":26,"title":"Fails to build with recent libcstring","user":{"login":"xambroz","id":723625,"avatar_url":"https://avatars.githubusercontent.com/u/723625?v=3","gravatar_id":"","url":"https://api.github.com/users/xambroz","html_url":"https://github.com/xambroz","followers_url":"https://api.github.com/users/xambroz/followers","following_url":"https://api.github.com/users/xambroz/following{/other_user}","gists_url":"https://api.github.com/users/xambroz/gists{/gist_id}","starred_url":"https://api.github.com/users/xambroz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xambroz/subscriptions","organizations_url":"https://api.github.com/users/xambroz/orgs","repos_url":"https://api.github.com/users/xambroz/repos","events_url":"https://api.github.com/users/xambroz/events{/privacy}","received_events_url":"https://api.github.com/users/xambroz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libyal/libewf/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-30T17:55:55Z","updated_at":"2015-11-25T17:11:26Z","closed_at":null,"body":"Build on Fedora linux fails with the undefined reference to the libcstring_narrow_string_length and libcstring_narrow_string_copy. It seems that such function is no longer in libcstring.\r\n\r\nI have tried with both release 20150126 (5e47a75e30a4dd3068f8210f0a62c37b58329d7f) and current head commit (54b0eada69defd015c49e4e1e1e4e26a27409ba3)\r\n\r\nThis is the error message I get during build.\r\n```\r\n/bin/sh ../libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -Wall  -Wl,-z,relro  -o ewfacquirestream byte_size_string.o digest_hash.o ewfacquirestream.o ewfinput.o ewfoutput.o guid.o imaging_handle.o log_handle.o platform.o process_status.o storage_media_buffer.o -luuid -lhmac -lcsystem -lcsplit -lcdatetime ../libewf/libewf.la -lcnotify -lclocale -lcerror -lcstring  -lbz2 \r\n/bin/sh ../libtool  --tag=CC   --mode=link gcc  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -Wall  -Wl,-z,relro  -o ewfdebug byte_size_string.o ewfdebug.o ewfinput.o ewfoutput.o -lcsystem ../libewf/libewf.la -lcnotify -lclocale -lcerror -lcstring  -lbz2 \r\nlibtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -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  -lodraw -lsmdev -lsmraw -luuid -lcsystem -lcdatetime ../libewf/.libs/libewf.so -L/usr/lib64 -lcdata -lcsplit -luna -lcfile -lcpath -lbfio -lfcache -lfdata -lfvalue -lz -lhmac -lcaes -lcnotify -lclocale -lcthreads -lcerror -lcstring -lbz2\r\nlibtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -Wl,-z -Wl,relro -o .libs/ewfacquirestream byte_size_string.o digest_hash.o ewfacquirestream.o ewfinput.o ewfoutput.o guid.o imaging_handle.o log_handle.o platform.o process_status.o storage_media_buffer.o  -luuid -lcsystem -lcdatetime ../libewf/.libs/libewf.so -L/usr/lib64 -lcthreads -lcdata -lcsplit -luna -lcfile -lcpath -lbfio -lfcache -lfdata -lfvalue -lz -lhmac -lcaes -lcnotify -lclocale -lcerror -lcstring -lbz2\r\nlibtool: link: gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wall -Wl,-z -Wl,relro -o .libs/ewfdebug byte_size_string.o ewfdebug.o ewfinput.o ewfoutput.o  -lcsystem ../libewf/.libs/libewf.so -L/usr/lib64 -lcthreads -lcdata -lcsplit -luna -lcfile -lcpath -lbfio -lfcache -lfdata -lfvalue -lz -lhmac -lcaes -lcnotify -lclocale -lcerror -lcstring -lbz2\r\n../libewf/.libs/libewf.so: undefined reference to `libcstring_narrow_string_length'\r\n../libewf/.libs/libewf.so: undefined reference to `libcstring_narrow_string_copy'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:1091: recipe for target 'ewfacquire' failed\r\nmake[1]: *** [ewfacquire] Error 1\r\nmake[1]: *** Waiting for unfinished jobs....\r\newfacquirestream.o: In function `ewfacquirestream_read_chunk':\r\n/home/mambroz/rpmbuild/BUILD/libewf-54b0eada69defd015c49e4e1e1e4e26a27409ba3/ewftools/ewfacquirestream.c:326: undefined reference to `libcsystem_file_io_read'\r\n../libewf/.libs/libewf.so: undefined reference to `libcstring_narrow_string_length'\r\n../libewf/.libs/libewf.so: undefined reference to `libcstring_narrow_string_copy'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:1095: recipe for target 'ewfacquirestream' failed\r\nmake[1]: *** [ewfacquirestream] Error 1\r\n../libewf/.libs/libewf.so: undefined reference to `libcstring_narrow_string_length'\r\n../libewf/.libs/libewf.so: undefined reference to `libcstring_narrow_string_copy'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:1099: recipe for target 'ewfdebug' failed\r\nmake[1]: *** [ewfdebug] Error 1\r\nmake[1]: Leaving directory '/home/mambroz/rpmbuild/BUILD/libewf-54b0eada69defd015c49e4e1e1e4e26a27409ba3/ewftools'\r\nMakefile:804: recipe for target 'all-recursive' failed\r\nmake: *** [all-recursive] Error 1\r\nerror: Bad exit status from /var/tmp/rpm-tmp.nGlIJ0 (%build)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/libyal/libewf/issues/comments/159676145","html_url":"https://github.com/libyal/libewf/issues/26#issuecomment-159676145","issue_url":"https://api.github.com/repos/libyal/libewf/issues/26","id":159676145,"user":{"login":"uckelman","id":442741,"avatar_url":"https://avatars.githubusercontent.com/u/442741?v=3","gravatar_id":"","url":"https://api.github.com/users/uckelman","html_url":"https://github.com/uckelman","followers_url":"https://api.github.com/users/uckelman/followers","following_url":"https://api.github.com/users/uckelman/following{/other_user}","gists_url":"https://api.github.com/users/uckelman/gists{/gist_id}","starred_url":"https://api.github.com/users/uckelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uckelman/subscriptions","organizations_url":"https://api.github.com/users/uckelman/orgs","repos_url":"https://api.github.com/users/uckelman/repos","events_url":"https://api.github.com/users/uckelman/events{/privacy}","received_events_url":"https://api.github.com/users/uckelman/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T17:11:26Z","updated_at":"2015-11-25T17:11:26Z","body":"I believe what's missing in this case is an `#include \"libewf_libcstring.h\"` near the top of libewf_case_data.c."}}