<div dir="ltr">Hi -- <div><br></div><div>I'm attempting to build a docker container of Kea 1.4.0 and hitting an issue around logging initialization when attempting to load hook libraries.</div><div><br></div><div>The relevant bits of the Dockerfile:<br>```<br></div><div><div>FROM ubuntu:18.04</div><div><br></div><div>RUN apt-get update && apt-get install -y --no-install-recommends libtool autoconf g++ libssl-dev liblog4cplus-dev libboost-system-dev</div><div><br></div><div>WORKDIR /build/</div><div><br></div><div>RUN wget <a href="https://www.isc.org/downloads/file/kea-1-4-0-p1/?version=tar-gz" target="_blank">https://www.isc.org/downloads/file/kea-1-4-0-p1/?version=tar-gz</a> -O kea.tar.gz \</div><div>  && mkdir kea && tar -C kea --strip-components=1 -xzf kea.tar.gz \</div><div>  && cd kea && ./configure --enable-shell --enable-static-link \</div><div>  && make -j $(getconf _NPROCESSORS_ONLN) -l $(getconf _NPROCESSORS_ONLN) && make install \</div><div>  && cd /build/ \</div><div>  && rm -r kea*</div></div><div>  && ldconfig</div><div>```</div><div><br></div><div>When I run `kea-dhcp4` with the following config:<br>```<br><div>{</div><div>    "Dhcp4": {</div><div>            "hooks-libraries": [{</div><div>                "library": "/usr/local/lib/hooks/libdhcp_lease_cmds.so"</div><div>            }],</div><div>            "control-socket": {<br></div><div>                "socket-type": "unix",</div><div>                "socket-name": "/tmp/kea-dhcp4-ctrl.sock"</div><div>            },</div><div>            "lease-database": {</div><div>                ...</div><div>            },</div><div>            "expired-leases-processing": {</div><div>                ...</div><div>            },</div><div>            ...</div><div>    },</div><div>    "Logging": {</div><div>            "loggers": [</div><div>            {</div><div>                "name": "kea-dhcp4",</div><div>                "output_options": [</div><div>                { "output": "stdout" }</div><div>                ],</div><div>                "severity": "INFO",</div><div>                "debuglevel": 0</div><div>            }</div><div>            ]</div><div>        }</div><div>}<br>```</div></div><div><br></div><div>I get an error as follows:</div><div>```</div><div><div>2019-01-22 20:44:22.375 ERROR [kea-dhcp4.hooks/142] HOOKS_LOAD_FRAMEWORK_EXCEPTION 'load' function in hook library /usr/local/lib/hooks/libdhcp_lease_cmds.so threw an exception: reason attempt to access logging function before logging has been initialized</div><div>2019-01-22 20:44:22.375 ERROR [kea-dhcp4.hooks/142] HOOKS_UNLOAD_FRAMEWORK_EXCEPTION 'unload' function in hook library /usr/local/lib/hooks/libdhcp_lease_cmds.so threw an exception, reason attempt to access logging function before logging has been initialized</div><div>2019-01-22 20:44:22.375 ERROR [kea-dhcp4.dhcp4/142] DHCP4_PARSER_COMMIT_FAIL parser failed to commit changes: One or more hook libraries failed to load</div><div>2019-01-22 20:44:22.376 ERROR [kea-dhcp4.dhcp4/142] DHCP4_CONFIG_LOAD_FAIL configuration error using file: /usr/local/etc/kea/kea-dhcp4.conf, reason: One or more hook libraries failed to load</div><div>2019-01-22 20:44:22.376 ERROR [kea-dhcp4.dhcp4/142] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp4.conf': One or more hook libraries failed to load</div></div><div>```</div><div><br></div><div>My instinct is that this is an issue with the linking but `ldconfig -p` looks as I would expect. </div><div><br></div><div>Any advice or help would be appreciated.</div><div><br></div><div>Thanks,</div><div>Joe</div></div>