Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
R-Pi 2B undefined references in libGLESv2.so [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
ccosse
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 171
Location: Las Vegas, NV

PostPosted: Mon Sep 19, 2016 9:31 pm    Post subject: R-Pi 2B undefined references in libGLESv2.so [SOLVED] Reply with quote

Hi, I'm having a recurring problem on my Raspberry-Pi 2B and cannot build librsvg. It seems to be caused by raspberrypi-userland, which is the parent package of the libGLESv2.so ... which keeps failing with message blocks like this:

Code:

libtool: link: armv7a-hardfloat-linux-gnueabi-gcc -pthread -DUSE_VCHIQ_ARM -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -I/usr/include/gio-unix-2.0/ -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -Wl,-O1 -o .libs/rsvg-convert rsvg_convert-rsvg-convert.o rsvg_convert-rsvg-size-callback.o  -Wl,--as-needed ./.libs/librsvg-2.so -lpng16 -lcroco-0.6 -lxml2 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lm -pthread
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_error_assist'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_pointer_map_delete'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_get_type_size'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_begin'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_flush'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_send_ctrl_end'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_recv'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_pointer_map_insert'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_pointer_map_lookup'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_send_ctrl_write'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_platform_malloc'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_send_ctrl_begin'
/opt/vc/lib/libGLESv2.so: undefined reference to `platform_tls_get'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_pointer_map_iterate'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_pointer_map_term'
/opt/vc/lib/libGLESv2.so: undefined reference to `client_tls'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_send_bulk'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_platform_free'
/opt/vc/lib/libGLESv2.so: undefined reference to `khrn_pointer_map_init'
/opt/vc/lib/libGLESv2.so: undefined reference to `rpc_end'
/opt/vc/lib/libGLESv2.so: undefined reference to `platform_memcpy'
collect2: error: ld returned 1 exit status
Makefile:926: recipe for target 'rsvg-convert' failed
make[2]: *** [rsvg-convert] Error 1





build-log: http://pastebin.com/b62Gqb7V
emerge-info: http://pastebin.com/bq3ZvzZs

There was a guy with a similar issue here: https://forums.gentoo.org/viewtopic-t-1041628-highlight-libglesv2.html but toggling gles2 USE flag doesn't do anything in my case.

Does anybody know what's wrong? Thanks!


Last edited by ccosse on Tue Sep 20, 2016 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Tue Sep 20, 2016 10:02 am    Post subject: Reply with quote

This is unfortunately a problem with mesa and raspberrypi-userland. Make sure that xorg-x11 is selected in eselect opengl.
Back to top
View user's profile Send private message
ccosse
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 171
Location: Las Vegas, NV

PostPosted: Tue Sep 20, 2016 8:11 pm    Post subject: Reply with quote

@chithanh thanks for the advice!

So it turns out that it was set to xorg-x11 when the raspberrypi-userland was still generating the errors ... maybe that's nothing but idk, is that any clue?

Code:

Available OpenGL implementations:
  [1]   raspberrypi-userland
  [2]   xorg-x11 *


I'll try eselecting [1] and see what happens ...
Back to top
View user's profile Send private message
ccosse
Apprentice
Apprentice


Joined: 10 Mar 2004
Posts: 171
Location: Las Vegas, NV

PostPosted: Tue Sep 20, 2016 8:36 pm    Post subject: [solved] Reply with quote

ccosse wrote:
I'll try eselecting [1] and see what happens ...


Oh boy oh boy!! It builds! It needed to be point to raspberrypi-userland. Thanks again for the clue that fixed me up.
Back to top
View user's profile Send private message
9a3eedi
n00b
n00b


Joined: 12 Jul 2007
Posts: 14

PostPosted: Sat Nov 19, 2016 12:54 pm    Post subject: Reply with quote

I had the same problem when trying to build harfbuzz, while emerging world. This solution solves it. Thanks!

I wonder what that select command actually does, and why it solves the problem. Can anyone explain?
Back to top
View user's profile Send private message
deadram
n00b
n00b


Joined: 20 Dec 2006
Posts: 44

PostPosted: Mon Dec 12, 2016 7:08 am    Post subject: Reply with quote

I'm betting it tells the compiler to use either "/usr/include/GL.." or "/opt/vc/include/GL..". From what I can tell, there are a few differences not just in the code, but in the typedef's that are defined.
_________________
echo deadram; fortune
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Mon Dec 12, 2016 8:49 am    Post subject: Reply with quote

9a3eedi,

eselect opengl shuffles symlinks.

Many years ago, nvida-drivers used to need to do this to get things to build against opengl.
Its a feature.

The more you stray from the beaten path, the more of these features you encounter.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum