Coder Social home page Coder Social logo

chck's Introduction

business card

chck's People

Contributors

bzar avatar cloudef avatar earnestly avatar valpackett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chck's Issues

Linking issue

Fedora 22

[ 95%] Built target wlc_protos
[ 95%] Built target wlc-object
[ 95%] Built target chck_buffer
[ 95%] Built target chck_tqueue
[ 95%] Built target chck_pool
[ 95%] Built target chck_lut
[ 95%] Built target chck_atlas
[ 95%] Built target chck_dl
[ 95%] Built target chck_fs
[ 95%] Built target chck_sjis
[ 95%] Built target chck_xdg
[ 95%] Built target chck_string
[ 95%] Built target chck_unicode
[ 95%] Built target wlc
[ 95%] Built target wlc-tests
Linking C executable example
../src/libwlc.so.0.0.1: undefined reference to `chck_hash_table_set'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_push_back'
../src/libwlc.so.0.0.1: undefined reference to `chck_hash_table_iter'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_to_c_array'
../src/libwlc.so.0.0.1: undefined reference to `chck_pool_add'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_iter'
../src/libwlc.so.0.0.1: undefined reference to `chck_pool'
../src/libwlc.so.0.0.1: undefined reference to `chck_hash_table'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_set_c_array'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_push_front'
../src/libwlc.so.0.0.1: undefined reference to `xdg_shell_interface'
../src/libwlc.so.0.0.1: undefined reference to `xdg_surface_interface'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_get'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_insert'
../src/libwlc.so.0.0.1: undefined reference to `chck_string_release'
../src/libwlc.so.0.0.1: undefined reference to `chck_hash_table_collisions'
../src/libwlc.so.0.0.1: undefined reference to `chck_hash_table_release'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_remove'
../src/libwlc.so.0.0.1: undefined reference to `chck_string_set_cstr'
../src/libwlc.so.0.0.1: undefined reference to `chck_pool_get'
../src/libwlc.so.0.0.1: undefined reference to `chck_string_set_format'
../src/libwlc.so.0.0.1: undefined reference to `chck_pool_remove'
../src/libwlc.so.0.0.1: undefined reference to `chck_pool_release'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_flush'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool'
../src/libwlc.so.0.0.1: undefined reference to `chck_hash_table_get'
../src/libwlc.so.0.0.1: undefined reference to `xdg_popup_interface'
../src/libwlc.so.0.0.1: undefined reference to `chck_iter_pool_release'
../src/libwlc.so.0.0.1: undefined reference to `chck_pool_iter'
../src/libwlc.so.0.0.1: undefined reference to `chck_string_set_cstr_with_length'
../src/libwlc.so.0.0.1: undefined reference to `chck_string_set_varg'
collect2: error: ld returned 1 exit status
example/CMakeFiles/example.dir/build.make:86: recipe for target 'example/example' failed
make[2]: *** [example/example] Error 1
CMakeFiles/Makefile2:1869: recipe for target 'example/CMakeFiles/example.dir/all' failed
make[1]: *** [example/CMakeFiles/example.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

chck in wlc doesn't seem to compile in Debian Stetch

I think it might be because Debian uses ver 5 by default, and ver 5 tries to use CPP-2014... ...I think
I'm able to get it to build by running
sed -i 's/-Wsuggest-attribute=const)/-Wsuggest-attribute=const -std=c11)/g' lib/chck/CMakeLists.txt

[ 8%] Building C object lib/chck/chck/buffer/CMakeFiles/chck_buffer.dir/buffer.c.o
In file included from /srcbuild/wlc/lib/chck/chck/buffer/buffer.h:9:0,
from /srcbuild/wlc/lib/chck/chck/buffer/buffer.c:1:
/srcbuild/wlc/lib/chck/chck/buffer/endianess.h: In function ‘chck_bswap’:
/srcbuild/wlc/lib/chck/chck/buffer/endianess.h:108:4: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
for (uint8_t p = v; p < (uint8_t)v + (memb * size); p += size)
^
/srcbuild/wlc/lib/chck/chck/buffer/endianess.h:108:4: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/srcbuild/wlc/lib/chck/chck/buffer/buffer.c: In function ‘chck_buffer_compress_zlib’:
/srcbuild/wlc/lib/chck/chck/buffer/buffer.c:409:39: warning: passing argument 2 of ‘compress’ from incompatible pointer type
while ((ret = compress(compressed, &dsize, buf->buffer, buf->size)) == Z_BUF_ERROR) {
^
In file included from /srcbuild/wlc/lib/chck/chck/buffer/buffer.c:8:0:
/usr/include/zlib.h:1160:21: note: expected ‘uLongf ’ but argument is of type ‘size_t *’
ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
^
/srcbuild/wlc/lib/chck/chck/buffer/buffer.c: In function ‘chck_buffer_decompress_zlib’:
/srcbuild/wlc/lib/chck/chck/buffer/buffer.c:461:43: warning: passing argument 2 of ‘uncompress’ from incompatible pointer type
while ((ret = uncompress(decompressed, &dsize, buf->buffer, buf->size)) == Z_BUF_ERROR) {
^
In file included from /srcbuild/wlc/lib/chck/chck/buffer/buffer.c:8:0:
/usr/include/zlib.h:1197:21: note: expected ‘uLongf *’ but argument is of type ‘size_t *’
ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
^
lib/chck/chck/buffer/CMakeFiles/chck_buffer.dir/build.make:54: recipe for target 'lib/chck/chck/buffer/CMakeFiles/chck_buffer.dir/buffer.c.o' failed
make[2]: *
* [lib/chck/chck/buffer/CMakeFiles/chck_buffer.dir/buffer.c.o] Error 1
CMakeFiles/Makefile2:1090: recipe for target 'lib/chck/chck/buffer/CMakeFiles/chck_buffer.dir/all' failed
make[1]: *** [lib/chck/chck/buffer/CMakeFiles/chck_buffer.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2

Test 7 fails

Hi,
I'm trying to build chck for Fedora (I'm planning to make it an official Fedora package as well as wlc and sway).

Building I receive the following error:

      Start  7: dl_test
 7/14 Test  #7: dl_test ..........................***Exception: Other  0.02 sec

I'm attaching the whole root log and build log to ease the debug

build.txt
root.txt

Test 12 fails

Hi,
I'm building chck for Fedora and it failed on Fedora 24 x86 and Fedora 23 x86_64 (while it was successful on Fedora 24 x86_64 and armv7hl, Fedora 23 x86 and armv7hl, and Fedora 25 for x86, x86_64 and armv7hl).

This is the log of Fedora 24 x86.
This is the log of Fedora 23 x86_64

And more specifically:

12: thread_queue_test: /builddir/build/BUILD/chck-2efd6cd314884712e9409e54c302afb9b9fff1b0/chck/thread/queue/test.c:36: destructor: Assertion `(item->a == 1 && item->c == 2) || (item->a == 2 && item->c == 1)' failed.

and:

12 - thread_queue_test (Timeout)

Since it worked on many platforms but not that one specifically, what could be the cause.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.