Custom Query (39 matches)
Results (1 - 3 of 39)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#39 | fixed | mygetopt.c fails compilation on 64-bit FreeBSD | ||
Description |
Hello, mygetopt.c fails on amd64 FreeBSD: cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../cucul -I../caca -DLIBCACA=1 -DX_DISPLAY_MISSING=1 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -O2 -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -MT img2txt-img2txt.o -MD -MP -MF .deps/img2txt-img2txt.Tpo -c -o img2txt-img2txt.o `test -f 'img2txt.c' || echo './'`img2txt.c mv -f .deps/img2txt-img2txt.Tpo .deps/img2txt-img2txt.Po cc -DHAVE_CONFIG_H -I. -I.. -I.. -I../cucul -I../caca -DLIBCACA=1 -DX_DISPLAY_MISSING=1 -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -O2 -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -MT img2txt-mygetopt.o -MD -MP -MF .deps/img2txt-mygetopt.Tpo -c -o img2txt-mygetopt.o `test -f 'mygetopt.c' || echo './'`mygetopt.c mygetopt.c:29: error: conflicting types for 'uintptr_t' /usr/include/stdint.h:102: error: previous declaration of 'uintptr_t' was here mygetopt.c: In function 'mygetopt': mygetopt.c:46: warning: cast from pointer to integer of different size mygetopt.c:46: warning: cast to pointer from integer of different size *** Error code 1 1) There is some strange construct like this (mygetopt.c:46): char **argv = (char **)(uintptr_t)_argv; What is this needed for? 2) and above (mygetopt.c:29): #ifndef __intptr_t_defined typedef unsigned int uintptr_t; #endif 3) I had to change this to: #ifndef _INTPTR_T_DECLARED typedef unsigned int uintptr_t; #endif and now 64-bit pointers are working. On the other hand, since we have: % grep -i getopt /usr/obj//usr/ports/graphics/libcaca/work/libcaca-0.99.beta13/config.h /* Define to 1 if you have the <getopt.h> header file. */ #define HAVE_GETOPT_H 1 /* Define to 1 if you have the `getopt_long' function. */ #define HAVE_GETOPT_LONG 1 the "mygetopt.[ch]" code isn't going to be used at all. Maybe it makes sense to skip building this component altogether? Greets, --Marcin |
|||
#3 | duplicate | outdated Python bindings | ||
Description |
The libcaca and libcucul Python bindings are terribly outdated. |
|||
#4 | fixed | figfont.c needs cleanup | ||
Description |
figfont.c builds with a lot of warnings: figfont.c: In function 'cucul_put_figchar': figfont.c:184: warning: comparison between signed and unsigned figfont.c:189: warning: comparison between signed and unsigned figfont.c:195: warning: comparison between signed and unsigned figfont.c:214: warning: comparison between signed and unsigned figfont.c:218: warning: comparison between signed and unsigned figfont.c: In function 'flush_figlet': figfont.c:264: warning: comparison between signed and unsigned figfont.c:265: warning: comparison between signed and unsigned figfont.c: At top level: figfont.c:255: warning: 'flush_figlet' defined but not used This part of the code really needs some cleanup. |
Note: See TracQuery
for help on using queries.