Unable to run compiled named binary in any directory
Problem: After compiling 9.17.9 from the latest github pull. When I try to move the binary bin/named/named that is created after running "make", to a directory such as /usr/bin/named, when running
named -V I get this error.
/usr/bin/named: error: '/usr/bin/.libs/named' does not exist This script is just a wrapper for named. See the libtool documentation for more information.
I dont get this error if I just run
Details: I was able to compile a working binary for 9.17.9 using the following ./configure paramemters
./configure --enable-dnstap \ --sysconfdir=/etc/bind \ --localstatedir=/ \ --enable-threads \ --enable-largefile \ --with-libtool \ --enable-shared \ --enable-static-exe \ --with-gnu-ld
Thoughts: I did not have this problem compiling 9.16.7. I also did not seem to have to apt install libics-dev, however I needed to for 9.17.9. Also for some reason "--enable-static" keeps giving me this error
configure: error: Static linking is not supported as it disables dlopen() and certain security features (e.g. RELRO, ASLR)
Is this expected? Is --enable-static related to why I cant run the compiled binary in any directory? I assume this is a path issue, I am missing a parameter in my configure, OR I am using a parameter incorrectly.
Any help is welcome!