Open thesamesam opened 2 years ago
Thanks for the report, I will address this soon.
Note however that cacaview
is rather useless when not built with the imlib2 library. If you do not distribute that binary then it is not really a problem, of course.
I'm getting this same error as well when compiling current master commit https://github.com/cacalabs/libcaca/commit/f42aa68fc798db63b7b2a789ae8cf5b90b57b752. Full build log attached.
libtool: link: x86_64-pc-linux-gnu-gcc -m32 -march=native -O3 -pipe -fno-plt -fno-common -fipa-pta -falign-functions=32 -fdevirtualize-at-ltrans -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity -fexcess-precision=fast -w -flto=auto -g -O2 -fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -fvisibility=hidden -DCACA_ENABLE_VISIBILITY -Wl,-O1 -Wl,--as-needed -o .libs/cacadraw cacadraw.o -L/usr/lib ../caca/.libs/libcaca.so -lncursesw -lX11 -lGL -lGLU -lglut -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/libcaca-9999/temp/ccTkO2fm.ltrans0.ltrans.o: in function `load_image':
/var/tmp/portage/media-libs/libcaca-9999/work/libcaca-9999/src/common-image.c:164: undefined reference to `_caca_alloc2d'
libtool: link: x86_64-pc-linux-gnu-gcc -m32 -march=native -O3 -pipe -fno-plt -fno-common -fipa-pta -falign-functions=32 -fdevirtualize-at-ltrans -fuse-linker-plugin -floop-nest-optimize -fgraphite-identity -fexcess-precision=fast -w -flto=auto -g -O2 -fno-strength-reduce -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -fvisibility=hidden -DCACA_ENABLE_VISIBILITY -Wl,-O1 -Wl,--as-needed -o .libs/cacademo cacademo.o -lm -L/usr/lib ../caca/.libs/libcaca.so -lncursesw -lX11 -lGL -lGLU -lglut -lz
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:588: img2txt] Error 1
@samhocevar any thoughts on related pull request #70?
When looking at packaging the new beta20 release for Gentoo, I hit the following error:
Seems like the use of _caca_alloc2d was introduced in 96ff990d5e7cda59c73ab1d5bb77ff0c6e3b34f3 and the common-image usage is outside of the library, so might be exacerbated by 726ede64911802b1b5e638b20ce099e55ea4d3c7.
Attached the full build.log.gz.