Cannot build on macOS 10.15 (Catalina)
Ondřej Surý
ondrej at isc.org
Tue Apr 28 20:32:56 UTC 2020
PGK_CONFIG_PATH="/opt/build/tools/pkg-config"
^^^ there’s a typo and if you need to add paths to more libraries, you need to use colon, like this:
PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:
(taken from my work machine with homebrew versions of libxml2 and zlib)
Ondrej
--
Ondřej Surý
ondrej at isc.org
> On 28 Apr 2020, at 22:12, Eddy Hahn <eddyhahn at hotmail.com> wrote:
>
>
> OK. Before I did not give you the full picture because I did not want to be to verbose :-)
>
> It should have been
>
> export SERVERPLUS_DIR="/opt/serverplus”
> git clone https://gitlab.isc.org/isc-projects/bind9.git
> cd bind9
> autoreconf -if
> LIBUV_LIBS="-L$SERVERPLUS_DIR/dependencies/libuv/lib" LIBUV_CFLAGS=" -I$SERVERPLUS_DIR/dependencies/libuv/include" CPPFLAGS=" -I$SERVERPLUS_DIR/dependencies/libuv/include" LDFLAGS='-flat_namespace -force_flat_namespace' ./configure --prefix="$SERVERPLUS_DIR" --with-openssl="$SERVERPLUS_DIR/dependencies/openssl" --disable-pthread-rwlock --with-libxml2=no --enable-full-report
>
>
>
> After Ondrej suggestion I have removed all the LIBUV_XXX env variables and change to
>
> PGK_CONFIG_PATH="/opt/build/tools/pkg-config" PKG_CONFIG_PATH="$SERVERPLUS_DIR/dependencies/libuv/lib/pkgconfig" ./configure --prefix="$SERVERPLUS_DIR" --with-openssl="$SERVERPLUS_DIR/dependencies/openssl" --disable-pthread-rwlock --with-libxml2=no --enable-full-report
>
>
> I did not had to change the source code :-) and after deploying no more complaints from dylib! named is running fine!
>
> All worked! Thank you very much for the help!
>
> Thanks again,
>
> Eddy
>
>
>
>> On Apr 28, 2020, at 12:22 PM, Ondřej Surý <ondrej at isc.org> wrote:
>>
>> LIBUV_LIBS="-L$/dependencies/libuv/lib“
>>
>> JFTR this part of the line is wrong as it actually doesn’t contain the library itself (just LDFLAGS).
>> You should really use the pkgconfig.
>>
>> Ondrej
>> --
>> Ondřej Surý
>> ondrej at isc.org
>>
>>> On 28 Apr 2020, at 19:36, Eddy Hahn <eddyhahn at hotmail.com> wrote:
>>>
>>> LIBUV_LIBS="-L$/dependencies/libuv/lib"
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Message signed with OpenPGP
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20200428/af42c77b/attachment.bin>
More information about the bind-users
mailing list