Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687008 - dev-libs/libzip-1.5.2-r1 - armv7a-unknown-linux-musleabihf-ld: src/CMakeFiles/zipcmp.dir/zipcmp.c.o: in function `compare_zip': zipcmp.c:(.text+0xe3c): undefined reference to `fts_close'
Summary: dev-libs/libzip-1.5.2-r1 - armv7a-unknown-linux-musleabihf-ld: src/CMakeFiles...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2019-05-30 13:40 UTC by Alpha Bravo
Modified: 2020-07-01 22:12 UTC (History)
2 users (show)

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


Attachments
build.log (libzip-1.5.2-r1_build.log,72.55 KB, text/plain)
2019-05-30 13:40 UTC, Alpha Bravo
Details
emerge --info (libzip-1.5.2-r1_emerge.info,5.00 KB, text/plain)
2019-05-30 13:41 UTC, Alpha Bravo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alpha Bravo 2019-05-30 13:40:30 UTC
Created attachment 578106 [details]
build.log

On muls/armv7a/hardened compiling dev-libs/libzip-1.5.2-r1 fails, probably due to undefined references to fts_close, fts_open and fts_read.
sys-libs/fts-standalone-1.2.7 is installed on the system.
Comment 1 Alpha Bravo 2019-05-30 13:41:46 UTC
Created attachment 578108 [details]
emerge --info
Comment 2 tt_1 2019-06-09 13:55:32 UTC
I can confirm this from amd64 musl profile, and solved it by removing fts-standalone. Would that be an acceptable workaround for you?
Comment 3 Alpha Bravo 2019-06-10 18:48:32 UTC
After removing fts-standalone libzip compiles successfully here but then sys-boot/vboot-utils-72_p20181229 which is the only package on this system that depends on libzip fails with "futility/updater_archive.c:11:10: fatal error: fts.h: No such file or directory"

Removing fts-standalone then compiling libzip then installing fts-standalone and after that trying to compile vboot-utils fails, too, this time with vboot-utils complaining about "undefined reference to `fts_open'"
Comment 4 Alpha Bravo 2019-06-10 20:05:54 UTC
WRT last paragraph of comment 3: cf. https://bugs.gentoo.org/687820
Comment 5 Andreas Sturmlechner gentoo-dev 2019-09-13 20:29:24 UTC
Is there actually anything to do for libzip maintainers here?
Comment 6 Alpha Bravo 2019-11-15 14:42:41 UTC
Probably on musl the linker should be told to link against libfts (cf. bug 687820, comment 8). However this bug doesn't affect me any longer as I don't need libzip anymore.
Comment 7 Andreas Sturmlechner gentoo-dev 2020-07-01 22:12:38 UTC
Assuming fixed in 1.7.1.

https://github.com/nih-at/libzip/commit/be252f36689e9de832b38ec4559b3ffe675de737