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 07-09-2003, 12:59 PM   #1
dorkowitz
LQ Newbie
 
Registered: Jul 2003
Distribution: rh 7.3
Posts: 15

Rep: Reputation: 0
Xine UI compiler problems


i just posted this on the end of another post (one that I found from years ago) - please let me know if anyone is familiar with this...

i have had some compiler problems, and had them resolved...
however, I cannot get past the 'make' with the xine-ui on my redhat 9 box...

i have gone to all this trouble to get it to work, but have found myself stuck, and no one has posted the same problem on the net -- maybe one of you guys can help:

this is the compiler error:

/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make[4]: *** [xine] Error 1
make[4]: Leaving directory `/home/kevin/xine-ui-0.9.21/src/xitk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/kevin/xine-ui-0.9.21/src/xitk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kevin/xine-ui-0.9.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kevin/xine-ui-0.9.21'
make: *** [all] Error 2

anyone have any suggestions? it appears to me that i am missing Xext, but im not sure, cause I cannot find it anywhere...and im not sure that will resolve the issue.,,.. anyone have this error in teh past?

any help would be appreciated!
 
Old 07-09-2003, 02:15 PM   #2
jbanafato
Newbie
 
Registered: Mar 2002
Posts: 28

Rep: Reputation: 15
I'm not all that familiar with redhat, but I think you will probably need a package called XFree86-devel.

Try this link:
http://www.rpmfind.net/linux/rpm2htm...mit=Search+...

If that doesn't do it, let me know...
 
Old 07-09-2003, 02:24 PM   #3
dorkowitz
LQ Newbie
 
Registered: Jul 2003
Distribution: rh 7.3
Posts: 15

Original Poster
Rep: Reputation: 0
infact, that same package fixed another problem that I had earlier...I have it installed, and still same result...
 
Old 07-09-2003, 02:39 PM   #4
jbanafato
Newbie
 
Registered: Mar 2002
Posts: 28

Rep: Reputation: 15
Again, I can't test this so bear with me... If you have the devel package installed, it's possible that redhat doesn't have it just right...

In your /usr/X11R6/lib dir you should have some libXext files. Make sure the symlinks (for libXext and for libX11 for good measure) are okay by doing this..

ln -s /usr/X11R6/lib/libXext.so.6 /usr/X11R6/lib/libXext.so
ln -s /usr/X11R6/lib/libX11.so.6 /usr/X11R6/lib/libX11.so

Now check your /etc/ld.so.conf file. Make sure that there is a line in there that says:

/usr/X11R6/lib

And finally, run

/sbin/ldconfig

If that still doesn't work I'll be a little confused
 
Old 07-09-2003, 03:21 PM   #5
dorkowitz
LQ Newbie
 
Registered: Jul 2003
Distribution: rh 7.3
Posts: 15

Original Poster
Rep: Reputation: 0
thanks again for taking the time

yes, they are all symlinked correctly....
i ran the ldconfig yesterday (and again, for go measure, just now) to be sure...

here is the full error, not sure if you can decipher anything from this...

gcc -I/usr/lib/include -I/usr/local/include -I../../src/xitk/xine-toolkit -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-loops=4 -falign-jumps=4 -mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 -fno-strict-aliasing -ffast-math -funroll-loops -finline-functions -Wall -D_FILE_OFFSET_BITS=64 -o xine actions.o config_wrapper.o control.o download.o errors.o event.o event_sender.o file_browser.o kbindings.o lang.o lirc.o main.o menus.o mrl_browser.o network.o osd.o session.o setup.o skins.o snapshot.o panel.o playlist.o post.o mediamark.o stream_infos.o videowin.o viewlog.o -L/usr/local/lib ../../src/common/.libs/libcommon.al ../../src/xitk/xine-toolkit/.libs/libxitk.al -L/usr/lib/lib -lXext -lpng /usr/local/lib/libxine.so -L/root/usr/lib -lpthread -L/usr/lib /usr/lib/libcurl.so -ldl -lz -lX11 -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make[4]: *** [xine] Error 1
make[4]: Leaving directory `/home/kevin/xine-ui-0.9.21/src/xitk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/kevin/xine-ui-0.9.21/src/xitk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kevin/xine-ui-0.9.21/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kevin/xine-ui-0.9.21'
make: *** [all] Error 2


any ideas?
 
Old 07-09-2003, 03:37 PM   #6
jbanafato
Newbie
 
Registered: Mar 2002
Posts: 28

Rep: Reputation: 15
Well.. you can explicitly add /usr/X11R6/lib to the include path. If you edit Makefile you should see something about CFLAGS with a list of directories behind it.

Also, it may be possible to do
export GLOBAL_CFLAGS="-L/usr/X11R6/lib"
and then run configure again.

If you want to post the makefile I can take a look. Also, you could post the output of "ls -l /usr/X11R6/lib/libXext*" and "cat /etc/ld.so.conf". I've definitely spent a day or so pondering over what turned out to be a misspelling, so another set of eyes can't hurt.
 
Old 07-09-2003, 03:37 PM   #7
dorkowitz
LQ Newbie
 
Registered: Jul 2003
Distribution: rh 7.3
Posts: 15

Original Poster
Rep: Reputation: 0
jbanafato thanks for your help...
in the end, im not sure what fixed the problem--but because of the changes I've made to the system over the past 2 days...I decided to scrap everything....ie make clean, make distclean and start fresh, one shot.

so,
./configure
make
make install
all work....

i have other problems now, like video driver issues...but something i will hack away at.

thanks again

Kev
 
Old 07-09-2003, 03:47 PM   #8
dorkowitz
LQ Newbie
 
Registered: Jul 2003
Distribution: rh 7.3
Posts: 15

Original Poster
Rep: Reputation: 0
infact, i think this is the problem:

after setting the environment variables for both user, and root for the LD_LIBRARY_PATH to /usr/local/lib...I logged out, logged back in as User, checked $LD_LIBRARY_PATH then SU'd - to root. I always understood that you retained your enviroment when SU'ing to root......

i didnt think to check to see if the variable worked under root (from SU). so, i presume when i ran ./configure, it didnt pick up the correct variables(??) and when make was run, I got the ld -lXext error...

so, checking LD_LIBRARY_PATH under SU to root, gave me nothing....
so I set the variable, scrapped my ./configure settings and started over....and it compiled...

i may be giving this minor issue more than its worth, but it appears to be the reason for the compiler error....who knew.....

thanks again!
 
  


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
problems with C compiler jurebe Slackware 2 03-09-2005 07:57 AM
C Compiler problems..... metallicasorc Linux - Software 2 01-17-2005 08:27 AM
Compiler problems Tangz Linux - Software 12 07-17-2004 06:14 PM
problems with c-compiler salokas Linux - Software 3 05-07-2004 07:36 AM
Compiler problems hornet77 Linux - Software 1 04-21-2004 09:40 PM


All times are GMT -5. The time now is 10:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration