#1256 closed Bug / Defect (fixed)
Error building with --enable-async-push
Reported by: | garga | Owned by: | stipa |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Building / Compiling | Version: | OpenVPN 2.4.8 (Community Ed) |
Severity: | Not set (select this one, unless your'e a OpenVPN developer) | Keywords: | |
Cc: |
Description
I tried to build openvpn with --enable-async-push on FreeBSD and got the following error:
/bin/sh ../../libtool --tag=CC --mode=link cc -I/usr/local/include -DPLUGIN_LIBDIR=\"/usr/local/lib/openvpn/plugins\" -Wall -Wno-unused-parameter -Wno-unused-function -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c99 -Wsign-compare -Wuninitialized -L/usr/local/lib -fstack-protector-strong -o openvpn argv.o base64.o buffer.o clinat.o comp.o compstub.o comp-lz4.o crypto.o crypto_openssl.o crypto_mbedtls.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o httpdigest.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o platform.o console.o console_builtin.o console_systemd.o mroute.o mss.o mstats.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o pkcs11_openssl.o pkcs11_mbedtls.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o ssl_openssl.o ssl_mbedtls.o ssl_verify.o ssl_verify_openssl.o ssl_verify_mbedtls.o status.o tls_crypt.o tun.o win32.o cryptoapi.o ../../src/compat/libcompat.la -llzo2 -L/usr/local/lib -llz4 -lssl -lcrypto -ldl libtool: link: cc -I/usr/local/include -DPLUGIN_LIBDIR=\"/usr/local/lib/openvpn/plugins\" -Wall -Wno-unused-parameter -Wno-unused-function -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c99 -Wsign-compare -Wuninitialized -fstack-protector-strong -o openvpn argv.o base64.o buffer.o clinat.o comp.o compstub.o comp-lz4.o crypto.o crypto_openssl.o crypto_mbedtls.o dhcp.o error.o event.o fdmisc.o forward.o fragment.o gremlin.o helper.o httpdigest.o lladdr.o init.o interval.o list.o lzo.o manage.o mbuf.o misc.o platform.o console.o console_builtin.o console_systemd.o mroute.o mss.o mstats.o mtcp.o mtu.o mudp.o multi.o ntlm.o occ.o pkcs11.o pkcs11_openssl.o pkcs11_mbedtls.o openvpn.o options.o otime.o packet_id.o perf.o pf.o ping.o plugin.o pool.o proto.o proxy.o ps.o push.o reliable.o route.o schedule.o session_id.o shaper.o sig.o socket.o socks.o ssl.o ssl_openssl.o ssl_mbedtls.o ssl_verify.o ssl_verify_openssl.o ssl_verify_mbedtls.o status.o tls_crypt.o tun.o win32.o cryptoapi.o -L/usr/local/lib ../../src/compat/.libs/libcompat.a -llzo2 -llz4 -lssl -lcrypto -ldl ld: error: undefined symbol: inotify_init >>> referenced by mtcp.c >>> mtcp.o:(tunnel_server_tcp) ld: error: undefined symbol: inotify_init >>> referenced by mudp.c >>> mudp.o:(tunnel_server_udp) ld: error: undefined symbol: inotify_add_watch >>> referenced by multi.c >>> multi.o:(multi_process_post) cc: error: linker command failed with exit code 1 (use -v to see invocation)
Adding -linotify to that compile command fixes the issue
Change History (5)
comment:1 Changed 3 years ago by
comment:3 Changed 3 years ago by
Owner: | set to stipa |
---|---|
Status: | new → assigned |
comment:4 Changed 3 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in master branch:
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19566.html
comment:5 Changed 3 years ago by
Fixed in release/2.4
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg19568.html
Note: See
TracTickets for help on using
tickets.
Just to add:
https://redmine.pfsense.org/issues/10273
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244286