From owner-freebsd-pkg@FreeBSD.ORG Thu Sep 25 20:27:09 2014 Return-Path: Delivered-To: pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7763B434; Thu, 25 Sep 2014 20:27:09 +0000 (UTC) Received: from man.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 33F8EB41; Thu, 25 Sep 2014 20:27:08 +0000 (UTC) Received: from man.dat.pl (localhost [127.0.0.1]) by man.dat.pl (Postfix) with ESMTP id 257B6D16A0F; Thu, 25 Sep 2014 22:27:07 +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 jws7PKlmWdTk; Thu, 25 Sep 2014 22:27:06 +0200 (CEST) Message-ID: <54247A94.6090901@dat.pl> Date: Thu, 25 Sep 2014 22:27:00 +0200 From: Maciej Milewski MIME-Version: 1.0 To: Bryan Drewery , 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> In-Reply-To: <5424425A.9040709@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "pkg@FreeBSD.org" 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 20:27:09 -0000 On 25.09.2014 18:27, Bryan Drewery wrote: > On 9/25/2014 11:19 AM, Maciej Milewski wrote: >> >> On 25 wrze=C5=9Bnia 2014 18:01:23 CEST, Thiago Farina wrote: >>> On Wed, Sep 24, 2014 at 6:28 PM, Maciej Milewski wrote:= >>>> Hi, >>>> I have problem with compiling pkg-1.3.8 on my RSPro mips board: >>>> =3D=3D=3D> 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 >>>> CC pkg-info.o >>>> cc1: warnings being treated as errors >>>> info.c: In function 'exec_info': >>>> info.c:266: warning: implicit declaration of function >>> 'cap_rights_init' >>>> info.c:267: warning: passing argument 2 of 'cap_rights_limit' makes >>>> integer from pointer without a cast >>>> *** [pkg-info.o] Error code 1 >>>> >>> Have you tried fixing this warning? As it is treating warnings as >>> errors the compilation fails. >>> >>> Hope that helps, >>> >>> Regards, >> Yes tried removing -Werror from src/Makefile. If that's sth connected = with capsicum then my system might be built before that got to the tree. = I'll try of I can build and flash newer image for that device. >> > Huh that's strange. The header is included properly. > > 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: =3D=3D=3D> 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 --=20 Pozdrawiam, Maciej Milewski