From owner-freebsd-questions@freebsd.org Mon Aug 13 04:39:58 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B344C10652F8 for ; Mon, 13 Aug 2018 04:39:58 +0000 (UTC) (envelope-from khoogc@singnet.com.sg) Received: from r06.singnet.com.sg (r06.singnet.com.sg [202.40.249.106]) by mx1.freebsd.org (Postfix) with ESMTP id 1C9008909A for ; Mon, 13 Aug 2018 04:39:57 +0000 (UTC) (envelope-from khoogc@singnet.com.sg) Received: from cp-prod-rg-out-2.fuse.kc2.sg.local (172.63.64.222) by r06.singnet.com.sg (8.6.060.30) id 585A1A860773F288 for freebsd-questions@freebsd.org; Mon, 13 Aug 2018 12:23:45 +0800 Received: from cp-prod-fe-webtop-5.fuse.kc2.sg.local (172.64.64.22) by cp-prod-rg-out-2.fuse.kc2.sg.local (8.6.122.03) id 5B6DF6B80067D828 for freebsd-questions@freebsd.org; Mon, 13 Aug 2018 04:24:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=singnet.com.sg; s=dkim2016; t=1534134274; bh=qfqMCox/0tZmNdPv8ofLwzfcmtqzE84hfmk5wb0t5t4=; h=Date:From:Reply-To:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version; b=B3XqW6+Tt+mAbPibhqe70NOjagmZdxwcK8FeUH/qQo8QqGQwYN81N6PgjMesN7K+5TG94LGky0vnsS4umzyABMMausHBvD+EzPQfGW7/VjzTfTehbxV3TiEwY1JNS/J9GBUx3joOOaFpqqxIRVyL7h9pIZSAODi39Gz71T28KoI= Date: Mon, 13 Aug 2018 12:24:34 +0800 (SGT) From: khoogc Reply-To: khoogc@singnet.com.sg To: freebsd-questions@freebsd.org Cc: freebsd-questions@freebsd.org Message-ID: <312928386.2436.1534134274537.JavaMail.defaultUser@defaultHost> In-Reply-To: <2139045521.6371.1531903849843.JavaMail.defaultUser@defaultHost> References: <2139045521.6371.1531903849843.JavaMail.defaultUser@defaultHost> Subject: Re: pkg version libpkg_1.4 - UPDATE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Importance: 3 (Normal) X-Priority: 3 (Normal) X-Client-IP: IPv4[116.14.84.113] Epoch[1534134274534] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 04:39:59 -0000 1. I downloaded ports and in /usr/ports/ports-mgmt/pkg did a make 2. The make completed with a warning about exiting on some signal, but a check of the work directory showed the libpkg.so.4 to be present. So 3. I did make deinstall; make reinstall clean. And now pkg works. 4. pkg info pkg shows -- >pkg-1.10.5_1 >Name : pkg >Version : 1.10.5_1 >Installed on : Wed Aug 8 18:49:33 2018 SGT >Origin : ports-mgmt/pkg >Architecture : FreeBSD:11:amd64 >Prefix : /usr/local >Categories : ports-mgmt >Licenses : BSD2CLAUSE >Maintainer : pkg@FreeBSD.org >WWW : https://wiki.freebsd.org/pkgng >Comment : Package manager >Shared Libs provided: > libpkg.so.4 >Annotations : > FreeBSD_version: 1102000 >Flat size : 12.0MiB >Description : >Package management tool >WWW: https://wiki.freebsd.org/pkgng 5. I am happy. Thanks and Regards Richard KHOO Guan Chen >----Original Message---- >From : khoogc@singnet.com.sg >Date : 18/07/2018 - 16:50 GMT+8 >To : steve@sohara.org >Cc : freebsd-questions@freebsd.org >Subject : Re: pkg version libpkg_1.4 > > >>----Original Message---- >>From : steve@sohara.org >>Date : 17/07/2018 - 18:14 GMT+8 >>To : khoogc@singnet.com.sg >>Cc : freebsd-questions@freebsd.org >>Subject : Re: pkg version libpkg_1.4 >> >>On Tue, 17 Jul 2018 17:25:32 +0800 (SGT) >>khoogc wrote: >> >>> Hi, >>> >>> I have upgraded to 11.2 from 11.1 and now find I cannot use pkg. When I >>> call pkg as root, I get "/usr/local/lib/libpkg.so.4: version LIBPKG_1.4 >>> required by /usr/local/sbin/pkg not defined" >>> >>> Help. How do I rectify this? Thanks >> >> Try this: >> >> pkg-static upgrade -f >> >>-- >>Steve O'Hara-Smith >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>https://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >> > Sorry earlier message incomplete. > >----below is the complete run ----- >root@fbsd110:/usr/home/khoogc # pkg-static upgrade -f >Segmentation fault (core dumped) > >root@fbsd110:/usr/home/khoogc # gdb pkg-static >GNU gdb 6.1.1 [FreeBSD] >Copyright 2004 Free Software Foundation, Inc. >GDB is free software, covered by the GNU General Public License, and you are >welcome to change it and/or distribute copies of it under certain conditions. >Type "show copying" to see the conditions. >There is absolutely no warranty for GDB. Type "show warranty" for details. >This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... >(gdb) break main >No symbol table is loaded. Use the "file" command. >(gdb) run >Starting program: /usr/local/sbin/pkg-static >warning: shared library handler failed to enable breakpoint > >Program received signal SIGSEGV, Segmentation fault. >0x000000000076fc40 in ?? () >(gdb) >---------------------------------------------------------- > >Thanks > >Regards Richard Khoo Guan >_______________________________________________ >freebsd-questions@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >