[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Link test-poll against INET_PTON_LIB.
From: |
Ralf Wildenhues |
Subject: |
Link test-poll against INET_PTON_LIB. |
Date: |
Sun, 17 Jan 2010 12:41:17 +0100 |
User-agent: |
Mutt/1.5.20 (2009-10-28) |
I need this patch to avoid this failure on Solaris 10:
source='../../gltests/test-poll.c' object='test-poll.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../../gltests/../build-aux/depcomp \
cc -xc99=all -DHAVE_CONFIG_H -I. -I../../gltests -I. -I../../gltests -I..
-I../../gltests/.. -I../gllib -I../../gltests/../gllib -D_REENTRANT -g -c -o
test-poll.o ../../gltests/test-poll.c
cc -xc99=all -g -Wl,-z,ignore -o test-poll test-poll.o ../gllib/libgnu.a
-lsocket -lm
Undefined first referenced
symbol in file
inet_pton test-poll.o (symbol belongs to implicit
dependency /lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to test-poll
make[4]: *** [test-poll] Error 1
Cheers,
Ralf
Link test-poll against INET_PTON_LIB.
* modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
for inet_pton on Solaris 10.
diff --git a/modules/poll-tests b/modules/poll-tests
index 1655fab..d34107e 100644
--- a/modules/poll-tests
+++ b/modules/poll-tests
@@ -28,4 +28,4 @@ AC_CHECK_HEADERS_ONCE([unistd.h sys/wait.h])
Makefile.am:
TESTS += test-poll
check_PROGRAMS += test-poll
-test_poll_LDADD = $(LDADD) @LIBSOCKET@
+test_poll_LDADD = $(LDADD) @LIBSOCKET@ $(INET_PTON_LIB)
- Link test-poll against INET_PTON_LIB.,
Ralf Wildenhues <=