libdrm 2.4.58 upgrade fails

Torfinn Ingolfsen tingox at
Wed Apr 1 13:06:31 UTC 2015

Upgrading libdrm to version 2.4.58 fails:
root at kg-v7# uname -a
FreeBSD 10.1-STABLE FreeBSD 10.1-STABLE #0 r278322: Fri
Feb  6 21:36:01 CET 2015
root at  amd64
root at kg-v7# pv libdrm*
[Reading data from pkg(8) ... - 488 packages found - done]
libdrm-2.4.50               <  needs updating (port has 2.4.58_1,1)
root at kg-v7# portupgrade -R libdrm
buffers.c:163:15: warning: packed attribute is unnecessary for 'value'
        unsigned int value:24;
1 warning generated.
1 warning generated.
  CCLD     modetest
libtool: link: cannot find the library
`/usr/local/lib/' or unhandled argument
Makefile:418: recipe for target 'modetest' failed
gmake[5]: *** [modetest] Error 1
gmake[5]: Leaving directory
Makefile:824: recipe for target 'all-recursive' failed
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
Makefile:742: recipe for target 'all-recursive' failed
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/graphics/libdrm/work/libdrm-2.4.58'
Makefile:500: recipe for target 'all' failed
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory '/usr/ports/graphics/libdrm/work/libdrm-2.4.58'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

make[1]: stopped in /usr/ports/graphics/libdrm
*** Error code 1

make: stopped in /usr/ports/graphics/libdrm
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20150401-46550-1b6s0of env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=libdrm-2.4.50 UPGRADE_PORT_VER=2.4.50 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
    ! graphics/libdrm (libdrm-2.4.50)    (unknown build error)

Perhaps the port is looking for the wrong file?
root at kg-v7# ll /usr/local/lib/libfontc*
lrwxr-xr-x  1 root  wheel      22 Feb  6 23:47
/usr/local/lib/ ->
lrwxr-xr-x  1 root  wheel      22 Feb  6 23:47
/usr/local/lib/ ->
-rwxr-xr-x  1 root  wheel  262024 Feb  6 23:47

Trying a 'make' (after make clean) in the ports directory doesn't work either
Torfinn Ingolfsen,

More information about the freebsd-ports mailing list