[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passfd on Solaris
From: |
Bruno Haible |
Subject: |
passfd on Solaris |
Date: |
Mon, 14 Mar 2011 00:04:49 +0100 |
User-agent: |
KMail/1.9.9 |
On Solaris, I get a link error:
gcc -g -O2 -o test-passfd test-passfd.o ../gllib/libgnu.a
Undefined first referenced
symbol in file
socketpair test-passfd.o
recvmsg ../gllib/libgnu.a(passfd.o)
sendmsg ../gllib/libgnu.a(passfd.o)
This fixes it, and also fixes the module description.
2011-03-13 Bruno Haible <address@hidden>
passfd: Fix link error on Solaris.
* modules/passfd (Description): Correct.
(Depends-on): Add socketlib.
(Link): New section.
* modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
--- modules/passfd.orig Sun Mar 13 23:59:07 2011
+++ modules/passfd Sun Mar 13 23:55:25 2011
@@ -1,5 +1,5 @@
Description:
-Passfile descriptors along Unix (socket/stream) file descriptors
+Pass file descriptors along Unix domain sockets
Files:
lib/passfd.h
@@ -10,6 +10,7 @@
Depends-on:
cloexec
sys_socket
+socketlib
extensions
configure.ac:
@@ -21,6 +22,9 @@
Include:
"passfd.h"
+Link:
+$(LIBSOCKET)
+
License:
LGPLv2+
--- modules/passfd-tests.orig Sun Mar 13 23:59:07 2011
+++ modules/passfd-tests Sun Mar 13 23:55:25 2011
@@ -9,3 +9,4 @@
Makefile.am:
TESTS += test-passfd
check_PROGRAMS += test-passfd
+test_passfd_LDADD = $(LDADD) @LIBSOCKET@
--
In memoriam Odette Sansom <http://en.wikipedia.org/wiki/Odette_Hallowes>
- Re: [PATCH 3/4] Add a CLOEXEC recvfd, (continued)
[PATCH 2/4] sendfd, recvf pass file descriptors along Unix domain sockets, Bastien ROUCARIES, 2011/03/07
[PATCH 4/4] Add test for passfd, Bastien ROUCARIES, 2011/03/07
passfd on glibc, Bruno Haible, 2011/03/13
passfd on OpenBSD, Bruno Haible, 2011/03/13
passfd on FreeBSD, Bruno Haible, 2011/03/13
passfd on AIX 5.2, Bruno Haible, 2011/03/13
passfd on Solaris,
Bruno Haible <=
passfd on more platforms, Bruno Haible, 2011/03/13
Re: passfd on more platforms, Eric Blake, 2011/03/14
Re: passfd on more platforms, Paolo Bonzini, 2011/03/14