WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Missing dependencies in bind.tcz.dep for x86_64 (and maybe x86)  (Read 1332 times)

Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 284
Missing dependencies in bind.tcz.dep for x86_64 (and maybe x86)
« on: September 08, 2023, 08:29:56 PM »
A yearly tradition is developing! Almost the same time last year I reported two missing dependencies in bind.tcz. This time, while again trying to run "dig", I found it now also links to libjemalloc.so.2 and libnghttp2.so.14 (jemalloc.tcz & libnghttp2.tcz).

To be clear, I suggest adding these lines to the TC14 x86_64 (and again possibly x86) bind.tcz.dep file:
Code: [Select]
jemalloc.tcz
libnghttp2.tcz

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Missing dependencies in bind.tcz.dep for x86_64 (and maybe x86)
« Reply #1 on: September 09, 2023, 10:51:27 AM »
Yes, libnghttp2.tcz does need to be added, but I don't see any dependency on jemalloc in any of the binaries. Which file do you see this on?

aus9

  • Guest
Re: Missing dependencies in bind.tcz.dep for x86_64 (and maybe x86)
« Reply #2 on: September 09, 2023, 11:20:04 AM »
hi

Code: [Select]
tc@box:/tmp/tcloop/bind/usr/local/lib$ readelf -d  libisc.so | grep 'NEEDED' | grep libjem
 0x0000000000000001 (NEEDED)             Shared library: [libjemalloc.so.2]

and there may be one more

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Missing dependencies in bind.tcz.dep for x86_64 (and maybe x86)
« Reply #3 on: September 09, 2023, 12:57:00 PM »
The problem is that many configure scripts will autodetect if a library is available and link to it if it finds it. If I build bind by itself after a reboot it will have different dependencies than if I build it along with some other extensions at the same time. This is obviously easier to do rather than reboot dozens of times. Bind has three settings for jemalloc: --with-jemalloc=detect (the default), --with-jemalloc=yes/no, and --without-jemalloc. My build script doesn't have any of these right now, which is how it got in unintentionally. The fix will be to say yes or no, the question is which should I do? No means fewer dependencies (the TCL way usually), yes may mean improved performance. If anyone can make a case for yes then I'll add it, otherwise when I refresh it I'll make sure jemalloc isn't required.


Offline CNK

  • Wiki Author
  • Sr. Member
  • *****
  • Posts: 284
Re: Missing dependencies in bind.tcz.dep for x86_64 (and maybe x86)
« Reply #4 on: September 09, 2023, 05:52:21 PM »
Personally I'm just running Dig from the command line so performance is irrelevent to me. But it's people running BIND for DNS on a busy server that these minor optimisations would be aimed at, so their opinion would matter more.