Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not compile #19

Closed
drasko opened this issue Oct 11, 2016 · 5 comments
Closed

Does not compile #19

drasko opened this issue Oct 11, 2016 · 5 comments

Comments

@drasko
Copy link

drasko commented Oct 11, 2016

In file included from /home/drasko/cbor/libcbor/test/assertions.c:8:0:
/home/drasko/cbor/libcbor/test/assertions.h:4:20: fatal error: cmocka.h: No such file or directory
@drasko
Copy link
Author

drasko commented Oct 13, 2016

Lib not maintained any more?

@PJK
Copy link
Owner

PJK commented Oct 14, 2016

You ran make, right?
If you want just the library without the test suite, run make cbor cbor_shared, as described in the docs. Otherwise get https://cmocka.org/. Does this work?

@drasko
Copy link
Author

drasko commented Oct 15, 2016

cmocka is included as git submodule, and I did recursive clone.

Full log:

drasko@Lenin:~/cbor/libcbor/build$ ../buildscript.sh 
cppcheck: error: unrecognized command line option: "--suppressions".
drasko@Lenin:~/cbor/libcbor/build$ cat ../buildscript.sh 
#!/usr/bin/env bash
set -e

PREVD=$(pwd)
cd $SOURCE
cppcheck . --error-exitcode=1 --suppressions cppcheck_suppressions.txt --force
cd $PREVD

cmake $SOURCE -DCMAKE_CUSTOM_ALLOC=ON -DCMAKE_BUILD_TYPE=Debug
make VERBOSE=1
ctest -V

ctest -T memcheck | tee memcheck.out
if grep -q 'Memory Leak\|IPW\|Uninitialized Memory Conditional\|Uninitialized Memory Read' memcheck.out; then
    exit 1
fi
drasko@Lenin:~/cbor/libcbor/build$ cmake .. -DCMAKE_CUSTOM_ALLOC=ON -DCMAKE_BUILD_TYPE=Debug
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file endian.h
-- Looking for include file endian.h - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of size_t
-- Check size of size_t - done
Adding test bad_inputs_test
Adding test callbacks_test
Adding test cbor_serialize_test
Adding test cbor_stream_decode_test
Adding test copy_test
Adding test fuzz_test
Adding test pretty_printer_test
Adding test type_0_encoders_test
Adding test type_0_test
Adding test type_1_encoders_test
Adding test type_1_test
Adding test type_2_encoders_test
Adding test type_2_test
Adding test type_3_encoders_test
Adding test type_3_test
Adding test type_4_encoders_test
Adding test type_4_test
Adding test type_5_encoders_test
Adding test type_5_test
Adding test type_6_encoders_test
Adding test type_6_test
Adding test type_7_encoders_test
Adding test type_7_test
Adding test unicode_test
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CUSTOM_ALLOC


