Bug 218561

Summary: net/tigervnc: glxdricommon.c:147:25: error: use of undeclared identifier '__DRI_ATTRIB_FLOAT_BIT'
Product: Ports & Packages Reporter: emz
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: meta, w.schwarzenfeld
Priority: --- Keywords: needs-qa
Version: LatestFlags: linimon: maintainer-feedback? (meta)
Hardware: Any   
OS: Any   

Description emz 2017-04-11 09:26:45 UTC
FreeBSD 11.0-RELEASE-p5
Latest ports.

Cannot build net/tigetvnc:

[...]
  CC       indirect_reqsize.lo
  CC       indirect_size_get.lo
  CC       indirect_table.lo
  CC       clientinfo.lo
  CC       createcontext.lo
  CC       extension_string.lo
  CC       indirect_util.lo
  CC       indirect_program.lo
  CC       indirect_texture_compression.lo
  CC       glxcmds.lo
  CC       glxcmdsswap.lo
  CC       glxext.lo
  CC       glxdriswrast.lo
  CC       glxdricommon.lo
glxdricommon.c:147:25: error: use of undeclared identifier '__DRI_ATTRIB_FLOAT_BIT'
            if (value & __DRI_ATTRIB_FLOAT_BIT)
                        ^
glxdricommon.c:149:25: error: use of undeclared identifier '__DRI_ATTRIB_UNSIGNED_FLOAT_BIT'
            if (value & __DRI_ATTRIB_UNSIGNED_FLOAT_BIT)
                        ^
glxdricommon.c:196:29: error: use of undeclared identifier '__DRI_ATTRIB_UNSIGNED_FLOAT_BIT'
    return !!(renderType & (__DRI_ATTRIB_UNSIGNED_FLOAT_BIT
                            ^
glxdricommon.c:197:31: error: use of undeclared identifier '__DRI_ATTRIB_FLOAT_BIT'
                            | __DRI_ATTRIB_FLOAT_BIT));
                              ^
4 errors generated.
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/net/tigervnc/work/tigervnc-1.7.1/unix/xserver/glx
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/net/tigervnc/work/tigervnc-1.7.1/unix/xserver
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/tigervnc
*** Error code 1

Stop.
make: stopped in /usr/ports/net/tigervnc

===>>> make build failed for net/tigervnc
===>>> Aborting update
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2017-07-25 01:28:53 UTC
I can't reproduce the issue. I think the issue is because of some installed packages...
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2017-07-25 05:04:51 UTC
The build should be made verbose and a full log included (As an attachment, not comment). Full compile invocations may indicate/point to potential issues.

@Maintainer Can you provide instructions on how to make the build verbose (and in a separate issue, provide a patch to make it verbose by default).

@Reporter, can you also provide more information & detail regarding your system environment, including:

- Exact FreeBSD version (uname -a)
- pkg version -v output (as attachment)
- /etc/make.conf contents (as an attachment
Comment 3 emz 2017-07-25 06:19:47 UTC
By the way I managed to build this ports, by inserting these two lines in the <portworkdir>/tigervnc-1.7.1/unix/xserver/glx/glxdricommon.c:

int __DRI_ATTRIB_FLOAT_BIT = 0x08;
int __DRI_ATTRIB_UNSIGNED_FLOAT_BIT = 0x10;

as per https://forums.gentoo.org/viewtopic-t-1008964-start-0.html
Comment 4 Walter Schwarzenfeld 2018-01-31 21:37:56 UTC
We have version 1.8.0. It compiles fine on 10.4 and 11.1. It seems overcome by events. So I close here.
Open a new PR if there are problems with the new version.