Bug 210588 - graphics/libdrm: build fail due to PR 201340
Summary: graphics/libdrm: build fail due to PR 201340
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on: 201340
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-26 14:21 UTC by O. Hartmann
Modified: 2016-08-31 15:37 UTC (History)
2 users (show)

See Also:
ohartmann: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2016-06-26 14:21:31 UTC
When port is about to be compiled on a platform with most recent (proposed as of this moment) nVidia driver 367.27 (please see PR 201340 and there the latest patch as of today, 22nd Juno of 2016), the port fails to compile compalining about the error/missing shown below:

[...]
/usr/local/lib/libnvidia-glcore.so.1: undefined reference to `nv_vasprintf_alloc'
/usr/local/lib/libnvidia-glcore.so.1: undefined reference to `nv_vasprintf_free'
/usr/local/lib/libnvidia-glcore.so.1: undefined reference to `nv_vasprintf_vsnprintf'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [Makefile:477: kms-steal-crtc] Error 1
gmake[5]: *** Waiting for unfinished jobs....
/usr/local/lib/libnvidia-glcore.so.1: undefined reference to `nv_vasprintf_alloc'
/usr/local/lib/libnvidia-glcore.so.1: undefined reference to `nv_vasprintf_free'
/usr/local/lib/libnvidia-glcore.so.1: undefined reference to `nv_vasprintf_vsnprintf'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [Makefile:481: kms-universal-planes] Error 1
gmake[5]: Leaving directory '/usr/ports/graphics/libdrm/work/libdrm-2.4.66/tests/kms'
gmake[4]: *** [Makefile:849: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/graphics/libdrm/work/libdrm-2.4.66/tests'
gmake[3]: *** [Makefile:809: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/graphics/libdrm/work/libdrm-2.4.66'
gmake[2]: *** [Makefile:568: all] Error 2
gmake[2]: Leaving directory '/usr/ports/graphics/libdrm/work/libdrm-2.4.66'
===> Compilation failed unexpectedly.
Comment 1 O. Hartmann 2016-07-11 11:46:00 UTC
The problem is caused by a bug in one of the driver's libraries of x11/nvidia-driver when BLOB is set to revision > 364.19 (i.e. 367.27).

The problem does not appear if 364.19 has been chosen. It further seems that the problem has to be solved by nVidia themselfes and is not a fault of the port.

I'm closing this PR.