/usr/lib/gcc/i686-pc-linux-gnu/9.3.0/../../../../i686-pc-linux-gnu/bin/ld: libluamisc.a(libluamisc_a-luazip.o): in function `zip_openfile': luazip.c:(.text+0x28f): undefined reference to `zzip_open_ext_io' collect2: error: ld returned 1 exit status From zzip/conf.h: #if defined ZZIP_LARGEFILE_SENSITIVE # if _FILE_OFFSET_BITS+0 == 64 # define ZZIP_LARGEFILE_RENAME # elif defined _LARGE_FILES /* used on older AIX to get at 64bit off_t */ # define ZZIP_LARGEFILE_RENAME # elif defined _ZZIP_LARGEFILE /* or simply use this one for zzip64 runs */ # define ZZIP_LARGEFILE_RENAME # endif #endif and zzip/zzip.h: #ifdef ZZIP_LARGEFILE_RENAME #define zzip_open_shared_io zzip_open_shared_io64 #define zzip_open_ext_io zzip_open_ext_io64 #define zzip_opendir_ext_io zzip_opendir_ext_io64 #define zzip_dir_open_ext_io zzip_dir_open_ext_io64 #define zzip_plugin_io_t zzip_plugin_io64_t #endif And indeed zzip_open_ext_io64 does exist in the .so, whereas zzip_open_ext_io does not. The zziplib ebuild itself already adds -D_ZZIP_LARGEFILE to CPPFLAGS, so for now I just added the same thing to my texlive-core CFLAGS to get it to build.
emerge --info and the full build.log is still going to be helpful.
Addition of -D_ZZIP_LARGEFILE was already deleted: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abef57edb8f5cea4c8e896a6492a528b7c464f67
looks invalid as described.