Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739248 - app-text/texlive-core-2020-r9 fails to build on 32bit x86 due to zzip largefile mess
Summary: app-text/texlive-core-2020-r9 fails to build on 32bit x86 due to zzip largefi...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-27 11:53 UTC by Ville Syrjala
Modified: 2020-08-27 20:44 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Syrjala 2020-08-27 11:53:28 UTC
/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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-08-27 11:56:19 UTC
emerge --info and the full build.log is still going to be helpful.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2020-08-27 19:44:30 UTC
Addition of -D_ZZIP_LARGEFILE was already deleted:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abef57edb8f5cea4c8e896a6492a528b7c464f67
Comment 3 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-08-27 20:44:35 UTC
looks invalid as described.