Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2014 18:56:23 +0800
From:      =?UTF-8?B?5LmU5qWa?= <honestqiao@gmail.com>
To:        freebsd-x11@freebsd.org
Subject:   Can't build chromium-31.0.1650.63(svn-version:r339634) on FreeBSD-current
Message-ID:  <CAMAY4VhdXCOkR9Lw8uNZjBPy=%2BiVA_tPt_0zLpQTPkLz4Pdo7g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hw
Model: ThinkPad x240 i5
Video: Intel4400HD

# uname -v
FreeBSD 11.0-CURRENT #0 r276196: Thu Dec 25 16:43:49 CST 2014

# pkg info -x org gl
xorg-7.7_1
libEGL-10.4.0
libGL-10.4.0

# kldstat | grep -Ei 'kms|dr'
Id Refs Address            Size     Name
11    1 0xffffffff815f8000 25958    drm.ko
32    1 0xffffffff81860000 626ac    i915kms.ko
33    1 0xffffffff818c3000 405f1    drm2.ko
44    2 0xffffffff81921000 44fb0    vboxdrv.ko

# svn info /usr/ports/
...
version: 375671
...

# svn info /usr/ports/www/chromium/
...
version: 339634
...

# make -C /usr/ports/www/chromium NO_CCACHE=yes clean config build
...
../../ui/gl/gl_surface_egl.cc:292:10: error: no matching function for
call to 'XGetWindowAttributes'
    if (!XGetWindowAttributes(GetNativeDisplay(), window_, &win_attribs)) {
         ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/X11/Xlib.h:2703:15: note: candidate function not
viable: cannot convert argument of incomplete type 'EGLNativeDisplay
Type' (aka 'void *') to 'Display *' (aka '_XDisplay *')
extern Status XGetWindowAttributes(
              ^
1 error generated.
[797/8037] CXX obj/ui/gl/gen/ui/gl/gl.gl_bindings_autogen_gl.o
ninja: build stopped: subcommand failed.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/chromium
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium
...

Somebody have a solution?

PS:
Q: Why use chromium-31.0.1650.63(svn-version:r339634)?
A: After r339634, I can build and install chromium, but chromeium wil
cause high CPU load.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMAY4VhdXCOkR9Lw8uNZjBPy=%2BiVA_tPt_0zLpQTPkLz4Pdo7g>