Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671996 - media-libs/oyranos-0.9.6-r1 - .../work/oyranos-0.9.6/src/examples/image_display/Oy_Fl_Shader_Box.h:71:5: error: ‘glGetObjectParameterivARB’ was not declared in this scope
Summary: media-libs/oyranos-0.9.6-r1 - .../work/oyranos-0.9.6/src/examples/image_displ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 686532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-26 17:27 UTC by Toralf Förster
Modified: 2019-12-26 23:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.99 KB, text/plain)
2018-11-26 17:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,165.37 KB, text/plain)
2018-11-26 17:28 UTC, Toralf Förster
Details
environment (environment,111.50 KB, text/plain)
2018-11-26 17:28 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.75 KB, application/x-bzip)
2018-11-26 17:28 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.37 KB, application/x-bzip)
2018-11-26 17:28 UTC, Toralf Förster
Details
media-libs:oyranos-0.9.6-r1:20181126-031851.log (media-libs:oyranos-0.9.6-r1:20181126-031851.log,765.02 KB, text/plain)
2018-11-26 17:28 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,41.36 KB, application/x-bzip)
2018-11-26 17:28 UTC, Toralf Förster
Details
/etc/portage/patches/media-libs/oyranos-0.9.6-r1/fix-image_display-build.patch (fix-image_display-build.patch,3.92 KB, patch)
2018-12-27 16:07 UTC, Ted Marston
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-11-26 17:27:56 UTC
In file included from /var/tmp/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6/src/examples/image_display/image_display.cpp:46:
/var/tmp/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6/src/examples/image_display/Oy_Fl_Shader_Box.h: In member function ‘void Oy_Fl_Shader_Box::print_log(GLhandleARB)’:
/var/tmp/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6/src/examples/image_display/Oy_Fl_Shader_Box.h:71:5: error: ‘glGetObjectParameterivARB’ was not declared in this scope
     glGetObjectParameterivARB (obj, GL_OBJECT_INFO_LOG_LENGTH_ARB, &len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6/src/examples/image_display/Oy_Fl_Shader_Box.h:71:5: note: suggested alternative: ‘glGetTexParameteriv’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_test_20181122-210232

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems)
  [3]   ruby25 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO media-libs/oyranos
[ebuild  N    ] media-libs/oyranos-0.9.6-r1  USE="X cairo cups exif jpeg qt5 tiff -doc -examples -fltk -raw -scanner -static-libs -test"
Comment 1 Toralf Förster gentoo-dev 2018-11-26 17:27:59 UTC
Created attachment 556328 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-26 17:28:02 UTC
Created attachment 556330 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-11-26 17:28:05 UTC
Created attachment 556332 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-11-26 17:28:07 UTC
Created attachment 556334 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-11-26 17:28:10 UTC
Created attachment 556336 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-26 17:28:13 UTC
Created attachment 556338 [details]
media-libs:oyranos-0.9.6-r1:20181126-031851.log
Comment 7 Toralf Förster gentoo-dev 2018-11-26 17:28:16 UTC
Created attachment 556340 [details]
temp.tbz2
Comment 8 artbx 2018-12-11 10:26:09 UTC
oyranos-0.9.6.ebuild worked ok, but has been deleted, there is only broken oyranos-0.9.6-r1.ebuild in portage
Comment 9 Ted Marston 2018-12-27 16:07:04 UTC
Created attachment 558608 [details, diff]
/etc/portage/patches/media-libs/oyranos-0.9.6-r1/fix-image_display-build.patch

This replaces the use of GLee.h with GL/glew.h in image_display.cpp
 and Oy_Fl_Shader_Box.h.

Unfortunately cmake defeats me. How can we tell cmake to link
 image_display.cpp with libGLEW.so?

However, running 
 ebuild oyranos-0.9.6-r1.ebuild unpack prepare configure
 then hacking
 oyranos-0.9.6_build/src/examples/CMakeFiles/oyranos-image-display.dir/link.txt
 to add /usr/lib64/libGLEW.so just before -lGL on the link line, then running
 ebuild oyranos-0.9.6-r1.ebuild merge
 oyranos-0.9.6-r1 seems to successfully merge.

The resulting oyranos-image-display program seems to run, with a few warnings.
Comment 10 Pacho Ramos gentoo-dev 2019-01-12 10:25:30 UTC
Do you want to proxy maintain this package?
https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
Comment 11 artbx 2019-01-12 11:24:51 UTC
You can link target with some lib but not single object
target_link_libraries( target_name ${GLEW_LIBRARIES})
target_include_directiories( target_name ${GLEW_INCLUDE_DIRS} )
and first praprae to find lib you want to link with by using  
find_package(GLEW)

for ex:
find_package(GLEW)
if( GLEW_FOUND )
 add_excecutable(target_name source1.cpp soure2.cpp)
 target_link_libraries( target_name ${GLEW_LIBRARIES})
 target_include_directiories( target_name ${GLEW_INCLUDE_DIRS} )
endif()
Comment 12 artbx 2019-01-12 11:27:43 UTC
And second this ebuild is broken as having -examples in USE flags dosn't disable building examplaes
Comment 13 artbx 2019-01-12 11:37:42 UTC
It looks like

by default examples are ON
option(ENABLE_EXAMPLES "Build example applications" ON)

and this ebuild line doesnt generate OFF with -examples
-DENABLE_EXAMPLES=$(usex examples)

cmake -C /home/portage/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/home/portage/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6_build/gentoo_toolchain.cmake  /home/portage/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6

it can be fixed changing function name in ebuild

multilib_src_configure() 
to
src_configure()
Comment 14 Ted Marston 2019-01-14 16:30:58 UTC
(In reply to Pacho Ramos from comment #10)
> Do you want to proxy maintain this package?
> https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers

No. Sorry. I try to help, but the responsibility would be more than I could cope with.
Comment 15 ron widler 2019-01-22 18:13:43 UTC
i am running into the same issue, and i got it to compile with this little patch:

--- oyranos-0.9.6/CMakeLists.txt.orig	2019-01-23 02:07:40.435532775 +0800
+++ oyranos-0.9.6/CMakeLists.txt	2019-01-23 02:08:54.967934455 +0800
@@ -54,8 +54,8 @@
 # if our static code lands inside a shared lib, we need -fPIC
 IF(UNIX)
   IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG)
-    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
+    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DGL_GLEXT_PROTOTYPES")
+    SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -DGL_GLEXT_PROTOTYPES")
     # coverage testing
     IF(USE_GCOV AND CMAKE_COMPILER_IS_GNUCC)
       SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")

(taken from https://aur.archlinux.org/packages/electricsheep/)

i have no idea if this is a proper fix or just a hack, though.
Comment 16 Ted Marston 2019-01-22 22:47:43 UTC
ron widler's patch is so much simpler and doesn't suffer the linking problem that mine did. I confirm that it works here too.
Comment 17 artbx 2019-01-22 22:50:27 UTC
If somone needs to build _examples_, and for -examples in USE
we still need something like this (which worked for me)
- multilib_src_configure() 
+ src_configure()
Comment 18 Nick 2019-12-06 12:52:59 UTC
There is oyranos-0.9.6.ebuild in calculate overlay that still builds.
However, it still doesn't work properly in my setup, trying to solve this. And -9999.ebuild is essentially broken.
Comment 19 Jeroen Roovers (RETIRED) gentoo-dev 2019-12-06 14:39:51 UTC
*** Bug 686532 has been marked as a duplicate of this bug. ***
Comment 20 Larry the Git Cow gentoo-dev 2019-12-26 23:51:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26db062e7b8df1334a8deb33edb799cad97cff2b

commit 26db062e7b8df1334a8deb33edb799cad97cff2b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-12-26 23:42:26 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-12-26 23:51:01 +0000

    media-libs/oyranos: Fix mesa build error, drop multilib remnant, use xdg
    
    Closes: https://bugs.gentoo.org/671996
    Closes: https://bugs.gentoo.org/672004
    Closes: https://bugs.gentoo.org/672006
    Closes: https://bugs.gentoo.org/680324
    Closes: https://bugs.gentoo.org/689686
    Package-Manager: Portage-2.3.83, Repoman-2.3.20
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../oyranos/files/oyranos-0.9.6-mesa-18.3.1.patch  | 24 ++++++++++++++++++++++
 .../oyranos/files/oyranos-0.9.6-underlinking.patch | 16 +++++++++++++++
 media-libs/oyranos/oyranos-0.9.6-r1.ebuild         | 12 +++++++----
 media-libs/oyranos/oyranos-9999.ebuild             |  4 ++--
 4 files changed, 50 insertions(+), 6 deletions(-)