From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 02:55:16 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 756DE1065672 for ; Tue, 23 Feb 2010 02:55:16 +0000 (UTC) (envelope-from followait@163.com) Received: from m12-15.163.com (m12-15.163.com [220.181.12.15]) by mx1.freebsd.org (Postfix) with ESMTP id 782808FC14 for ; Tue, 23 Feb 2010 02:55:14 +0000 (UTC) Received: from jqslaptop (unknown [113.87.158.171]) by smtp11 (Coremail) with SMTP id D8CowLDbDcEFQINLQHtCKg--.45705S2; Tue, 23 Feb 2010 10:40:09 +0800 (CST) From: "Ronald" To: "Freebsd-Chat@Freebsd.Org" Date: Tue, 23 Feb 2010 10:40:05 +0800 Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acq0MYGfzN5sCZ64TP6h6wjgRam0Cg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-CM-TRANSID: D8CowLDbDcEFQINLQHtCKg--.45705S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUwSoXUUUUU X-CM-SenderInfo: xiroz0hzdl3qqrwthudrp/1tbiJB6A+T-6UPZSygAAs4 X-Mailman-Approved-At: Tue, 23 Feb 2010 03:09:21 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 02:55:16 -0000 I think the global lib directories is not so good, because it should be for public libs. The libs private to one application, where to put them? Thanks. From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 03:49:24 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE4471065692 for ; Tue, 23 Feb 2010 03:49:24 +0000 (UTC) (envelope-from alexsm@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 644D48FC1A for ; Tue, 23 Feb 2010 03:49:24 +0000 (UTC) Received: by fxm23 with SMTP id 23so3253329fxm.3 for ; Mon, 22 Feb 2010 19:49:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=yGqte9mZgV7SC3grAAJwtP/p6DzxnvwSuxa042fAe9g=; b=HGxB6VdHkfFqeMgh0PiYqxVCbmMiVJ9LmDuVbSr9JNtmUT7XWxpFL/vfZImSnOyO0v wPBzxfCSULigLecWszqmysnLrMl1YcdCGoeIEGhjFAiKPxRxquzDb3DS6Hr9ybl1+Cgw OUzcD6SitfwcMunpBCXokVNRZyJJzQfB2dE+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=NpmW8pAWAQMtBov2ZCALsLZWIIMdiIc9csUL735mCLzVlbnluZ1iRFx42G4Jc2tQwc Haa5eQWqQ/Py6Q+PiDOQa5td8Kc1Z3slyaf2+vF0S8VFROf7US0mXS6i1pVjRoRLr3mB 7Sb5SpYZaGO+AmMOsOyYffRb7Ua3srHyILi+c= MIME-Version: 1.0 Received: by 10.239.188.210 with SMTP id q18mr1799620hbh.143.1266896957600; Mon, 22 Feb 2010 19:49:17 -0800 (PST) In-Reply-To: References: From: Alex Moura Date: Tue, 23 Feb 2010 00:48:57 -0300 Message-ID: To: Ronald Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 03:49:24 -0000 2010/2/22 Ronald > I think the global lib directories is not so good, because it should be for > public libs. > > The libs private to one application, where to put them? > > /usr/local/lib ? From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 04:25:44 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74D5B1065679 for ; Tue, 23 Feb 2010 04:25:44 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta11.emeryville.ca.mail.comcast.net (qmta11.emeryville.ca.mail.comcast.net [76.96.27.211]) by mx1.freebsd.org (Postfix) with ESMTP id 572FF8FC12 for ; Tue, 23 Feb 2010 04:25:44 +0000 (UTC) Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta11.emeryville.ca.mail.comcast.net with comcast id lFrZ1d0010b6N64ABGNZgz; Tue, 23 Feb 2010 04:22:33 +0000 Received: from comcast.net ([98.203.142.76]) by omta03.emeryville.ca.mail.comcast.net with comcast id lGRi1d00K1f6R9u8PGRjhE; Tue, 23 Feb 2010 04:25:44 +0000 Received: by comcast.net (sSMTP sendmail emulation); Mon, 22 Feb 2010 20:25:41 -0800 Date: Mon, 22 Feb 2010 20:25:41 -0800 From: Charlie Kester To: freebsd-chat@freebsd.org Message-ID: <20100223042541.GA11113@comcast.net> Mail-Followup-To: freebsd-chat@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Mailer: Mutt 1.5.20 X-Composer: VIM 7.2 User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 04:25:44 -0000 On Mon 22 Feb 2010 at 18:40:05 PST Ronald wrote: >I think the global lib directories is not so good, because it should be for >public libs. > >The libs private to one application, where to put them? /usr/local/lib/appname ? In which case it would be up to the app to know where to find its libs. From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 07:38:59 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8986106566B for ; Tue, 23 Feb 2010 07:38:59 +0000 (UTC) (envelope-from followait@163.com) Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by mx1.freebsd.org (Postfix) with ESMTP id E74E68FC18 for ; Tue, 23 Feb 2010 07:38:57 +0000 (UTC) Received: from jqslaptop (unknown [113.87.158.171]) by smtp9 (Coremail) with SMTP id DcCowLBLJ6P2hYNLAA4nBw--.5359S2; Tue, 23 Feb 2010 15:38:31 +0800 (CST) From: "Ronald" To: "'Freebsd-Chat@Freebsd.Org'" Date: Tue, 23 Feb 2010 15:38:33 +0800 Message-ID: <2854374F0D8B4D94B2724850CA1D7D2B@jqslaptop> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acq0WzNIq7eDTc29SAOvyY7XOyTHlg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-CM-TRANSID: DcCowLBLJ6P2hYNLAA4nBw--.5359S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUYR6zUUUUU X-CM-SenderInfo: xiroz0hzdl3qqrwthudrp/ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: `pkg_add -r` doesn't solve the depencies? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 07:39:00 -0000 setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ pkg_add -r vim-7.2.344 when back to the command prompt, `reboot`, `vim`, it outputs: /libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.2 required by /usr/local/bin/vim BTW: what is "version FBSD_1.2"? Thanks. From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 07:56:20 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1025106566B for ; Tue, 23 Feb 2010 07:56:20 +0000 (UTC) (envelope-from tonyt@logyst.com) Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74]) by mx1.freebsd.org (Postfix) with ESMTP id C0A828FC0A for ; Tue, 23 Feb 2010 07:56:20 +0000 (UTC) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by smtp.webfaction.com (Postfix) with ESMTP id CFA5E39123F for ; Tue, 23 Feb 2010 01:56:19 -0600 (CST) Received: by pwj7 with SMTP id 7so4084342pwj.13 for ; Mon, 22 Feb 2010 23:56:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.57.17 with SMTP id f17mr1504141rva.244.1266911779023; Mon, 22 Feb 2010 23:56:19 -0800 (PST) In-Reply-To: <2854374F0D8B4D94B2724850CA1D7D2B@jqslaptop> References: <2854374F0D8B4D94B2724850CA1D7D2B@jqslaptop> Date: Tue, 23 Feb 2010 18:56:19 +1100 Message-ID: <22166b751002222356j5b60fcf0u9f565fddb6d18ee7@mail.gmail.com> From: Tony Theodore To: Ronald Content-Type: text/plain; charset=UTF-8 Cc: "Freebsd-Chat@Freebsd.Org" Subject: Re: `pkg_add -r` doesn't solve the depencies? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 07:56:21 -0000 On 23 February 2010 18:38, Ronald wrote: > setenv PACKAGESITE > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ > > > > pkg_add -r vim-7.2.344 > > > > when back to the command prompt, `reboot`, `vim`, it outputs: > > /libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.2 required by > /usr/local/bin/vim > > > > BTW: what is "version FBSD_1.2"? At first glance it would seem that you're trying to run it on an older (say 7.x) version. Why are you setting PACKAGESITE? The autodetection is usually what you want. Tony From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 09:39:44 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D5481065672 for ; Tue, 23 Feb 2010 09:39:44 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 31DEE8FC14 for ; Tue, 23 Feb 2010 09:39:44 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 5C2D21FFC22; Tue, 23 Feb 2010 09:39:43 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 1BC05844EB; Tue, 23 Feb 2010 10:39:43 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Ronald" References: Date: Tue, 23 Feb 2010 10:39:42 +0100 In-Reply-To: (Ronald's message of "Tue, 23 Feb 2010 10:40:05 +0800") Message-ID: <868wak2sv5.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 09:39:44 -0000 "Ronald" writes: > I think the global lib directories is not so good, because it should > be for public libs. > > The libs private to one application, where to put them? The canonical location for ports is ${LIBDIR}/${PORTNAME}, but remember that unless these are run-time loadable modules, this directory must be in the library search path when you run the app. This means that you either have to ldconfig the directory using an rc_subr script (which defeats the purpose of having a private library directory) or install a wrapper that sets LD_LIBRARY_PATH before execing the real binary. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 09:43:28 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D48D31065670 for ; Tue, 23 Feb 2010 09:43:28 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 98AB18FC16 for ; Tue, 23 Feb 2010 09:43:28 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id E30FE1FFC22; Tue, 23 Feb 2010 09:43:26 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id C5471844EB; Tue, 23 Feb 2010 10:43:26 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Ronald" References: <2854374F0D8B4D94B2724850CA1D7D2B@jqslaptop> Date: Tue, 23 Feb 2010 10:43:26 +0100 In-Reply-To: <2854374F0D8B4D94B2724850CA1D7D2B@jqslaptop> (Ronald's message of "Tue, 23 Feb 2010 15:38:33 +0800") Message-ID: <864ol82sox.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "'Freebsd-Chat@Freebsd.Org'" Subject: Re: `pkg_add -r` doesn't solve the depencies? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 09:43:28 -0000 "Ronald" writes: > setenv PACKAGESITE > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ Don't do that unless you're actually running 8.0 or newer. > /libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.2 required by > /usr/local/bin/vim This means your libc is significantly older than the one that was used to compile the package. BTW, this belongs on either -questions or -stable, not -chat. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 10:57:49 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB7BE1065676 for ; Tue, 23 Feb 2010 10:57:49 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from proton.sasknet.sk.ca (proton.sasknet.sk.ca [142.165.20.178]) by mx1.freebsd.org (Postfix) with ESMTP id 7ADB08FC14 for ; Tue, 23 Feb 2010 10:57:49 +0000 (UTC) Received: from pps.filterd (proton [127.0.0.1]) by proton.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id o1NAsUgm026396 for ; Tue, 23 Feb 2010 04:57:48 -0600 Received: from bgmpomr2.sasknet.sk.ca (bgmpOMR2.sasknet.sk.ca [142.165.72.23]) by proton.sasknet.sk.ca with ESMTP id m4amyeex2-1 for ; Tue, 23 Feb 2010 04:57:48 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr2.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KYA00K3BJSB8V00@bgmpomr2.sasknet.sk.ca> for freebsd-chat@freebsd.org; Tue, 23 Feb 2010 04:57:48 -0600 (CST) Date: Tue, 23 Feb 2010 02:57:46 -0800 From: Stephen Hurd In-reply-to: <868wak2sv5.fsf@ds4.des.no> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= Message-id: <4B83B4AA.3030405@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: quoted-printable References: <868wak2sv5.fsf@ds4.des.no> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20091205 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-23_02:2010-02-06, 2010-02-22, 2010-02-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1002230040 Cc: Ronald , "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 10:57:49 -0000 Dag-Erling Sm=C3=B8rgrav wrote: > "Ronald" writes: > =20 >> I think the global lib directories is not so good, because it should >> be for public libs. >> >> The libs private to one application, where to put them? >> =20 > > The canonical location for ports is ${LIBDIR}/${PORTNAME}, but remember= > that unless these are run-time loadable modules, this directory must be= > in the library search path when you run the app. This means that you > either have to ldconfig the directory using an rc_subr script (which > defeats the purpose of having a private library directory) or install a= > wrapper that sets LD_LIBRARY_PATH before execing the real binary. > =20 You can also compile in a search path. From owner-freebsd-chat@FreeBSD.ORG Tue Feb 23 11:56:30 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDAAB1065670 for ; Tue, 23 Feb 2010 11:56:30 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 8066E8FC08 for ; Tue, 23 Feb 2010 11:56:30 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id BB4361FFC22; Tue, 23 Feb 2010 11:56:29 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 92FD6844C4; Tue, 23 Feb 2010 12:56:29 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Stephen Hurd References: <868wak2sv5.fsf@ds4.des.no> <4B83B4AA.3030405@sasktel.net> Date: Tue, 23 Feb 2010 12:56:29 +0100 In-Reply-To: <4B83B4AA.3030405@sasktel.net> (Stephen Hurd's message of "Tue, 23 Feb 2010 02:57:46 -0800") Message-ID: <864ol817yq.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Ronald , "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 11:56:30 -0000 Stephen Hurd writes: > Dag-Erling Sm=C3=B8rgrav writes: > > The canonical location for ports is ${LIBDIR}/${PORTNAME}, but > > remember that unless these are run-time loadable modules, this > > directory must be in the library search path when you run the app. > > This means that you either have to ldconfig the directory using an > > rc_subr script (which defeats the purpose of having a private > > library directory) or install a wrapper that sets LD_LIBRARY_PATH > > before execing the real binary. > You can also compile in a search path. Not PREFIX-safe, hence not allowed in ports unless there is no other solution. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-chat@FreeBSD.ORG Wed Feb 24 05:59:09 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A77D106566C for ; Wed, 24 Feb 2010 05:59:09 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from neutron.sasknet.sk.ca (neutron.sasknet.sk.ca [142.165.20.180]) by mx1.freebsd.org (Postfix) with ESMTP id 2DDFF8FC16 for ; Wed, 24 Feb 2010 05:59:08 +0000 (UTC) Received: from pps.filterd (neutron [127.0.0.1]) by neutron.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id o1O5wGTG019004 for ; Tue, 23 Feb 2010 23:59:08 -0600 Received: from bgmpomr1.sasknet.sk.ca (bgmpOMR1.sasknet.sk.ca [142.165.72.22]) by neutron.sasknet.sk.ca with ESMTP id m4uunvxwq-1 for ; Tue, 23 Feb 2010 23:59:08 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr1.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KYC00KZ40MJNS10@bgmpomr1.sasknet.sk.ca> for freebsd-chat@freebsd.org; Tue, 23 Feb 2010 23:59:08 -0600 (CST) Date: Tue, 23 Feb 2010 21:59:06 -0800 From: Stephen Hurd In-reply-to: <864ol817yq.fsf@ds4.des.no> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= Message-id: <4B84C02A.9010001@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: quoted-printable References: <868wak2sv5.fsf@ds4.des.no> <4B83B4AA.3030405@sasktel.net> <864ol817yq.fsf@ds4.des.no> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20091205 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-24_02:2010-02-06, 2010-02-24, 2010-02-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1002230281 Cc: Ronald , "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 05:59:09 -0000 Dag-Erling Sm=C3=B8rgrav wrote: >>> The canonical location for ports is ${LIBDIR}/${PORTNAME}, but >>> remember that unless these are run-time loadable modules, this >>> directory must be in the library search path when you run the app. >>> This means that you either have to ldconfig the directory using an >>> rc_subr script (which defeats the purpose of having a private >>> library directory) or install a wrapper that sets LD_LIBRARY_PATH >>> before execing the real binary. >>> =20 >> You can also compile in a search path. >> =20 > > Not PREFIX-safe, hence not allowed in ports unless there is no other > solution Eh? It doesn't need to be an absolute path. From owner-freebsd-chat@FreeBSD.ORG Thu Feb 25 06:10:19 2010 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E088D106564A for ; Thu, 25 Feb 2010 06:10:19 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from gluon.sasknet.sk.ca (gluon.sasknet.sk.ca [142.165.20.181]) by mx1.freebsd.org (Postfix) with ESMTP id A71FE8FC0A for ; Thu, 25 Feb 2010 06:10:19 +0000 (UTC) Received: from pps.filterd (gluon [127.0.0.1]) by gluon.sasknet.sk.ca (8.14.3/8.14.3) with SMTP id o1P68QEu026746 for ; Thu, 25 Feb 2010 00:10:19 -0600 Received: from bgmpomr2.sasknet.sk.ca (bgmpOMR2.sasknet.sk.ca [142.165.72.23]) by gluon.sasknet.sk.ca with ESMTP id m5kcfrcg2-1 for ; Thu, 25 Feb 2010 00:10:18 -0600 Received: from ace.hurd.local (outgoing.bbsdev.net [76.202.204.46]) by bgmpomr2.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0KYD004D9VT5G700@bgmpomr2.sasknet.sk.ca> for freebsd-chat@freebsd.org; Thu, 25 Feb 2010 00:10:18 -0600 (CST) Date: Wed, 24 Feb 2010 22:10:16 -0800 From: Stephen Hurd In-reply-to: <4B84C02A.9010001@sasktel.net> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= Message-id: <4B861448.2040207@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT References: <868wak2sv5.fsf@ds4.des.no> <4B83B4AA.3030405@sasktel.net> <864ol817yq.fsf@ds4.des.no> <4B84C02A.9010001@sasktel.net> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.23) Gecko/20100224 SeaMonkey/1.1.18 Mnenhy/0.7.6.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2010-02-25_01:2010-02-06, 2010-02-25, 2010-02-24 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1002240292 Cc: Ronald , "Freebsd-Chat@Freebsd.Org" Subject: Re: Where to put private lib files? X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2010 06:10:20 -0000 Stephen Hurd wrote: >>> You can also compile in a search path. >>> >> >> Not PREFIX-safe, hence not allowed in ports unless there is no other >> solution > > Eh? It doesn't need to be an absolute path. To follow up on this for you Ronald, to compile in a PREFIX-safe relative library path, you need to pass -z origin -rpath $ORIGIN/../lib/pkgname to the linker... that is a literal $ so assuming you're using regular make files and gcc as the linker, you would add this line: LDFLAGS += -Wl,-z,origin,-rpath,\$$ORIGIN/../lib/$(PORTNAME) You need to double the $ so that make doesn't expand $ORIGIN for you and the \ is for the shell. The command line would be something like this: cc -O2 -pipe -march=pentium4 -Wl,-z,origin,-rpath,\$ORIGIN/../lib/test test.c -L. -ltest -o test You may need to fiddle around to get the literal $ in there, a strings on the compiled binary would include ``$ORIGIN/../lib/test'' (without the quotes of course). The reason you *need* to use $ORIGIN is that if you don't the relative path will be to whatever the pwd is when the process is started making them effectively random. Have fun!