From owner-freebsd-pkg@FreeBSD.ORG Thu Sep 25 21:27:27 2014 Return-Path: Delivered-To: pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FF35C1; Thu, 25 Sep 2014 21:27:27 +0000 (UTC) Received: from man.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id BEF85269; Thu, 25 Sep 2014 21:27:26 +0000 (UTC) Received: from man.dat.pl (localhost [127.0.0.1]) by man.dat.pl (Postfix) with ESMTP id 7B868D16A0F; Thu, 25 Sep 2014 23:27:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at dat.pl Received: from man.dat.pl ([127.0.0.1]) by man.dat.pl (man.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8ujeWPUUqkWX; Thu, 25 Sep 2014 23:27:23 +0200 (CEST) Message-ID: <542488B9.6090700@dat.pl> Date: Thu, 25 Sep 2014 23:27:21 +0200 From: Maciej Milewski MIME-Version: 1.0 To: Thiago Farina Subject: Re: Can't compile pkg on mips References: <54233771.4090803@dat.pl> <057b903c-628f-4843-b7de-c0f7cb9750b4@email.android.com> <5424425A.9040709@FreeBSD.org> <54247A94.6090901@dat.pl> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: "pkg@FreeBSD.org" , Bryan Drewery X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2014 21:27:27 -0000 On 25.09.2014 22:33, Thiago Farina wrote: > On Thu, Sep 25, 2014 at 5:27 PM, Maciej Milewski wrote: >>> What FreeBSD version is this? >>> >> FreeBSD RSPRO 10.0-CURRENT FreeBSD 10.0-CURRENT #9 r253582+713ffac >> >> after manual edit src/Makefile and removing -Werror compilation went few >> lines further: >> ===> Building for pkg-1.3.8 >> /usr/bin/make all-recursive >> Making all in external >> /usr/bin/make all-am >> Making all in libpkg >> Making all in repo >> Making all in binary >> Making all in . >> Making all in src >> CCLD pkg >> pkg-info.o: In function `exec_info': >> info.c:(.text+0x5ac): undefined reference to `cap_rights_init' >> pkg-ssh.o: In function `exec_ssh': >> ssh.c:(.text+0x160): undefined reference to `cap_rights_init' >> pkg-updating.o: In function `exec_updating': >> updating.c:(.text+0x334): undefined reference to `cap_rights_init' >> *** [pkg] Error code 1 >> > Can you do `grep -Rn cap_rights_limit . `, to figure out where > "cap_rights_limit" is? > > It is missing either a ".a" or ".o" where this symbol is, hence it > isn't linking. > > Not your fault though. Sure I can: /data/builds/usr/ports/ports-mgmt/pkg/work/pkg-1.3.8# grep -Rn cap_rights_limit . ./src/ssh.c:78: if (cap_rights_limit(fd, &rights) < 0 && errno != ENOSYS ) { ./src/ssh.c:79: warn("cap_rights_limit() failed"); ./src/info.c:267: if (cap_rights_limit(fd, &rights) < 0 && errno != ENOSYS ) { ./src/info.c:268: warn("cap_rights_limit() failed"); ./src/updating.c:141: if (cap_rights_limit(fileno(fd), &rights) < 0 && errno != ENOSYS ) { ./src/updating.c:142: warn("cap_rights_limit() failed"); Binary file ./src/pkg-info.o matches Binary file ./src/pkg-ssh.o matches Binary file ./src/pkg-updating.o matches -- Pozdrawiam, Maciej Milewski