LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2013, 11:37 PM   #1
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Rep: Reputation: Disabled
undefined reference to `_glapi_tls_Dispatch' How can I solve this error??


/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/libGL.so: undefined reference to `_glapi_tls_Dispatch'
collect2: error: ld returned 1 exit status
make[4]: *** [cairo-test-suite] Error 1



During installing cairo
make && make install command error occured

who have any idea for this???
 
Old 04-16-2013, 12:05 AM   #2
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Hi what distro are you using? Have you installed a 3rd party driver that could have replaced the default libGL.so?

What does readlink -f "/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/libGL.so" say?
 
Old 04-16-2013, 12:13 AM   #3
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by konsolebox View Post
Hi what distro are you using? Have you installed a 3rd party driver that could have replaced the default libGL.so?

What does readlink -f "/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/libGL.so" say?

Using ubuntu. I typed readlink -f "/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/libGL.so".
then /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 appeared

something wrong??
 
Old 04-16-2013, 01:08 AM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Try to check if /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 is valid. Do ldd /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0, then you'll see a list of other libraries that it refers to. One of them must be libglapi.so.*. Check if it's valid as well by calling ldd on it e.g. ldd /usr/lib64/libglapi.so.0.
 
Old 04-16-2013, 01:14 AM   #5
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by konsolebox View Post
Try to check if /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 is valid. Do ldd /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0, then you'll see a list of other libraries that it refers to. One of them must be libglapi.so.*. Check if it's valid as well by calling ldd on it e.g. ldd /usr/lib64/libglapi.so.0.
I got
linux-gate.so.1 => (0xb774b000)
libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0xb76c0000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xb76ae000)
libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xb76a9000)
libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xb76a2000)
libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xb769f000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xb7569000)
libxcb-glx.so.0 => /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xb7551000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb752e000)
libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xb7528000)
libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xb751b000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7500000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb74fb000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb7350000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xb734c000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xb7345000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb733c000)
/lib/ld-linux.so.2 (0xb774c000)

after ldd /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 command

and then what am I supposed to do? I'm newbie......
 
Old 04-16-2013, 01:19 AM   #6
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
What about ldd /usr/lib/i386-linux-gnu/libglapi.so.0? And try grep _glapi_tls_Dispatch /usr/lib/i386-linux-gnu/libglapi.so.0 if it shows an output after ldd instead of saying that no such file exists. You should expect something like "Binary file /usr/lib/i386-linux-gnu/libglapi.so.0 matches".
 
Old 04-16-2013, 01:24 AM   #7
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by konsolebox View Post
What about ldd /usr/lib/i386-linux-gnu/libglapi.so.0? And try grep _glapi_tls_Dispatch /usr/lib/i386-linux-gnu/libglapi.so.0 if it shows an output after ldd instead of saying that no such file exists. You should expect something like "Binary file /usr/lib/i386-linux-gnu/libglapi.so.0 matches".
I got this
grep _glapi_tls_Dispatch /usr/lib/i386-linux-gnu/libglapi.so.0
Binary file /usr/lib/i386-linux-gnu/libglapi.so.0 matches


It seems matching is correct. I don't know next step.
 
Old 04-16-2013, 02:07 AM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
It's really odd. Do you really have to compile cairo? Isn't there a binary package for that?
 
Old 04-16-2013, 02:14 AM   #9
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by konsolebox View Post
It's really odd. Do you really have to compile cairo? Isn't there a binary package for that?
Following webpage below
http://wayland.freedesktop.org/building.html

$ git clone git://anongit.freedesktop.org/cairo
$ cd cairo
$ ./autogen.sh --prefix=$WLD --enable-gl --enable-xcb
$ make && make install <--- error

Last edited by kjg0508; 04-16-2013 at 02:47 AM.
 
Old 04-16-2013, 02:32 AM   #10
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
But with that you'll be building and installing experimental software. But if you really want to, you could start by compiling mesa I guess. Did you build it already?

Edit: Wayland libraries first I guess.
 
Old 04-16-2013, 02:52 AM   #11
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by konsolebox View Post
But with that you'll be building and installing experimental software. But if you really want to, you could start by compiling mesa I guess. Did you build it already?

Edit: Wayland libraries first I guess.
following webpage top to bottom. when occurrred error, I installed every package that I can install like

sudo apt-get install autoconf libtool libffi-dev expat libexpat1 libexpat1-dev doxygen libpthread-stubs0 libpthread-stubs0-dev libpciaccess-dev libpciaccess0 bison, flex, glproto, libdrm, dri2proto, x11, xext, xdamage, xfixes, x11-xcb, xcb-glx, xcb-dri2 bison libbison-dev flex x11proto-gl-dev x11proto-dri2-dev libx11-dev libxext-dev libxext6 libxdamage-dev libxdamage1 libxcb-xfixes0 libxcb-xfixes0-dev libxfixes-dev libxfixes3 libx11-xcb-dev libx11-xcb1 libxcb-glx0 libxcb-glx0-dev libxcb-dri2-0 libxcb-dri2-0-dev libudev-dev libudev0 llvm-dev xutils-dev compiz, compiz-core, compiz-dev

these package can occurred error?
 
Old 04-16-2013, 03:07 AM   #12
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by kjg0508 View Post
following webpage top to bottom. when occurrred error, I installed every package that I can install like

sudo apt-get install autoconf libtool libffi-dev expat libexpat1 libexpat1-dev doxygen libpthread-stubs0 libpthread-stubs0-dev libpciaccess-dev libpciaccess0 bison, flex, glproto, libdrm, dri2proto, x11, xext, xdamage, xfixes, x11-xcb, xcb-glx, xcb-dri2 bison libbison-dev flex x11proto-gl-dev x11proto-dri2-dev libx11-dev libxext-dev libxext6 libxdamage-dev libxdamage1 libxcb-xfixes0 libxcb-xfixes0-dev libxfixes-dev libxfixes3 libx11-xcb-dev libx11-xcb1 libxcb-glx0 libxcb-glx0-dev libxcb-dri2-0 libxcb-dri2-0-dev libudev-dev libudev0 llvm-dev xutils-dev compiz, compiz-core, compiz-dev

these package can occurred error?
Was there something for cairo? But I think you do need to build and install some of them manually. Did you manually build Wayland and Mesa already?
 
Old 04-16-2013, 03:47 AM   #13
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
during build manually occurred some error. need package like error: must install xorg-macros 1.16 or later before running autoconf/autogen

so using apt-cache search FILENAME , installed many package among list
 
Old 04-16-2013, 04:54 AM   #14
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by kjg0508 View Post
during build manually occurred some error. need package like error: must install xorg-macros 1.16 or later before running autoconf/autogen
You should install xorg-macros/util-macros then http://cgit.freedesktop.org/xorg/util/macros.
 
Old 04-17-2013, 02:22 AM   #15
kjg0508
LQ Newbie
 
Registered: Apr 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
reinstall ubuntu OS fix this problem
thanks to all !!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined reference error jacques83 Programming 20 04-11-2013 07:23 AM
Trying to solve multiple undefined reference to `_gfortran_*' ReverendDangles Linux - Newbie 3 04-16-2012 09:52 PM
undefined reference to error in C++ knobby67 Programming 3 01-19-2008 10:34 PM
undefined reference error ilnli Programming 2 08-02-2007 08:34 PM
undefined reference error bahadur Programming 5 07-25-2006 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:57 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions