Solved [Solved] (not clearly) libGL failed to upgrade

Hello there, I've got some problem during update of ports.
I excluded (libGL)port by this command : portmaster -a -x=graphics/libGL, and it's not excluded exactly!
I have the same problem in FreeBSD 10 now with mesa with "intel" (i915 i965 r200) driver compile process in dri.
Thanks.
#portmaster libGL
Code:
../../../src/mesa/main/mtypes.h:3420: error: 'GLDEBUGPROCARB' does not name a type
In file included from ../../../src/glsl/glsl_types.h:31,
                 from ../../../src/glsl/ir.h:33,
                 from ../../../src/glsl/glsl_symbol_table.h:34,
                 from ../../../src/glsl/glsl_parser_extras.h:35,
                 from ../../../src/glsl/ast.h:30,
                 from glsl_lexer.ll:27:
../../../src/mesa/main/mtypes.h:3420: error: 'GLDEBUGPROCARB' does not name a type
In file included from ../../../src/mesa/main/imports.h:41,
                 from ../../../src/mesa/main/context.h:52,
                 from glsl_parser.yy:32:
../../../src/mesa/main/errors.h:84: error: variable or field '_mesa_DebugMessageCallbackARB' declared void
../../../src/mesa/main/errors.h:84: error: 'GLDEBUGPROCARB' was not declared in this scope
../../../src/mesa/main/errors.h:85: error: expected primary-expression before 'const'

My machine :
9.2-STABLE FreeBSD 9.2-STABLE #33: Sun Jan 26 19:51:47 IRST 2014
 
Re: libGL failed to upgrade

I faced the same problem recently. I added WITH_NEW_XORG=yes to /etc/make.conf and rebuilt all my ports. This time libGL was successfully installed.
 
Re: libGL failed to upgrade

It has been enabled before !.
And is that means that have new error ??
Code:
brw_eu_compact.c:315:4: error: invalid suffix "b001101110001" on integer constant
brw_eu_compact.c:316:4: error: invalid suffix "b001101111000" on integer constant
brw_eu_compact.c:317:4: error: invalid suffix "b010001101000" on integer constant
brw_eu_compact.c:318:4: error: invalid suffix "b010001101001" on integer constant
brw_eu_compact.c:319:4: error: invalid suffix "b010001101010" on integer constant
brw_eu_compact.c:320:4: error: invalid suffix "b010110001000" on integer constant
gmake[6]: *** [brw_eu_compact.lo] Error 1
gmake[6]: *** Waiting for unfinished jobs....
gmake[6]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mesa/drivers/dri/i965'


And i did it :
cd /usr/ports/graphics/dri/work/Mesa-9.1.7 && ./configure
and result is :
Code:
checking for DRIGL... yes
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
configure: error: Expat required for DRI.

but

find /usr/ -name expat.h
Code:
/usr/local/include/expat.h
/usr/local/www/apache22/data/svn/svn0.eu.freebsd.org/base/stable/10/contrib/expat/lib/expat.h
/usr/local/www/apache22/data/svn/svn0.eu.freebsd.org/base/stable/10/usr.bin/svn/expat.h
/usr/src/contrib/expat/lib/expat.h
/usr/ports/databases/py-sqlite3/work/Python-2.7.6/Modules/expat/expat.h
/usr/ports/devel/cmake-modules/work/cmake-2.8.12.1/Utilities/cmexpat/expat.h
^C
Is the path worng ?
 
Re: libGL failed to upgrade

Have you been following /usr/ports/UPDATING? Specifically, entry 20131216.
 
Re: libGL failed to upgrade

wblock@ said:
Have you been following /usr/ports/UPDATING? Specifically, entry 20131216.

Yes sir ! I'm using DB6 but the problem is not solved yet.

I deleted all ports and packages, extract all ports again, and nothing has changed.
 
Re: libGL failed to upgrade

No, the 20131216 entry on libGL, which says to delete the existing package before upgrading.
 
Re: libGL failed to upgrade

What about new installation ?, I deleted all packages and it shoud be work fine, isn't right?.
 
Re: libGL failed to upgrade

Thanks for your replies.
At below you can see the result of command:
portmaster graphics/libdrm graphics/dri x11-servers/xorg-server \
x11-drivers/xf86-input-mouse x11-drivers/xf86-input-keyboard \
x11-drivers/xf86-video-intel x11-drivers/xf86-video-ati graphics/libGL

Code:
brw_eu_compact.c:318:4: error: invalid suffix "b010001101001" on integer constant
brw_eu_compact.c:319:4: error: invalid suffix "b010001101010" on integer constant
brw_eu_compact.c:320:4: error: invalid suffix "b010110001000" on integer constant
gmake[6]: *** [brw_eu_compact.lo] Error 1
gmake[6]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mesa/drivers/dri/i965'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mesa/drivers/dri'
gmake[4]: *** [all-recursive] Error 1

and /etc/make.conf
Code:
#PERL_VERSION=5.14.1
#PYTHON_VERSION=3.3
#PYHTON_VERSION=2.7
#RUBY_VERSION=1.8
#WITH_PKGNG=yes
WITH_BDB_VER=6
WITH_NEW_XORG=yes
WITH_PKGNG=yes
#WITHOUT_PKGNG=yes
MAKE_JOBS_UNSAFE=yes
 
Re: libGL failed to upgrade

It just built fine here. You do not have WITH_GALLIUM in /etc/make.conf, although it should not be required. It does bring in a new LLVM from ports, though.

Please install sysutils/bsdadminscripts and run pkg_libchk -o. If it reports anything, those ports need to be rebuilt.
 
Re: libGL failed to upgrade

wblock@ said:
It just built fine here. You do not have WITH_GALLIUM in /etc/make.conf, although it should not be required. It does bring in a new LLVM from ports, though.

Please install sysutils/bsdadminscripts and run pkg_libchk -o. If it reports anything, those ports need to be rebuilt.

I tried but nothing has change.
Thanks

Code:
        * graphics/okular (okular-4.10.5_3)
        * sysutils/nepomuk-core (nepomuk-core-4.12.4)
        * deskutils/kdepimlibs4 (kdepimlibs-4.12.4)
        * security/kgpg-kde4 (kgpg-4.12.4)
        * sysutils/nepomuk-widgets (nepomuk-widgets-4.12.4)
        * x11/kactivities (kactivities-4.12.4)
        * editors/kate (kate-4.12.4)
        * x11/kde4-runtime (kde-runtime-4.12.4)
        * x11/kactivitymanagerd (kactivitymanagerd-4.12.4)
        * x11/kde4-workspace (kde-workspace-4.11.8)
        * x11-clocks/ktux (ktux-4.12.4)
        * net/kget (kget-4.12.4)
        * deskutils/kdeplasma-addons (kdeplasma-addons-4.12.4)
        * x11-clocks/kdetoys4 (kdetoys-4.12.4)
        * x11/kde4-baseapps (kde-baseapps-4.12.4)
        * graphics/gwenview-kde4 (gwenview-4.12.4)
        * graphics/kdegraphics4 (kdegraphics-4.12.4)
        * misc/kdeutils4 (kdeutils-4.12.4)
        * net/kdenetwork4 (kdenetwork-4.12.4)
        * x11/kde4 (kde-4.12.4)
--->  Packages processed: 632 done, 1 ignored, 20 skipped and 1 failed
--->  Session ended at: Wed, 09 Apr 2014 04:50:12 +0430 (consumed 13:23:25)
root@ :: t4yt4n5 :: /usr/ports/x11/xorg  pkg_info | grep dri
dri2proto-2.8       DRI2 prototype headers
libiodbc-3.52.8     An ODBC 3.x driver manager, for universal data source acces
root@ :: t4yt4n5 :: /usr/ports/x11/xorg  cd /usr/ports/graphics/dri
root@ :: t4yt4n5 :: /usr/ports/graphics/dri  make
===>  Building for dri-9.1.7_3,2
........
brw_eu_compact.c:319:4: error: invalid suffix "b010001101010" on integer constant
brw_eu_compact.c:320:4: error: invalid suffix "b010110001000" on integer constant
gmake[6]: *** [brw_eu_compact.lo] Error 1
gmake[6]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mesa/drivers/dri/i965'
gmake[5]: *** [all-recursive] Error 1
gmake[5]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mesa/drivers/dri'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mesa/drivers'
 
Re: libGL failed to upgrade

I passed "dri" problem ! - by removing i915+i965+radeon driver from Makefile and everywhere i found them - but some packages has conflict together now.

Code:
configure: error: Package requirements (glproto >= 1.4.14 dri >= 7.8.0) were not met:

root@ :: t4yt4n5 :: /usr/ports/ports-mgmt/pkg pkg info | grep dri

Code:
dri-9.1.7_3,2                  OpenGL hardware acceleration drivers for the DRI
dri2proto-2.8                  DRI2 prototype headers

why i should to depend on "DRI" (intel driver ????) when i'm using "NVIDIA" ?
and i am really mad !.

pkg info | grep gl

Code:
glproto-1.4.17                 GLX extension headers
 
Re: (SOLVED not clearly) libGL failed to upgrade

Finally I did :
step 1 - installing /usr/ports/graphics/dir with this config in /usr/ports/graphics/dir/Makefile :
Code:
#ALL_DRI_DRIVERS=915 965 RADEON SWRAST
as you can see i commented (i deleted intels and i forget name of them) ALL_DRI_DRIVERS.
and change the /usr/ports/graphics/dri/pkg-plist to
Code:
%%NEW%%%%GALLIUM%%lib/libllvmradeon%%VERSION%%.la
%%NEW%%%%GALLIUM%%lib/libllvmradeon%%VERSION%%.so
@dirrmtry include/GL/internal
@dirrmtry include/GL

step 2 - installing /usr/ports/x11/xorg cd [file]/usr/ports/x11/xorg[/file]&&make install
step 3 - installing /usr/ports/x11-servers/xorg-server in binary mode with pkg_fetch xorg-server
and installing by force pkg_add -fv /root/xorg-server.tbz
step4 - reinstalling /usr/ports/x11-rivers/xorg-drivers by command make -k

I know this not perfect but it's a solution ! when i can not find the reason of compilation error.
Thanks all.
Thanks @wblock.
 
Last edited by a moderator:
Back
Top