Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398875 - app-emulation/emul-linux-x86-gtklibs - /usr/lib32/libcairo.so.2: undefined reference to `glDrawArrays' compiling www-plugins/nspluginwrapper
Summary: app-emulation/emul-linux-x86-gtklibs - /usr/lib32/libcairo.so.2: undefined re...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: emul-tracker
  Show dependency tree
 
Reported: 2012-01-14 13:27 UTC by dy2io
Modified: 2012-10-28 11:30 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,46.71 KB, text/plain)
2012-01-17 17:04 UTC, dy2io
Details
emerge --info www-plugins/nspluginwrapper (emerg.info,4.61 KB, text/plain)
2012-01-17 17:06 UTC, dy2io
Details
emerge --search emul-linux (emerge.emul,4.78 KB, text/plain)
2012-01-17 17:08 UTC, dy2io
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dy2io 2012-01-14 13:27:28 UTC
build.log (line 167+)
http://pastebin.com/Z6Dp8wsQ
emerge --info www-plugins/nspluginwrapper
http://pastebin.com/mZHbDZHc
emerge --search emul-linux
http://pastebin.com/DDsbADv6

Reproducible: Always

Steps to Reproduce:
emerge -av www-plugins/nspluginwrapper
Comment 1 Jory A. Pratt gentoo-dev 2012-01-15 20:28:57 UTC
attach the info directly to the bug, pastebins do not keep information past 30 days usually.
Comment 2 Wormo (RETIRED) gentoo-dev 2012-01-17 06:46:05 UTC
From the log (which you really need to paste into the bug like Jory said):

warning: libGL.so.1, needed by /usr/lib32/libcairo.so.2

libGL should be supplied by app-emulation/emul-linux-x86-opengl which is a dependency of emul-linux-x86-xlibs/emul-linux-x86-xlibs package that contains /usr/lib32/libcairo.so.2.

Do you have app-emulation/emul-linux-x86-opengl installed?
If so, does /usr/lib32/libGL.so.1 exist?
Comment 3 dy2io 2012-01-17 17:04:58 UTC
Created attachment 299163 [details]
build.log

edy2io #emerge -p app-emulation/emul-linux-x86-opengl

[ebuild   R    ] app-emulation/emul-linux-x86-opengl-20110928

dy2io #ls -l /usr/lib32/ | grep libGL

lrwxrwxrwx 1 root root       17 01-09 16:11 libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx 1 root root       21 01-09 16:11 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
-rwxr-xr-x 1 root root    29728 09-28 14:19 libGLESv1_CM.so.1.1.0
lrwxrwxrwx 1 root root       14 01-09 16:11 libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root       18 01-09 16:11 libGLESv2.so.2 -> libGLESv2.so.2.0.0
-rwxr-xr-x 1 root root    21536 09-28 14:19 libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root       18 01-09 16:11 libGLEWmx.so -> libGLEWmx.so.1.6.0
lrwxrwxrwx 1 root root       18 01-09 16:11 libGLEWmx.so.1.6 -> libGLEWmx.so.1.6.0
-rwxr-xr-x 1 root root   312472 09-28 14:20 libGLEWmx.so.1.6.0
lrwxrwxrwx 1 root root       16 01-09 16:11 libGLEW.so -> libGLEW.so.1.6.0
lrwxrwxrwx 1 root root       16 01-09 16:11 libGLEW.so.1.6 -> libGLEW.so.1.6.0
-rwxr-xr-x 1 root root   345244 09-28 14:20 libGLEW.so.1.6.0
lrwxrwxrwx 1 root root       11 01-09 16:11 libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root       20 01-09 16:11 libGLU.so.1 -> libGLU.so.1.3.071100
-rwxr-xr-x 1 root root   439816 09-28 14:19 libGLU.so.1.3.071100
Comment 4 dy2io 2012-01-17 17:06:59 UTC
Created attachment 299165 [details]
emerge --info www-plugins/nspluginwrapper
Comment 5 dy2io 2012-01-17 17:08:09 UTC
Created attachment 299167 [details]
emerge --search emul-linux
Comment 6 dy2io 2012-01-17 18:50:17 UTC
I found a solution
LDPATH="//usr/lib32/opengl/nvidia/lib://usr/lib64/opengl/nvidia/lib" 

in:
/etc/env.d/03opengl
Comment 7 Pacho Ramos gentoo-dev 2012-01-17 20:25:05 UTC
(In reply to comment #2)
> From the log (which you really need to paste into the bug like Jory said):
> 
> warning: libGL.so.1, needed by /usr/lib32/libcairo.so.2
> 
> libGL should be supplied by app-emulation/emul-linux-x86-opengl which is a
> dependency of emul-linux-x86-xlibs/emul-linux-x86-xlibs package that contains
> /usr/lib32/libcairo.so.2.

No, that file is generated by "eselect opengl", please show your "eselect opengl list" and "eselect mesa list" outputs
Comment 8 dy2io 2012-01-17 20:39:08 UTC
eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11


eselect mesa list
64bit i915 (Intel 915, 945)
64bit i965 (Intel 965, G/Q3x, G/Q4x)
64bit r300 (Radeon R300-R500)
64bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
64bit sw (Software renderer)
  [1]   classic
  [2]   gallium *
32bit i915 (Intel 915, 945)
  [1]   classic *
  [2]   gallium
32bit i965 (Intel 965, G/Q3x, G/Q4x)
  [1]   classic *
  [2]   gallium
32bit r300 (Radeon R300-R500)
  [1]   classic
  [2]   gallium *
32bit r600 (Radeon R600-R700, Evergreen, Northern Islands)
  [1]   classic
  [2]   gallium *
32bit sw (Software renderer)
  [1]   classic
  [2]   gallium *
Comment 9 Pacho Ramos gentoo-dev 2012-01-17 22:40:59 UTC
Doesn't /usr/lib32/libGL.so.1 exist for you?
ls -l /usr/lib32/libGL.so.1
Comment 10 dy2io 2012-01-18 15:32:43 UTC
/usr/lib32/libGL.so.1 doesn't exist but I managed to install www-plugins/nspluginwrapper
Comment 11 Pacho Ramos gentoo-dev 2012-01-18 15:36:03 UTC
(In reply to comment #10)
> /usr/lib32/libGL.so.1 doesn't exist but I managed to install
> www-plugins/nspluginwrapper

It should exist, try:
eselect opengl set 2
eselect opengl set 1

and verify if file exists (and points to nvidia libs)
Comment 12 dy2io 2012-01-18 15:42:50 UTC
dy2io # eselect opengl set 2

dy2io # eselect opengl set 1

dy2io # ls -ls /usr/lib32/ | grep libGL
    0 lrwxrwxrwx 1 root root       17 01-09 16:11 libGLESv1_CM.so -> libGLESv1_CM.so.1
    0 lrwxrwxrwx 1 root root       21 01-09 16:11 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
   32 -rwxr-xr-x 1 root root    29728 09-28 14:19 libGLESv1_CM.so.1.1.0
    0 lrwxrwxrwx 1 root root       14 01-09 16:11 libGLESv2.so -> libGLESv2.so.2
    0 lrwxrwxrwx 1 root root       18 01-09 16:11 libGLESv2.so.2 -> libGLESv2.so.2.0.0
   24 -rwxr-xr-x 1 root root    21536 09-28 14:19 libGLESv2.so.2.0.0
    0 lrwxrwxrwx 1 root root       18 01-09 16:11 libGLEWmx.so -> libGLEWmx.so.1.6.0
    0 lrwxrwxrwx 1 root root       18 01-09 16:11 libGLEWmx.so.1.6 -> libGLEWmx.so.1.6.0
  308 -rwxr-xr-x 1 root root   312472 09-28 14:20 libGLEWmx.so.1.6.0
    0 lrwxrwxrwx 1 root root       16 01-09 16:11 libGLEW.so -> libGLEW.so.1.6.0
    0 lrwxrwxrwx 1 root root       16 01-09 16:11 libGLEW.so.1.6 -> libGLEW.so.1.6.0
  340 -rwxr-xr-x 1 root root   345244 09-28 14:20 libGLEW.so.1.6.0
    0 lrwxrwxrwx 1 root root       11 01-09 16:11 libGLU.so -> libGLU.so.1
    0 lrwxrwxrwx 1 root root       20 01-09 16:11 libGLU.so.1 -> libGLU.so.1.3.071100
  432 -rwxr-xr-x 1 root root   439816 09-28 14:19 libGLU.so.1.3.071100


I don`t understand, work but doesn't exist.
Comment 13 dy2io 2012-01-18 16:23:50 UTC
dy2io # eselect opengl set 2

