Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2021 04:34:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        desktop@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 256180] graphics/cairo buid failed: error: unknown type name 'GLXContext'
Message-ID:  <bug-256180-39348-jUmFaWPyJD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256180-39348@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256180-39348@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 256180: graphics/cairo buid failed: error: unknown type name 'GLXContex=
t'
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256180



--- Description ---
After of 2021-05-26, the graphics/cairo port on my poudriere server failed =
to
build with following error.=20
We check these situation at another poudriere server, and get the same erro=
r.
Full log in attachment

=3D>> Building graphics/cairo
build started at Wed May 26 21:31:43 +04 2021
port directory: /usr/ports/graphics/cairo
package name: cairo-1.17.4,3
building for: FreeBSD FreeBSD:12:amd64-default-daily-job-01 12.2-RELEASE-p6
FreeBSD 12.2-RELEASE-p6 amd64
maintained by: desktop@FreeBSD.org
Makefile ident:=20
Poudriere version: 3.3.6
Host OSVERSION: 1202000
Jail OSVERSION: 1202000
Job Id: 01

---Begin Environment---
SHELL=3D/bin/csh
OSVERSION=3D1202000
UNAME_v=3DFreeBSD 12.2-RELEASE-p6
UNAME_r=3D12.2-RELEASE-p6
BLOCKSIZE=3DK
MAIL=3D/var/mail/root
STATUS=3D1
HOME=3D/root
PATH=3D/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/b=
in
LOCALBASE=3D/usr/local
USER=3Droot
LIBEXECPREFIX=3D/usr/local/libexec/poudriere
POUDRIERE_VERSION=3D3.3.6
MASTERMNT=3D/poudriere/data/.m/FreeBSD_12_amd64-default-daily/ref
POUDRIERE_BUILD_TYPE=3Dbulk
PACKAGE_BUILDING=3Dyes
SAVED_TERM=3D
GID=3D0
UID=3D0
PWD=3D/poudriere/data/.m/FreeBSD_12_amd64-default-daily/ref/.p/pool
P_PORTS_FEATURES=3DFLAVORS SELECTED_OPTIONS
MASTERNAME=3DFreeBSD:12:amd64-default-daily
SCRIPTPREFIX=3D/usr/local/share/poudriere
OLDPWD=3D/poudriere/data/.m/FreeBSD_12_amd64-default-daily/ref/.p
SCRIPTPATH=3D/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=3D/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=3D
PKGENV=3D
FLAVOR=3D
DEPENDS_ARGS=3D
MAKE_ARGS=3D
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
=3D=3D=3D> The following configuration options are available for cairo-1.17=
.4,3:
     DOCS=3Don: Build and/or install documentation
     GLIB=3Don: Enable GObject Functions Feature
     X11=3Doff: X11 (graphics) support
     XCB=3Don: Enable XCB (X C-language Binding) Support
=3D=3D=3D=3D> Options available for the radio GL: you can only select none =
or one of
them
     OPENGL=3Don: 2D/3D rendering support via OpenGL
     GLESV2=3Doff: Enable GLESv2 rendering
=3D=3D=3D> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
desktop@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--
--with-html-dir=3D/usr/local/share/doc/cairo  --disable-directfb=20
--disable-gallium  --disable-wgl  --enable-tee --disable-glesv2
--enable-gobject --enable-gl --enable-egl --disable-xlib --disable-glx
--enable-xcb --x-libraries=3D/usr/local/lib --x-includes=3D/usr/local/inclu=
de
--prefix=3D/usr/local ${_LATE_CONFIGURE_ARGS}
--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PKG_CONFIG=3Dpkgconf XDG_DATA_HOME=3D/wrkdirs/usr/ports/graphics/cairo/work=
=20
XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/graphics/cairo/work=20
HOME=3D/wrkdirs/usr/ports/graphics/cairo/work TMPDIR=3D"/tmp"
PATH=3D/wrkdirs/usr/ports/graphics/cairo/work/.bin:/sbin:/bin:/usr/sbin:/us=
r/bin:
/usr/local/sbin:/usr/local/bin:/root/bin
SHELL=3D/bin/sh CONFIG_SHELL=3D/bin/sh LANG=3Den_US.UTF-8 LC_ALL=3Den_US.UT=
F-8
CONFIG_SITE=3D/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=3D5242=
88
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=3D/wrkdirs/usr/ports/graphics/cairo/work=20
XDG_CONFIG_HOME=3D/wrkdirs/usr/ports/graphics/cairo/work=20
HOME=3D/wrkdirs/usr/ports/graphics/cairo/work TMPDIR=3D"/tmp"
PATH=3D/wrkdirs/usr/ports/graphics/cairo/work/.bin:/sbin:/bin:/usr/sbin:/us=
r/bin:
/usr/local/sbin:/usr/local/bin:/root/bin
NO_PIE=3Dyes MK_DEBUG_FILES=3Dno MK_KERNEL_SYMBOLS=3Dno SHELL=3D/bin/sh NO_=
LINT=3DYES
LANG=3Den_US.UTF-8 LC_ALL=3Den_US.UTF-8 PREFIX=3D/usr/local  LOCALBASE=3D/u=
sr/local=20
CC=3D"cc" CFLAGS=3D"-O2 -pipe  -fstack-protector-strong -fno-strict-aliasin=
g "=20
CPP=3D"cpp" CPPFLAGS=3D""  LDFLAGS=3D" -fstack-protector-strong " LIBS=3D""=
  CXX=3D"c++"
CXXFLAGS=3D"-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "=20
MANPREFIX=3D"/usr/local" BSD_INSTALL_PROGRAM=3D"install  -s -m 555"=20
BSD_INSTALL_LIB=3D"install  -s -m 0644"  BSD_INSTALL_SCRIPT=3D"install  -m =
555"=20
BSD_INSTALL_DATA=3D"install  -m 0644"  BSD_INSTALL_MAN=3D"install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
LIBVER=3D2.11704.0 PORTDOCS=3D"" AMD64=3D"" NO_AMD64=3D"@comment " DOCS=3D""
NO_DOCS=3D"@comment " GLESV2=3D"@comment " NO_GLESV2=3D"" GLIB=3D"" NO_GLIB=
=3D"@comment "
OPENGL=3D"" NO_OPENGL=3D"@comment " X11=3D"@comment " NO_X11=3D"" XCB=3D""
NO_XCB=3D"@comment " GTK2_VERSION=3D"2.10.0"  GTK3_VERSION=3D"3.0.0" OSREL=
=3D12.2
PREFIX=3D%D LOCALBASE=3D/usr/local	RESETPREFIX=3D/usr/local LIB32DIR=3Dlib
DOCSDIR=3D"share/doc/cairo"  EXAMPLESDIR=3D"share/examples/cairo"=20
DATADIR=3D"share/cairo"  WWWDIR=3D"www/cairo"  ETCDIR=3D"etc/cairo"
--End PLIST_SUB--

--SUB_LIST--
 AMD64=3D"" NO_AMD64=3D"@comment " DOCS=3D"" NO_DOCS=3D"@comment " GLESV2=
=3D"@comment "
NO_GLESV2=3D"" GLIB=3D"" NO_GLIB=3D"@comment " OPENGL=3D"" NO_OPENGL=3D"@co=
mment "
X11=3D"@comment " NO_X11=3D"" XCB=3D"" NO_XCB=3D"@comment " PREFIX=3D/usr/l=
ocal
LOCALBASE=3D/usr/local  DATADIR=3D/usr/local/share/cairo
DOCSDIR=3D/usr/local/share/doc/cairo EXAMPLESDIR=3D/usr/local/share/example=
s/cairo=20
WWWDIR=3D/usr/local/www/cairo ETCDIR=3D/usr/local/etc/cairo
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=3Dyes
BATCH=3Dyes
WRKDIRPREFIX=3D/wrkdirs
PORTSDIR=3D/usr/ports
PACKAGES=3D/packages
DISTDIR=3D/distfiles
FORCE_PACKAGE=3Dyes
PACKAGE_BUILDING=3Dyes
PACKAGE_BUILDING_FLAVORS=3Dyes
#### /usr/local/etc/poudriere.d/FreeBSD:12:amd64-default-make.conf ####
DEFAULT_VERSIONS+=3D php=3D7.4
DEFAULT_VERSIONS+=3D pgsql=3D12
DEFAULT_VERSIONS+=3D samba=3D4.12
DEFAULT_VERSIONS+=3D python=3D3.7 python2=3D2.7 python3=3D3.7
OPTIONS_UNSET+=3D    X11 GUI CUPS FONTCONFIG MYSQL WAYLAND
OPTIONS_SET+=3D	   ICONV NLS IDN
LICENSES_ACCEPTED+=3D PDFlib

