From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 03:03:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 280581065679 for ; Sun, 30 Nov 2008 03:03:41 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (ns1.thought.org [209.180.213.210]) by mx1.freebsd.org (Postfix) with ESMTP id BA3098FC1B for ; Sun, 30 Nov 2008 03:03:40 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id mAU33nf4039143; Sat, 29 Nov 2008 19:03:49 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Sat, 29 Nov 2008 19:03:17 -0800 (PST) Date: Sat, 29 Nov 2008 19:03:17 -0800 From: Gary Kline To: Dan Nelson Message-ID: <20081130030317.GB90350@thought.org> References: <20081129225120.GA83398@thought.org> <20081130010450.GC53570@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081130010450.GC53570@dan.emsphone.com> User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 22 years of service to the Unix community. X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: FreeBSD Mailing List Subject: Re: Anybody familiar with "publib"?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 03:03:41 -0000 On Sat, Nov 29, 2008 at 07:04:51PM -0600, Dan Nelson wrote: > In the last episode (Nov 29), Gary Kline said: > > I found a neat function in publib that should do what I want, but > > adding either > > > > #imclude // as per man publib > > > > OR > > > > #include "/usr/local/include/publib.h" > > > > fails. Yes, I am adding "-lpub" to the enc of gcc. Still bombs. > > Anybody know why? Prev'ly when I've used the publib functions, I've > > had to move/copy a slew of them into my private build. Be nice if > > this just-worked! > > Try adding "-I /usr/local/include" to your compile line, and > "-L /usr/local/lib" to your link line. Also, providing the error > message instead of just saying "it fails" is helpful. Yes; it took just what you [and Andrew Brampson] suggested. The error were a screen full of lines like: /usr/local/include/publib.h:6:26: error: publib/alloc.h: No such file or directory /usr/local/include/publib.h:7:27: error: publib/base64.h: No such file or directory /usr/local/include/publib.h:8:27: error: publib/bitarr.h: No such file or directory /usr/local/include/publib.h:9:24: error: publib/cmp.h: No such file or directory /usr/local/include/publib.h:10:29: error: publib/errormsg.h: No such file or directory If I had ported publib, I would've stuck publib.h in /usr/include. Then Wirzenius' man page would have been correct, well, modulo the -L /usr/local/lib -lpub linkage. But this is frowned upon in FreeBSD land. > > -- > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org