dy2io # eselect opengl set 1

dy2io # ls -ls /usr/lib32/ | grep libGL
    0 lrwxrwxrwx 1 root root       17 01-09 16:11 libGLESv1_CM.so -> libGLESv1_CM.so.1
    0 lrwxrwxrwx 1 root root       21 01-09 16:11 libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0
   32 -rwxr-xr-x 1 root root    29728 09-28 14:19 libGLESv1_CM.so.1.1.0
    0 lrwxrwxrwx 1 root root       14 01-09 16:11 libGLESv2.so -> libGLESv2.so.2
    0 lrwxrwxrwx 1 root root       18 01-09 16:11 libGLESv2.so.2 -> libGLESv2.so.2.0.0
   24 -rwxr-xr-x 1 root root    21536 09-28 14:19 libGLESv2.so.2.0.0
    0 lrwxrwxrwx 1 root root       18 01-09 16:11 libGLEWmx.so -> libGLEWmx.so.1.6.0
    0 lrwxrwxrwx 1 root root       18 01-09 16:11 libGLEWmx.so.1.6 -> libGLEWmx.so.1.6.0
  308 -rwxr-xr-x 1 root root   312472 09-28 14:20 libGLEWmx.so.1.6.0
    0 lrwxrwxrwx 1 root root       16 01-09 16:11 libGLEW.so -> libGLEW.so.1.6.0
    0 lrwxrwxrwx 1 root root       16 01-09 16:11 libGLEW.so.1.6 -> libGLEW.so.1.6.0
  340 -rwxr-xr-x 1 root root   345244 09-28 14:20 libGLEW.so.1.6.0
    0 lrwxrwxrwx 1 root root       11 01-09 16:11 libGLU.so -> libGLU.so.1
    0 lrwxrwxrwx 1 root root       20 01-09 16:11 libGLU.so.1 -> libGLU.so.1.3.071100
  432 -rwxr-xr-x 1 root root   439816 09-28 14:19 libGLU.so.1.3.071100


I don`t understand, work but doesn't exist.
Comment 14 Pacho Ramos gentoo-dev 2012-01-18 16:37:23 UTC
Will CC eselect-opengl maintainer to try to know why libGl.so link is not created for you :-/
Comment 15 Pacho Ramos gentoo-dev 2012-01-23 10:01:55 UTC
This looks to me like a problem with eselect-opengl
Comment 16 Pacho Ramos gentoo-dev 2012-10-28 11:30:18 UTC
Also try with latest emul set -> 20121028