Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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:2 Changed 4 years ago by stipa

Hi,

Thanks for the report. Patch is on the list:

https://patchwork.openvpn.net/patch/1036/

Version 0, edited 4 years ago by stipa (next)

comment:3 Changed 4 years ago by stipa

Owner: set to stipa
Status: newassigned

comment:4 Changed 4 years ago by stipa

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.