[Bug 292848] net/netatalk4 fails to link with the mDNSResponder option

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 01 Feb 2026 02:04:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292848

            Bug ID: 292848
           Summary: net/netatalk4 fails to link with the mDNSResponder
                    option
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: marcus@FreeBSD.org
          Reporter: freebsd@quinteiro.org
          Assignee: marcus@FreeBSD.org
             Flags: maintainer-feedback?(marcus@FreeBSD.org)

Created attachment 267650
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267650&action=edit
This modified patch-meson.build resolves the problem for me

Build fails with:

cc  -o etc/netatalk/netatalk etc/netatalk/netatalk.p/afp_avahi.c.o
etc/netatalk/netatalk.p/afp_mdns.c.o etc/netatalk/netatalk.p/afp_zeroconf.c.o
etc/netatalk/netatalk.p/netatalk.c.o -I/usr/local/include -L/usr/local/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,--start-group -ldl -lm -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing
'-Wl,-rpath,$ORIGIN/../../libatalk:/usr/local/lib'
-Wl,-rpath-link,/wrkdirs/usr/ports/net/netatalk4/work/netatalk-4.4.0/_build/libatalk
-Wl,-rpath-link,/usr/local/lib libatalk/libatalk.so.19.0.0
/usr/local/lib/libbstring.so /usr/local/lib/libiniparser.so
/usr/local/lib/libevent.so /usr/local/lib/libdns_sd.so -L/usr/local/lib -liconv
-Wl,--end-group
ld: error: undefined symbol: pthread_create
>>> referenced by afp_mdns.c
>>>               etc/netatalk/netatalk.p/afp_mdns.c.o:(md_zeroconf_register)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
*** Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.