bug-gnulib
[Top][All Lists]
Advanced

[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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]