From owner-freebsd-questions@FreeBSD.ORG Tue May 11 14:12:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1109816A4CE for ; Tue, 11 May 2004 14:12:03 -0700 (PDT) Received: from out009.verizon.net (out009pub.verizon.net [206.46.170.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3515743D31 for ; Tue, 11 May 2004 14:12:02 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([68.161.84.3]) by out009.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040511211201.HKYO29216.out009.verizon.net@mac.com>; Tue, 11 May 2004 16:12:01 -0500 Message-ID: <40A1417F.6050601@mac.com> Date: Tue, 11 May 2004 17:11:27 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brian Henning References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out009.verizon.net from [68.161.84.3] at Tue, 11 May 2004 16:12:01 -0500 cc: freebsd-questions@freebsd.org Subject: Re: compile signal code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 May 2004 21:12:03 -0000 Brian Henning wrote: [ ... ] > I am having trouble compiling some signal related code in freebsd. What is the > library I should link to get this to compile? "man signal" says that the standard C library contains the signal handling functionality. FreeBSD also supports the POSIX sigaction family. > /usr/local/src > gcc signal_handler.c > /tmp/ccfXkcCV.o: In function `main': > /tmp/ccfXkcCV.o(.text+0x11): undefined reference to `sigset' > /tmp/ccfXkcCV.o(.text+0x23): undefined reference to `sigset' > /tmp/ccfXkcCV.o: In function `sigusr': > /tmp/ccfXkcCV.o(.text+0x9d): undefined reference to `err_dump' Presumably your code implements these? They aren't standard... -- -Chuck