https://bpa.st/SWKQ
and this is the complete build log:
https://paste.gentoo.zip/hpSEPX1G
and the snippet I find most likely to be relevant:
Code: Select all
# grep -iC 3 error: /tmp/portage/dev-libs/im-3.15/temp/build.log
Tecmake: compiling jas_stream.c ...
gcc -c -Wall -O2 -m64 -fPIC -Ilibjasper2 -I../include -DEXCLUDE_JPG_SUPPORT -DEXCLUDE_MIF_SUPPORT -DEXCLUDE_PNM_SUPPORT -DEXCLUDE_BMP_SUPPORT -DEXCLUDE_PGX_SUPPORT -DEXCLUDE_RAS_SUPPORT -DEXCLUDE_TIFF_SUPPORT -DJAS_GEO_OMIT_PRINTING_CODE -DJAS_BINFILE -DJASPER_2 -DHAVE_UNISTD_H -DJAS_TYPES -DTEC_UNAME=Linux617_64 -DTEC_SYSNAME=Linux -DLinux=6.17 -DTEC_LITTLEENDIAN -DTEC_64 -DFUNCPROTO=15 -DNDEBUG -o ../obj/im_jp2/Linux617_64/jas_stream.o libjasper2/base/jas_stream.c
libjasper2/base/jas_stream.c: In function ‘jas_stream_tmpfile’:
libjasper2/base/jas_stream.c:535:13: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
535 | if (unlink(obj->pathname)) {
| ^~~~~~
libjasper2/base/jas_stream.c: In function ‘file_read’:
libjasper2/base/jas_stream.c:1334:16: error: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
1334 | return read(fileobj->fd, buf, cnt);
| ^~~~
| fread
libjasper2/base/jas_stream.c: In function ‘file_write’:
libjasper2/base/jas_stream.c:1343:16: error: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Wimplicit-function-declaration]
1343 | return write(fileobj->fd, buf, cnt);
| ^~~~~
| fwrite
libjasper2/base/jas_stream.c: In function ‘file_seek’:
libjasper2/base/jas_stream.c:1352:16: error: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration]
1352 | return lseek(fileobj->fd, offset, origin);
| ^~~~~
| fseek
libjasper2/base/jas_stream.c: In function ‘file_close’:
libjasper2/base/jas_stream.c:1361:15: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
1361 | ret = close(fileobj->fd);
| ^~~~~
| pclose
--
make[2]: *** [../tecmake.mak:1771: ../obj/im_jp2/Linux617_64/jas_stream.o] Error 1
make[1]: *** [Makefile:14: im_jp2] Error 2
make: *** [Makefile:4: do_all] Error 2
* ERROR: dev-libs/im-3.15::local failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-libs/im-3.15::local'`,