#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=3DFreeBSD clang version 10.0.1
(git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target:
x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=3Dnone
_CXXINTERNAL_acaad9ca=3DFreeBSD clang version 10.0.1
(git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target:
x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin
"/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1"
"--hash-style=3Dboth" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o"
"/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-=
lm"
"-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed"
"-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=3Dyes
CC_OUTPUT_921dbbb2_9bdba57c=3Dyes
CC_OUTPUT_921dbbb2_6a4fe7f5=3Dyes
CC_OUTPUT_921dbbb2_6bcac02b=3Dyes
CC_OUTPUT_921dbbb2_67d20829=3Dyes
CC_OUTPUT_921dbbb2_bfa62e83=3Dyes
CC_OUTPUT_921dbbb2_f0b4d593=3Dyes
CC_OUTPUT_921dbbb2_308abb44=3Dyes
CC_OUTPUT_921dbbb2_f00456e5=3Dyes
CC_OUTPUT_921dbbb2_65ad290d=3Dyes
CC_OUTPUT_921dbbb2_f2776b26=3Dyes
CC_OUTPUT_921dbbb2_b2657cc3=3Dyes
CC_OUTPUT_921dbbb2_380987f7=3Dyes
CC_OUTPUT_921dbbb2_160933ec=3Dyes
CC_OUTPUT_921dbbb2_fb62803b=3Dyes
_OBJC_CCVERSION_921dbbb2=3DFreeBSD clang version 10.0.1
(git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target:
x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=3Dnone
ARCH=3Damd64
OPSYS=3DFreeBSD
_OSRELEASE=3D12.2-RELEASE-p6
OSREL=3D12.2
OSVERSION=3D1202000
PYTHONBASE=3D/usr/local
HAVE_COMPAT_IA32_KERN=3DYES
_SMP_CPUS=3D2
CONFIGURE_MAX_CMD_LEN=3D524288
HAVE_PORTS_ENV=3D1
#### Misc Poudriere ####
DISABLE_MAKE_JOBS=3Dpoudriere
---End make.conf---

...

cc -DHAVE_CONFIG_H -I. -I..  -I.				 -I./pdiff=20=20=20=20=20
		 -I../boilerplate		 -I../util/cairo-missing=20=20=20=20=20=20=20
 -I../util/cairo-script  -I../src			 -I../src=09=20=20=20=20=20=20=20
	 -D_REENTRANT	   -I/usr/local/include/pixman-1=20=20=20=20
-I/usr/local/include -I/usr/local/include/freetype2=20
-I/usr/local/include/freetype2	 -I/usr/local/include -D_THREAD_SAFE -pthread
-I/usr/local/include/libdrm  -I/usr/local/include -D_THREAD_SAFE -pthread
-I/usr/local/include/libdrm  -I/usr/local/include/libpng16=20
-I/usr/local/include -pthread  -I/usr/local/include -pthread	-Wall -Wextra
-Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith
-Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum
-Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=3D2
-Winit-self -Wno-missing-field-initializers -Wno-unused-parameter
-Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common
-Wp,-D_FORTIFY_SOURCE=3D2   -D_REENTRANT -O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing -MT cairo_test_suite-gl-device-release.o -MD -MP -MF
.deps/cairo_test_suite-gl-device-release.Tpo -c -o
cairo_test_suite-gl-device-release.o `test -f 'gl-device-release.c' || echo
'./'`gl-device-release.c
gl-device-release.c:35:7: error: unknown type name 'GLXContext'
		    GLXContext glx_context,
		    ^
gl-device-release.c:63:30: error: implicit declaration of function
'glXQueryExtensionsString' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    const char *extensions =3D glXQueryExtensionsString (display,
			     ^
gl-device-release.c:63:17: warning: incompatible integer to pointer convers=
ion
initializing 'const char *' with an expression of type 'int' [-Wint-convers=
ion]
    const char *extensions =3D glXQueryExtensionsString (display,
		^	     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gl-device-release.c:80:2: error: use of undeclared identifier 'GLX_RGBA'
	GLX_RGBA,
	^
gl-device-release.c:81:2: error: use of undeclared identifier 'GLX_RED_SIZE'
	GLX_RED_SIZE, 1,
	^
gl-device-release.c:82:2: error: use of undeclared identifier 'GLX_GREEN_SI=
ZE'
	GLX_GREEN_SIZE, 1,
	^
gl-device-release.c:83:2: error: use of undeclared identifier 'GLX_BLUE_SIZ=
E'
	GLX_BLUE_SIZE, 1,
	^
gl-device-release.c:84:2: error: use of undeclared identifier 'GLX_ALPHA_SI=
ZE'
	GLX_ALPHA_SIZE, 1,
	^
gl-device-release.c:85:2: error: use of undeclared identifier
'GLX_DOUBLEBUFFER'
	GLX_DOUBLEBUFFER,
	^
gl-device-release.c:90:15: error: expected ';' after expression
    GLXContext glx_context;
	      ^
	      ;
gl-device-release.c:90:5: error: use of undeclared identifier 'GLXContext'
    GLXContext glx_context;
    ^
gl-device-release.c:90:16: error: use of undeclared identifier 'glx_context'
    GLXContext glx_context;
	       ^
gl-device-release.c:101:19: error: implicit declaration of function
'glXChooseVisual' is invalid in C99 [-Werror,-Wimplicit-function-declaratio=
n]
    visual_info =3D glXChooseVisual (display, DefaultScreen (display),
rgba_attribs);
		  ^
gl-device-release.c:101:17: warning: incompatible integer to pointer conver=
sion
assigning to 'XVisualInfo *' from 'int' [-Wint-conversion]
    visual_info =3D glXChooseVisual (display, DefaultScreen (display),
rgba_attribs);
		^
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gl-device-release.c:107:5: error: use of undeclared identifier 'glx_context'
    glx_context =3D glXCreateContext (display, visual_info, NULL, True);
    ^
gl-device-release.c:107:19: error: implicit declaration of function
'glXCreateContext' is invalid in C99 [-Werror,-Wimplicit-function-declarati=
on]
    glx_context =3D glXCreateContext (display, visual_info, NULL, True);
		  ^
gl-device-release.c:107:19: note: did you mean 'eglCreateContext'?
/usr/local/include/EGL/egl.h:152:31: note: 'eglCreateContext' declared here
EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig
config, EGLContext share_context, const EGLint *attrib_list);
			      ^
gl-device-release.c:108:9: error: use of undeclared identifier 'glx_context'
    if (glx_context =3D=3D NULL) {
	^
gl-device-release.c:113:48: error: use of undeclared identifier 'glx_contex=
t'
    test_window =3D create_test_window (display, glx_context, visual_info);
					       ^
gl-device-release.c:122:5: error: implicit declaration of function
'glXMakeCurrent' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    glXMakeCurrent (display, None, None);
    ^
gl-device-release.c:122:5: note: did you mean 'eglMakeCurrent'?
/usr/local/include/EGL/egl.h:166:31: note: 'eglMakeCurrent' declared here
EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface dr=
aw,
EGLSurface read, EGLContext ctx);
			      ^
gl-device-release.c:126:14: error: implicit declaration of function
'cairo_glx_device_create' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
    device =3D cairo_glx_device_create (display, glx_context);
	     ^
gl-device-release.c:126:14: note: did you mean 'cairo_egl_device_create'?
../src/cairo-gl.h:133:1: note: 'cairo_egl_device_create' declared here
cairo_egl_device_create (EGLDisplay dpy, EGLContext egl);
^
gl-device-release.c:126:48: error: use of undeclared identifier 'glx_contex=
t'
    device =3D cairo_glx_device_create (display, glx_context);
					       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=3D]
2 warnings and 20 errors generated.
*** Error code 1

Stop.
make[5]: stopped in /wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/test
*** Error code 1
*** Error code 1
*** Error code 1
*** Error code 1
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/cairo
=3D>> Cleaning up wrkdir
=3D=3D=3D>  Cleaning for cairo-1.17.4,3
build of graphics/cairo | cairo-1.17.4,3 ended at Wed May 26 21:36:41 +04 2=
021
build time: 00:04:58
!!! build failure encountered !!!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256180-39348-jUmFaWPyJD>