Duke4.net Forums: kgroup and kextract fail to build - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

kgroup and kextract fail to build

User is offline   LoneFox 

#1

With lastest snapshot (r6922) on linux, I'm getting this error when I try to build the tools:

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

1

User is offline   TerminX 

  • el fundador

  #2

Fixed in r6924!
0

User is offline   Hendricks266 

  • Weaponized Autism

  #3

Try adding

int initputs (const char * str) { return puts(str); }


to compat_tools.cpp to fix that linker error.
0

User is offline   LoneFox 

#4

View PostTerminX, on 14 June 2018 - 09:51 AM, said:

Fixed in r6924!


Not completely. The LZ4 errors are gone, but the initputs part still happens.
1

User is offline   TerminX 

  • el fundador

  #5

View PostLoneFox, 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?
0

User is offline   LoneFox 

#6

View PostTerminX, 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.

View PostHendricks266, on 14 June 2018 - 10:10 AM, said:

Try adding

int initputs (const char * str) { return puts(str); }


to compat_tools.cpp to fix that linker error.


This fixes the error. Thanks!
1

User is offline   Hendricks266 

  • Weaponized Autism

  #7

Okay, we'll commit that fix today.

Are you setting up a package for downstream use or something like that?
0

User is offline   LoneFox 

#8

View PostHendricks266, 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.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options