-- Build files have been written to: /home/drasko/cbor/libcbor/build
drasko@Lenin:~/cbor/libcbor/build$ make VERBOSE=1
/usr/bin/cmake -H/home/drasko/cbor/libcbor -B/home/drasko/cbor/libcbor/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/drasko/cbor/libcbor/build/CMakeFiles /home/drasko/cbor/libcbor/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/drasko/cbor/libcbor/build'
make -f src/CMakeFiles/cbor.dir/build.make src/CMakeFiles/cbor.dir/depend
make[2]: Entering directory '/home/drasko/cbor/libcbor/build'
cd /home/drasko/cbor/libcbor/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/drasko/cbor/libcbor /home/drasko/cbor/libcbor/src /home/drasko/cbor/libcbor/build /home/drasko/cbor/libcbor/build/src /home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor.dir/DependInfo.cmake --color=
Dependee "/home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor.dir/DependInfo.cmake" is newer than depender "/home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor.dir/depend.internal".
Dependee "/home/drasko/cbor/libcbor/build/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor.dir/depend.internal".
Scanning dependencies of target cbor
make[2]: Leaving directory '/home/drasko/cbor/libcbor/build'
make -f src/CMakeFiles/cbor.dir/build.make src/CMakeFiles/cbor.dir/build
make[2]: Entering directory '/home/drasko/cbor/libcbor/build'
[  1%] Building C object src/CMakeFiles/cbor.dir/cbor.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor.c.o   -c /home/drasko/cbor/libcbor/src/cbor.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/src/cbor/data.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor.h:12,
                 from /home/drasko/cbor/libcbor/src/cbor.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  1%] Building C object src/CMakeFiles/cbor.dir/cbor/streaming.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/streaming.c.o   -c /home/drasko/cbor/libcbor/src/cbor/streaming.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/streaming.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/streaming.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  2%] Building C object src/CMakeFiles/cbor.dir/cbor/internal/encoders.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/internal/encoders.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/encoders.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/encoders.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/encoders.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  3%] Building C object src/CMakeFiles/cbor.dir/cbor/internal/builder_callbacks.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/internal/builder_callbacks.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/builder_callbacks.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/builder_callbacks.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/builder_callbacks.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  4%] Building C object src/CMakeFiles/cbor.dir/cbor/internal/loaders.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/internal/loaders.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/loaders.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/loaders.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/loaders.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  4%] Building C object src/CMakeFiles/cbor.dir/cbor/internal/stack.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/internal/stack.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/stack.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/stack.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/stack.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  5%] Building C object src/CMakeFiles/cbor.dir/cbor/internal/unicode.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/internal/unicode.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/unicode.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/unicode.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/unicode.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  6%] Building C object src/CMakeFiles/cbor.dir/cbor/encoding.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/encoding.c.o   -c /home/drasko/cbor/libcbor/src/cbor/encoding.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/encoding.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/encoding.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  6%] Building C object src/CMakeFiles/cbor.dir/cbor/serialization.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/serialization.c.o   -c /home/drasko/cbor/libcbor/src/cbor/serialization.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/serialization.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/serialization.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  7%] Building C object src/CMakeFiles/cbor.dir/cbor/arrays.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/arrays.c.o   -c /home/drasko/cbor/libcbor/src/cbor/arrays.c
In file included from /usr/include/string.h:25:0,
                 from /home/drasko/cbor/libcbor/src/cbor/arrays.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  8%] Building C object src/CMakeFiles/cbor.dir/cbor/common.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/common.c.o   -c /home/drasko/cbor/libcbor/src/cbor/common.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/common.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  8%] Building C object src/CMakeFiles/cbor.dir/cbor/floats_ctrls.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/floats_ctrls.c.o   -c /home/drasko/cbor/libcbor/src/cbor/floats_ctrls.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/floats_ctrls.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/floats_ctrls.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[  9%] Building C object src/CMakeFiles/cbor.dir/cbor/bytestrings.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/bytestrings.c.o   -c /home/drasko/cbor/libcbor/src/cbor/bytestrings.c
In file included from /usr/include/string.h:25:0,
                 from /home/drasko/cbor/libcbor/src/cbor/bytestrings.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 10%] Building C object src/CMakeFiles/cbor.dir/cbor/callbacks.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/callbacks.c.o   -c /home/drasko/cbor/libcbor/src/cbor/callbacks.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/callbacks.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/callbacks.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 10%] Building C object src/CMakeFiles/cbor.dir/cbor/strings.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/strings.c.o   -c /home/drasko/cbor/libcbor/src/cbor/strings.c
