Skip to content

Intermittent build failure with multi-job builds (make -j) #271

Closed
@tobiasb-ms

Description

@tobiasb-ms

Following instructions here: in the README, I got the latest released tarball, configured with:

./configure --with-examples --with-drill

And built with make.

When I build with make or make -j1 (so a single job), it builds fine.

If I build with multiple threads like with make -j32, I get intermittent errors like:

./libtool --tag=CC --quiet --mode=link gcc -DOPENSSL_API_COMPAT=10100 -fno-strict-aliasing -Wunused-function -Wstrict-prototypes -Wwrite-strings -W -Wall -g -O2 -D_GNU_SOURCE   examples/ldns-verify-zone.lo compat/b64_pton.lo compat/b64_ntop.lo libldns.la -lssl  -lcrypto  -o examples/ldns-verify-zone ./libldns.la
/usr/bin/ld: examples/.libs/ldns-testns.o: in function `main':
/home/tobiasb/scratch/ldns-cool/ldns-1.8.4/./examples/ldns-testns.c:599:(.text.startup+0x3e4): undefined reference to `perr�'
collect2: error: ld returned 1 exit status
make: *** [Makefile:210: examples/ldns-testns] Error 1

(NOTE that the non-printable character was part of the error output itself.)

I've reproed this on Ubuntu 24.04 and on Azure Linux 3.

Obviously, this is easy to work around but it if this is a known issue, I haven't been able to find it. May be worth documenting it explicitly, or working out the makefile magic to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions