slrn 1.0.2 IPv6 not working on Solaris

Stefan Krüger <[email protected]> Tue, 3 Nov 2015 08:55:00 +0100
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hi,

I'm trying to use a IPv6 newsserver on solaris, which doesn't work though.

Seems like configure is not picking up getaddrinfo() support without the
right libraries (-lsocket -lnsl according to the getaddrinfo manpage):

$ ./configure
...
checking for getaddrinfo... no
checking for getnameinfo... no
...

$ cat config.log
...
configure:8400: checking for getaddrinfo
configure:8400: cc -o conftest -g   conftest.c  >&5
"conftest.c", line 94: warning: statement not reached
Undefined                       first referenced
 symbol                             in file
 getaddrinfo                         conftest.o
 ld: fatal: symbol referencing errors
 configure:8400: $? = 2
..

Adding LIBS='-lsocket -lnsl' fixes this:

$ ./configure LIBS='-lsocket -lnsl'
...
ecking for getaddrinfo... yes
checking for getnameinfo... yes
...

but building slrn still fails:

$ gmake
...
cd /tmp/slrn-1.0.2/src/objs; cc art.o art_misc.o art_sort.o charset.o
decode.o editscore.o group.o grplens.o hash.o hdrutils.o help.o hooks.o
interp.o menu.o mime.o misc.o post.o print.o ranges.o score.o server.o slrn.o
slrndir.o snprintf.o sortdate.o startup.o strutil.o ttymsg.o util.o version.o
vfile.o xover.o parse2822.o -o slrn   -lslang
Undefined                       first referenced
 symbol                             in file
 getservbyname                       server.o
 socket                              server.o
 getnameinfo                         server.o
 connect                             server.o
 getaddrinfo                         misc.o
 freeaddrinfo                        misc.o
 gai_strerror                        server.o
 ld: fatal: symbol referencing errors

Seems like it's not using $LIBS when linking the binary?

------------------------------------------------------------------------------