In file included from /usr/include/string.h:25:0,
                 from /home/drasko/cbor/libcbor/src/cbor/strings.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 11%] Building C object src/CMakeFiles/cbor.dir/cbor/maps.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/maps.c.o   -c /home/drasko/cbor/libcbor/src/cbor/maps.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/maps.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/maps.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 12%] Building C object src/CMakeFiles/cbor.dir/cbor/tags.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/tags.c.o   -c /home/drasko/cbor/libcbor/src/cbor/tags.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/tags.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/tags.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 13%] Building C object src/CMakeFiles/cbor.dir/cbor/ints.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/cbor.dir/cbor/ints.c.o   -c /home/drasko/cbor/libcbor/src/cbor/ints.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/ints.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/ints.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 13%] Linking C static library libcbor.a
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cmake -P CMakeFiles/cbor.dir/cmake_clean_target.cmake
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/cbor.dir/link.txt --verbose=1
/usr/bin/ar qc libcbor.a  CMakeFiles/cbor.dir/cbor.c.o CMakeFiles/cbor.dir/cbor/streaming.c.o CMakeFiles/cbor.dir/cbor/internal/encoders.c.o CMakeFiles/cbor.dir/cbor/internal/builder_callbacks.c.o CMakeFiles/cbor.dir/cbor/internal/loaders.c.o CMakeFiles/cbor.dir/cbor/internal/stack.c.o CMakeFiles/cbor.dir/cbor/internal/unicode.c.o CMakeFiles/cbor.dir/cbor/encoding.c.o CMakeFiles/cbor.dir/cbor/serialization.c.o CMakeFiles/cbor.dir/cbor/arrays.c.o CMakeFiles/cbor.dir/cbor/common.c.o CMakeFiles/cbor.dir/cbor/floats_ctrls.c.o CMakeFiles/cbor.dir/cbor/bytestrings.c.o CMakeFiles/cbor.dir/cbor/callbacks.c.o CMakeFiles/cbor.dir/cbor/strings.c.o CMakeFiles/cbor.dir/cbor/maps.c.o CMakeFiles/cbor.dir/cbor/tags.c.o CMakeFiles/cbor.dir/cbor/ints.c.o
/usr/bin/ranlib libcbor.a
make[2]: Leaving directory '/home/drasko/cbor/libcbor/build'
[ 13%] Built target cbor
make -f src/CMakeFiles/cbor_shared.dir/build.make src/CMakeFiles/cbor_shared.dir/depend
make[2]: Entering directory '/home/drasko/cbor/libcbor/build'
cd /home/drasko/cbor/libcbor/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/drasko/cbor/libcbor /home/drasko/cbor/libcbor/src /home/drasko/cbor/libcbor/build /home/drasko/cbor/libcbor/build/src /home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor_shared.dir/DependInfo.cmake --color=
Dependee "/home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor_shared.dir/DependInfo.cmake" is newer than depender "/home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor_shared.dir/depend.internal".
Dependee "/home/drasko/cbor/libcbor/build/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/drasko/cbor/libcbor/build/src/CMakeFiles/cbor_shared.dir/depend.internal".
Scanning dependencies of target cbor_shared
make[2]: Leaving directory '/home/drasko/cbor/libcbor/build'
make -f src/CMakeFiles/cbor_shared.dir/build.make src/CMakeFiles/cbor_shared.dir/build
make[2]: Entering directory '/home/drasko/cbor/libcbor/build'
[ 14%] Building C object src/CMakeFiles/cbor_shared.dir/cbor.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor.c.o   -c /home/drasko/cbor/libcbor/src/cbor.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/src/cbor/data.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor.h:12,
                 from /home/drasko/cbor/libcbor/src/cbor.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 14%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/streaming.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/streaming.c.o   -c /home/drasko/cbor/libcbor/src/cbor/streaming.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/streaming.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/streaming.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 15%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/internal/encoders.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/internal/encoders.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/encoders.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/encoders.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/encoders.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 16%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/internal/builder_callbacks.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/internal/builder_callbacks.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/builder_callbacks.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/builder_callbacks.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/builder_callbacks.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 17%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/internal/loaders.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/internal/loaders.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/loaders.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/loaders.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/loaders.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 17%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/internal/stack.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/internal/stack.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/stack.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/stack.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/stack.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 18%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/internal/unicode.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/internal/unicode.c.o   -c /home/drasko/cbor/libcbor/src/cbor/internal/unicode.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/unicode.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/internal/unicode.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 19%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/encoding.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/encoding.c.o   -c /home/drasko/cbor/libcbor/src/cbor/encoding.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/encoding.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/encoding.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 19%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/serialization.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/serialization.c.o   -c /home/drasko/cbor/libcbor/src/cbor/serialization.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/serialization.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/serialization.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 20%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/arrays.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/arrays.c.o   -c /home/drasko/cbor/libcbor/src/cbor/arrays.c
