obj/build/cache1d.o: In function `kdfread_LZ4': cache1d.cpp:(.text+0x333f): undefined reference to `LZ4_decompress_safe' cache1d.cpp:(.text+0x33a9): undefined reference to `LZ4_decompress_safe' obj/build/cache1d.o: In function `dfwrite_LZ4': cache1d.cpp:(.text+0x3658): undefined reference to `LZ4_compressBound' cache1d.cpp:(.text+0x3677): undefined reference to `LZ4_compress_fast' cache1d.cpp:(.text+0x36dd): undefined reference to `LZ4_compress_fast' obj/build/cache1d.o: In function `reportandexit(char const*)': cache1d.cpp:(.text+0x37c3): undefined reference to `initputs' obj/build/cache1d.o: In function `std::enable_if<std::is_integral<long>::value, unsigned long>::type buildprintpiece<long>(long)': cache1d.cpp:(.text._Z15buildprintpieceIlENSt9enable_ifIXsrSt11is_integralIT_E5valueEmE4typeES2_[ _Z15buildprintpieceIlENSt9enable_ifIXsrSt11is_integralIT_E5valueEmE4typeES2_]+0xa7): undefined reference to `initputs' cache1d.cpp:(.text._Z15buildprintpieceIlENSt9enable_ifIXsrSt11is_integralIT_E5valueEmE4typeES2_[ _Z15buildprintpieceIlENSt9enable_ifIXsrSt11is_integralIT_E5valueEmE4typeES2_]+0x18f): undefined reference to `initputs' collect2: error: ld returned 1 exit status
Page 1 of 1
kgroup and kextract fail to build
#1 Posted 14 June 2018 - 12:08 AM
With lastest snapshot (r6922) on linux, I'm getting this error when I try to build the tools:
#3 Posted 14 June 2018 - 10:10 AM
Try adding
to compat_tools.cpp to fix that linker error.
int initputs (const char * str) { return puts(str); }
to compat_tools.cpp to fix that linker error.
#4 Posted 14 June 2018 - 10:14 AM
TerminX, on 14 June 2018 - 09:51 AM, said:
Fixed in r6924!
Not completely. The LZ4 errors are gone, but the initputs part still happens.
#5 Posted 14 June 2018 - 10:16 AM
LoneFox, on 14 June 2018 - 10:14 AM, said:
Not completely. The LZ4 errors are gone, but the initputs part still happens.
I'm unable to reproduce that here. Have you tried "make clean" first?
#6 Posted 14 June 2018 - 10:34 AM
TerminX, on 14 June 2018 - 10:16 AM, said:
I'm unable to reproduce that here. Have you tried "make clean" first?
I'm using a package manager (CRUX pkgutils) to build, it always starts by deleting any old build directories and unpacking the tarball from scratch.
Hendricks266, on 14 June 2018 - 10:10 AM, said:
Try adding
to compat_tools.cpp to fix that linker error.
int initputs (const char * str) { return puts(str); }
to compat_tools.cpp to fix that linker error.
This fixes the error. Thanks!
#7 Posted 14 June 2018 - 10:39 AM
Okay, we'll commit that fix today.
Are you setting up a package for downstream use or something like that?
Are you setting up a package for downstream use or something like that?
#8 Posted 14 June 2018 - 10:43 AM
Hendricks266, on 14 June 2018 - 10:39 AM, said:
Are you setting up a package for downstream use or something like that?
No, this is basically a Linux from Scratch system with package management, so it's only for my own use.
Share this topic:
Page 1 of 1