Re: net/net-snmp configure failure under -current

2021-03-13 Thread Christos Zoulas
In article 
,
Chavdar Ivanov   wrote:
>Hi,
>
>This package fails configure as recent libwrap.so refers to libblocklist:
>...
>configure:25104: result: no
>configure:25117: checking for TCP wrappers library -lwrap linked with -lnsl
>configure:25133: gcc -o conftest -DNETSNMP_ENABLE_IPV6
>-fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -Dnetbsd1
>-DSOL_IP=IPPROTO_IP -I/usr/include -I/usr/pkg/include
>-D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include/ncurses -Unetbsd
>-Dnetbsd=netbsd -I/usr/include -I/usr/pkg/include
>-D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include/ncurses
>-I/usr/lib/include -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib
>-Wl,-R/usr/pkg/lib/perl5/5.32.0/x86_64-netbsd-thread-multi/CORE
>-Wl,-R/usr/pkg/lib -L/usr/lib/lib conftest.c -lelf -ldes -lm  -lwrap
>>&5
>ld: /usr/lib/libwrap.so: undefined reference to `blocklist_sa_r'
>ld: /usr/lib/libwrap.so: undefined reference to `blocklist_open'
>ld: /usr/lib/libwrap.so: undefined reference to `blocklist_r'
>configure:25133: $? = 1
>configure: failed program was/
>
>...
>
>Adding
>
>LDFLAGS+= -lblocklist
>
>to the Makefile allows the build to complete, but surely this is not
>the right and proper thing to do, as it should be conditional to the
>OS version I guess.

Yes, the right fix is to record the dependency at the shared library
level. I left it commented out, but now I will uncomment it.

christos



net/net-snmp configure failure under -current

2021-03-13 Thread Chavdar Ivanov
Hi,

This package fails configure as recent libwrap.so refers to libblocklist:
...
configure:25104: result: no
configure:25117: checking for TCP wrappers library -lwrap linked with -lnsl
configure:25133: gcc -o conftest -DNETSNMP_ENABLE_IPV6
-fno-strict-aliasing -DNETSNMP_REMOVE_U64 -O2 -Dnetbsd1
-DSOL_IP=IPPROTO_IP -I/usr/include -I/usr/pkg/include
-D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include/ncurses -Unetbsd
-Dnetbsd=netbsd -I/usr/include -I/usr/pkg/include
-D_XOPEN_SOURCE_EXTENDED=1 -I/usr/pkg/include/ncurses
-I/usr/lib/include -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib/perl5/5.32.0/x86_64-netbsd-thread-multi/CORE
-Wl,-R/usr/pkg/lib -L/usr/lib/lib conftest.c -lelf -ldes -lm  -lwrap
>&5
ld: /usr/lib/libwrap.so: undefined reference to `blocklist_sa_r'
ld: /usr/lib/libwrap.so: undefined reference to `blocklist_open'
ld: /usr/lib/libwrap.so: undefined reference to `blocklist_r'
configure:25133: $? = 1
configure: failed program was/

...

Adding

LDFLAGS+= -lblocklist

to the Makefile allows the build to complete, but surely this is not
the right and proper thing to do, as it should be conditional to the
OS version I guess.

Chavdar

--