In file included from /usr/include/string.h:25:0,
                 from /home/drasko/cbor/libcbor/src/cbor/arrays.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 21%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/common.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/common.c.o   -c /home/drasko/cbor/libcbor/src/cbor/common.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/common.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 21%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/floats_ctrls.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/floats_ctrls.c.o   -c /home/drasko/cbor/libcbor/src/cbor/floats_ctrls.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/floats_ctrls.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/floats_ctrls.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 22%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/bytestrings.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/bytestrings.c.o   -c /home/drasko/cbor/libcbor/src/cbor/bytestrings.c
In file included from /usr/include/string.h:25:0,
                 from /home/drasko/cbor/libcbor/src/cbor/bytestrings.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 23%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/callbacks.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/callbacks.c.o   -c /home/drasko/cbor/libcbor/src/cbor/callbacks.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/callbacks.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/callbacks.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 23%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/strings.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/strings.c.o   -c /home/drasko/cbor/libcbor/src/cbor/strings.c
In file included from /usr/include/string.h:25:0,
                 from /home/drasko/cbor/libcbor/src/cbor/strings.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 24%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/maps.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/maps.c.o   -c /home/drasko/cbor/libcbor/src/cbor/maps.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/maps.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/maps.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 25%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/tags.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/tags.c.o   -c /home/drasko/cbor/libcbor/src/cbor/tags.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/tags.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/tags.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 26%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/ints.c.o
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -Dcbor_shared_EXPORTS -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true -fPIC   -o CMakeFiles/cbor_shared.dir/cbor/ints.c.o   -c /home/drasko/cbor/libcbor/src/cbor/ints.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/build/cbor/common.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/ints.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor/ints.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 26%] Linking C shared library libcbor.so
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/cbor_shared.dir/link.txt --verbose=1
/usr/bin/cc  -fPIC  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true  -shared -Wl,-soname,libcbor.so.0 -o libcbor.so.0.0.0 CMakeFiles/cbor_shared.dir/cbor.c.o CMakeFiles/cbor_shared.dir/cbor/streaming.c.o CMakeFiles/cbor_shared.dir/cbor/internal/encoders.c.o CMakeFiles/cbor_shared.dir/cbor/internal/builder_callbacks.c.o CMakeFiles/cbor_shared.dir/cbor/internal/loaders.c.o CMakeFiles/cbor_shared.dir/cbor/internal/stack.c.o CMakeFiles/cbor_shared.dir/cbor/internal/unicode.c.o CMakeFiles/cbor_shared.dir/cbor/encoding.c.o CMakeFiles/cbor_shared.dir/cbor/serialization.c.o CMakeFiles/cbor_shared.dir/cbor/arrays.c.o CMakeFiles/cbor_shared.dir/cbor/common.c.o CMakeFiles/cbor_shared.dir/cbor/floats_ctrls.c.o CMakeFiles/cbor_shared.dir/cbor/bytestrings.c.o CMakeFiles/cbor_shared.dir/cbor/callbacks.c.o CMakeFiles/cbor_shared.dir/cbor/strings.c.o CMakeFiles/cbor_shared.dir/cbor/maps.c.o CMakeFiles/cbor_shared.dir/cbor/tags.c.o CMakeFiles/cbor_shared.dir/cbor/ints.c.o 
cd /home/drasko/cbor/libcbor/build/src && /usr/bin/cmake -E cmake_symlink_library libcbor.so.0.0.0 libcbor.so.0 libcbor.so
make[2]: Leaving directory '/home/drasko/cbor/libcbor/build'
[ 26%] Built target cbor_shared
make -f test/CMakeFiles/unicode_test.dir/build.make test/CMakeFiles/unicode_test.dir/depend
make[2]: Entering directory '/home/drasko/cbor/libcbor/build'
cd /home/drasko/cbor/libcbor/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/drasko/cbor/libcbor /home/drasko/cbor/libcbor/test /home/drasko/cbor/libcbor/build /home/drasko/cbor/libcbor/build/test /home/drasko/cbor/libcbor/build/test/CMakeFiles/unicode_test.dir/DependInfo.cmake --color=
Dependee "/home/drasko/cbor/libcbor/build/test/CMakeFiles/unicode_test.dir/DependInfo.cmake" is newer than depender "/home/drasko/cbor/libcbor/build/test/CMakeFiles/unicode_test.dir/depend.internal".
Dependee "/home/drasko/cbor/libcbor/build/test/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/drasko/cbor/libcbor/build/test/CMakeFiles/unicode_test.dir/depend.internal".
Scanning dependencies of target unicode_test
make[2]: Leaving directory '/home/drasko/cbor/libcbor/build'
make -f test/CMakeFiles/unicode_test.dir/build.make test/CMakeFiles/unicode_test.dir/build
make[2]: Entering directory '/home/drasko/cbor/libcbor/build'
[ 26%] Building C object test/CMakeFiles/unicode_test.dir/unicode_test.c.o
cd /home/drasko/cbor/libcbor/build/test && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/unicode_test.dir/unicode_test.c.o   -c /home/drasko/cbor/libcbor/test/unicode_test.c
In file included from /usr/include/setjmp.h:25:0,
                 from /home/drasko/cbor/libcbor/test/unicode_test.c:10:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 27%] Building C object test/CMakeFiles/unicode_test.dir/assertions.c.o
