Undefined symbol "utimensat"

Matthew Seaman matthew at
Fri Jan 13 14:54:10 UTC 2017

On 2017/01/13 13:44, Kevin P. Neal wrote:
>> I get the following error when I tried to do "pkg upgrade" on FreeBSD 10.2
>> 64bit
>> Proceed with this action? [y/N]: y
>> [1/102] Upgrading xproto from 7.0.28 to 7.0.31...
>> [1/102] Extracting xproto-7.0.31:   0%/usr/local/lib/ Undefined
>> symbol "utimensat"

> I have no idea how this happened.

It's because utimensat(2) is a new syscall in 10.3-RELEASE and above,
and as pkg(8) is now being built on 10.3-RELEASE (as that's the lowest
supported 10.x RELEASE since the beginning of the month) it now tries to
use that syscall.

Means 10.1 and 10.2 users of the standard FreeBSD packages are going to
be unhappy until they can upgrade to 10.3.  A work around is to use
pkg-static, but that's not completely foolproof either as any other
packaged software could use utimensat(2) and suffer from the same problem.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 972 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-questions mailing list