LinuxQuestions.org
Visit Jeremy's Blog.
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 01-13-2010, 06:03 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 368

Rep: Reputation: 31
ld returned 1 exit status


Can anyone tell me what will be the error?
Code:
L  -lm -o corender
/mnt/freescale/toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libX11.so.6, needed by ../../lib/libGL.so, not found (try using -rpath or -rpath-link)
/mnt/freescale/toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: warning: libXext.so.6, needed by ../../lib/libGL.so, not found (try using -rpath or -rpath-link)
corender.o: In function `main':
corender.c:(.text+0x4c4): undefined reference to `XOpenDisplay'
corender.c:(.text+0x5d8): undefined reference to `XPending'
corender.c:(.text+0x5ec): undefined reference to `XNextEvent'
corender.c:(.text+0x614): undefined reference to `XLookupKeysym'
corender.c:(.text+0x634): undefined reference to `XLookupString'
corender.c:(.text+0x6e4): undefined reference to `XCreateColormap'
corender.c:(.text+0x740): undefined reference to `XCreateWindow'
corender.c:(.text+0x77c): undefined reference to `XSetNormalHints'
corender.c:(.text+0x7a4): undefined reference to `XSetStandardProperties'
corender.c:(.text+0x7d4): undefined reference to `XSetStandardProperties'
corender.c:(.text+0x7e0): undefined reference to `XMapWindow'
corender.c:(.text+0x868): undefined reference to `XChangeWindowAttributes'
../../lib/libGL.so: undefined reference to `XQueryExtension'
../../lib/libGL.so: undefined reference to `XQueryColors'
../../lib/libGL.so: undefined reference to `XFree'
../../lib/libGL.so: undefined reference to `XSetTile'
../../lib/libGL.so: undefined reference to `XCreateImage'
../../lib/libGL.so: undefined reference to `XQueryFont'
../../lib/libGL.so: undefined reference to `XUngrabPointer'
../../lib/libGL.so: undefined reference to `XGetWindowProperty'
../../lib/libGL.so: undefined reference to `XSetFillStyle'
../../lib/libGL.so: undefined reference to `XFreeColors'
../../lib/libGL.so: undefined reference to `dlsym'
../../lib/libGL.so: undefined reference to `XTranslateCoordinates'
../../lib/libGL.so: undefined reference to `XDrawPoint'
../../lib/libGL.so: undefined reference to `XCopyArea'
../../lib/libGL.so: undefined reference to `XSynchronize'
../../lib/libGL.so: undefined reference to `XDrawLine'
../../lib/libGL.so: undefined reference to `XFreeFontInfo'
../../lib/libGL.so: undefined reference to `XSetForeground'
../../lib/libGL.so: undefined reference to `XFillRectangle'
../../lib/libGL.so: undefined reference to `XShmCreateImage'
../../lib/libGL.so: undefined reference to `XGetGeometry'
../../lib/libGL.so: undefined reference to `XFreeGC'
../../lib/libGL.so: undefined reference to `XShmQueryVersion'
../../lib/libGL.so: undefined reference to `XSetFunction'
../../lib/libGL.so: undefined reference to `XSetLineAttributes'
../../lib/libGL.so: undefined reference to `XUngrabKeyboard'
../../lib/libGL.so: undefined reference to `XCreateGC'
../../lib/libGL.so: undefined reference to `XFlush'
../../lib/libGL.so: undefined reference to `XSync'
../../lib/libGL.so: undefined reference to `XPutImage'
../../lib/libGL.so: undefined reference to `XShmAttach'
../../lib/libGL.so: undefined reference to `XGetImage'
../../lib/libGL.so: undefined reference to `XAllocColor'
../../lib/libGL.so: undefined reference to `XSetPlaneMask'
../../lib/libGL.so: undefined reference to `XInternAtom'
../../lib/libGL.so: undefined reference to `XGetVisualInfo'
../../lib/libGL.so: undefined reference to `XAddExtension'
../../lib/libGL.so: undefined reference to `XGetWindowAttributes'
../../lib/libGL.so: undefined reference to `XShmPutImage'
../../lib/libGL.so: undefined reference to `XSetErrorHandler'
../../lib/libGL.so: undefined reference to `XFreePixmap'
../../lib/libGL.so: undefined reference to `XDrawString16'
../../lib/libGL.so: undefined reference to `XCreatePixmap'
../../lib/libGL.so: undefined reference to `dlopen'
../../lib/libGL.so: undefined reference to `XShmDetach'
../../lib/libGL.so: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [corender] Error 1
make[2]: Leaving directory `/mnt/freescale/sources/mesa-7.6/progs/xdemos'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/mnt/freescale/sources/mesa-7.6/progs'
make: *** [default] Error 1
Building  of glib library  has failed 
sharief@sharief-desktop:/mnt/freescale/sources/mesa-7.6$
 
Old 01-13-2010, 06:07 AM   #2
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
maybe wrong version of the library, or version you have does not have the features your program uses.
 
Old 01-13-2010, 09:11 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by shariefbe View Post
Can anyone tell me what will be the error?
Yes, as it says in what you posted, you're missing parts of the X windows environment. Install them, following the links in your other threads, where you're posting about the same sorts of issues.
 
Old 01-13-2010, 09:23 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
In the first two lines, it tells you that it is missing 2 libraries. There's a good chance that all the other error messages are traceable to that.

Always fix the first problem that is reported, before trying to analyze further.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
collect2: ld returned 1 exit status makphy Linux - Newbie 0 12-14-2009 02:05 AM
collect2: ld returned 1 exit status kvijaik Linux - Software 2 10-07-2009 09:17 PM
collect2: ld returned 1 exit status Ritendra Linux - Newbie 2 07-30-2009 07:39 AM
collect2: ld returned 1 exit status abirami Linux - Software 0 03-02-2005 01:07 AM
popa3d collect2: ld returned 1 exit status datapunk Linux - Software 1 01-02-2004 06:48 PM

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

All times are GMT -5. The time now is 08:35 PM.

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
Open Source Consulting | Domain Registration