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

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

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 

  • 6

#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
  • 5,407

  #2

Fixed in r6924!

EDuke32 wiki svn builds bugs
Join us in #eduke32 on irc.freenode.net!
0

User is offline   Hendricks266 

  • EDuke32 Senior Developer
  • 6,133

  #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 

  • 6

#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,407

  #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?

EDuke32 wiki svn builds bugs
Join us in #eduke32 on irc.freenode.net!
0

User is offline   LoneFox 

  • 6

#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 

  • EDuke32 Senior Developer
  • 6,133

  #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 

  • 6

#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 are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options