cd /home/drasko/cbor/libcbor/build/test && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/unicode_test.dir/assertions.c.o   -c /home/drasko/cbor/libcbor/test/assertions.c
In file included from /usr/include/stdlib.h:24:0,
                 from /home/drasko/cbor/libcbor/src/cbor/data.h:11,
                 from /home/drasko/cbor/libcbor/src/cbor.h:12,
                 from /home/drasko/cbor/libcbor/test/assertions.h:1,
                 from /home/drasko/cbor/libcbor/test/assertions.c:8:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 28%] Building C object test/CMakeFiles/unicode_test.dir/stream_expectations.c.o
cd /home/drasko/cbor/libcbor/build/test && /usr/bin/cc  -DHAVE_ENDIAN_H -D_BSD_SOURCE -I/home/drasko/cbor/libcbor/src -I/home/drasko/cbor/libcbor/test/cmocka/include -I/home/drasko/cbor/libcbor/build  -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true   -o CMakeFiles/unicode_test.dir/stream_expectations.c.o   -c /home/drasko/cbor/libcbor/test/stream_expectations.c
In file included from /usr/include/stdint.h:25:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h:9,
                 from /home/drasko/cbor/libcbor/test/stream_expectations.h:13,
                 from /home/drasko/cbor/libcbor/test/stream_expectations.c:1:
/usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^
[ 29%] Linking C executable unicode_test
cd /home/drasko/cbor/libcbor/build/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/unicode_test.dir/link.txt --verbose=1
/usr/bin/cc   -std=c99 -g -O0 -Wall -pedantic -g -ggdb -DDEBUG=true  -g CMakeFiles/unicode_test.dir/unicode_test.c.o CMakeFiles/unicode_test.dir/assertions.c.o CMakeFiles/unicode_test.dir/stream_expectations.c.o  -o unicode_test -rdynamic -lcmocka ../src/libcbor.a 
/usr/bin/ld: cannot find -lcmocka
collect2: error: ld returned 1 exit status
test/CMakeFiles/unicode_test.dir/build.make:147: recipe for target 'test/unicode_test' failed
make[2]: *** [test/unicode_test] Error 1
make[2]: Leaving directory '/home/drasko/cbor/libcbor/build'
CMakeFiles/Makefile2:1176: recipe for target 'test/CMakeFiles/unicode_test.dir/all' failed
make[1]: *** [test/CMakeFiles/unicode_test.dir/all] Error 2
make[1]: Leaving directory '/home/drasko/cbor/libcbor/build'
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
drasko@Lenin:~/cbor/libcbor/build$ 

@PJK
Copy link
Owner

PJK commented Oct 17, 2016

cmocka is included as git submodule, and I did recursive clone.

Yes, but it is not built by the CMake. Presumably it should be, but it behaves as described (http://libcbor.readthedocs.io/en/latest/development.html).

@PJK
Copy link
Owner

PJK commented Nov 6, 2016

The changes introduced in #20 should prevent any future misunderstandings

@PJK PJK closed this as completed Nov 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants