Can't compile pkg on mips

Maciej Milewski milu at dat.pl
Thu Sep 25 20:27:09 UTC 2014


On 25.09.2014 18:27, Bryan Drewery wrote:
> On 9/25/2014 11:19 AM, Maciej Milewski wrote:
>>
>> On 25 września 2014 18:01:23 CEST, Thiago Farina <tfransosi at gmail.com> wrote:
>>> On Wed, Sep 24, 2014 at 6:28 PM, Maciej Milewski <milu at dat.pl> wrote:
>>>> Hi,
>>>> I have problem with compiling pkg-1.3.8 on my RSPro mips board:
>>>> ===>  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:
===>  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

-- 
Pozdrawiam,
Maciej Milewski




More information about the freebsd-pkg mailing list