From owner-freebsd-pkg@FreeBSD.ORG Fri Sep 26 14:35:48 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 186B17FA for ; Fri, 26 Sep 2014 14:35:48 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E8E78323 for ; Fri, 26 Sep 2014 14:35:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id s8QEZlxd053947 for ; Fri, 26 Sep 2014 14:35:47 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id s8QEZlM2053945 for pkg@freebsd.org; Fri, 26 Sep 2014 14:35:47 GMT (envelope-from bdrewery) Received: (qmail 75449 invoked from network); 26 Sep 2014 09:35:42 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 26 Sep 2014 09:35:42 -0500 Message-ID: <542579AF.8030602@FreeBSD.org> Date: Fri, 26 Sep 2014 09:35:27 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Maciej Milewski , 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> <542488B9.6090700@dat.pl> <5425216D.9090405@dat.pl> In-Reply-To: <5425216D.9090405@dat.pl> OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gnl5QG137M9AbIW3oXjRrsd233itG9k8R" 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: Fri, 26 Sep 2014 14:35:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gnl5QG137M9AbIW3oXjRrsd233itG9k8R Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 9/26/2014 3:18 AM, Maciej Milewski wrote: > On 26.09.2014 05:47, Thiago Farina wrote: >> On Thu, Sep 25, 2014 at 6:27 PM, Maciej Milewski wrote: >>> 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 wen= t 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 >>>>> >>>> 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 !=3D E= NOSYS ) { >>> ./src/ssh.c:79: warn("cap_rights_limit() failed"); >>> ./src/info.c:267: if (cap_rights_limit(fd, &rights) < 0= && >>> errno !=3D ENOSYS ) { >>> ./src/info.c:268: warn("cap_rights_limit() fail= ed"); >>> ./src/updating.c:141: if (cap_rights_limit(fileno(fd), &rights) < 0= && >>> errno !=3D 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 >>> >> Do you have HAVE_CAPSICUM defined? It needs to be defined in order to >> sys/capability.h to get included. >> >> But I think that does not explain the link issue. It is weird that it >> is not finding something from libc. >> > Grep shows that it's defined: Is it autodectected somehow? > =20 > # grep -nr HAVE_CAPSICUM > * = =20 >=20 > config.log:3815:#define HAVE_CAPSICUM 1 > config.status:1086:D["HAVE_CAPSICUM"]=3D" 1" > configure:13295:$as_echo "#define HAVE_CAPSICUM 1" >>confdefs.h > configure.ac:224: AC_DEFINE(HAVE_CAPSICUM, 1, [Define 1 > if you have 'capsicum'.]) > configure.bak:13295:$as_echo "#define HAVE_CAPSICUM 1" >>confdefs.h > libpkg/ssh.c:31:#ifdef HAVE_CAPSICUM > libpkg/ssh.c:134:#ifdef HAVE_CAPSICUM > pkg_config.h:17:#define HAVE_CAPSICUM 1 > pkg_config.h.in:16:#undef HAVE_CAPSICUM > src/ssh.c:31:#ifdef HAVE_CAPSICUM > src/ssh.c:58:#ifdef HAVE_CAPSICUM > src/ssh.c:76:#ifdef HAVE_CAPSICUM > src/audit.c:259:#ifdef HAVE_CAPSICUM > src/info.c:35:#ifdef HAVE_CAPSICUM > src/info.c:99:#ifdef HAVE_CAPSICUM > src/info.c:265:#ifdef HAVE_CAPSICUM > src/event.c:40:#ifdef HAVE_CAPSICUM > src/event.c:215:#ifdef HAVE_CAPSICUM > src/event.c:319:#ifdef HAVE_CAPSICUM > src/updating.c:32:#ifdef HAVE_CAPSICUM > src/updating.c:84:#ifdef HAVE_CAPSICUM > src/updating.c:139:#ifdef HAVE_CAPSICUM >=20 >=20 IMHO your world is out of sync. Like you have newer /usr/include than /li= b. --=20 Regards, Bryan Drewery --gnl5QG137M9AbIW3oXjRrsd233itG9k8R Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJUJXmzAAoJEDXXcbtuRpfPZfEIAMvMCWv0lUhjNryDpJXyjsXF pxE6wC+vFIjLltBbcO8oYrHvzV3XA06LWDkuCvjqTno2UwotqwkG0dE137W4jFRf UeiKEqr/I3pl5QkSHn5wjwhHYIymGah4s23ETIiKAxTz65q2VR6y+9Hn08IyZvZZ d+4D0S/ewULWLwJFKEX+ZHuI/deKJScMZvtY0G2kzkZFd30DV2uoyUuhXeeLGX9x EoudS0epCrKm83uR1H2KyT1hsZGcJVylfW087fvyLasr82aL2xgarIVjWJXc3zJH kCTrz6Ejn0g/6tpt7iH7kdanXa+9RYGtyo9C5tbaWM1jap8iTh/gi7Dt/Sl0jJ0= =iSBP -----END PGP SIGNATURE----- --gnl5QG137M9AbIW3oXjRrsd233itG9k8R--