LinuxQuestions.org
Help answer threads with 0 replies.
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-10-2005, 12:02 AM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
compiling MPlayer, can't detect X11 during configure.


Background:
Mplayer 1.0pre6a was compiled and installed. Working well. GUI enabled.
System is running Slackware-current which has been through several glibc upgrades.

Now:
Trying to compile MPlayer 1.0pre7 with gui enabled as well.

The configuration script can't detect X11 and complain that X11 is needed for gui.
The following is the message I extract from configure.log
Code:
============ Checking for X11 headers presence ============
Result is: yes (using /usr/X11/include)
##########################################

============ Checking for X11 libs presence ============
Result is: yes (using /usr/X11R6/lib)
##########################################

============ Checking for X11 ============

#include <X11/Xlib.h>
#include <X11/Xutil.h>
int main(void) { (void) XCreateWindow(0,0,0,0,0,0,0,0,0,0,0,0); return 0; }

/usr/bin/gcc-3.4.3   -static  /tmp/mplayer-conf-2703-22930.c -o /tmp/mplayer-conf-2997-22930.o -I/usr/X11/include -L/usr/X11R6/lib -lXext -lX11 -lnsl
/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0x342): In function `_X11TransSocketOpen':
: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xed1): In function `_X11TransSocketINETConnect':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(x11trans.o)(.text+0xe18): In function `_X11TransSocketINETConnect':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0x848): In function `_XEventsQueued':
: undefined reference to `pthread_equal'
/usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc01): In function `_XEventsQueued':
: undefined reference to `pthread_equal'
/usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc1e): In function `_XEventsQueued':
: undefined reference to `pthread_equal'
/usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc3d): In function `_XEventsQueued':
: undefined reference to `pthread_equal'
/usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc58): In function `_XEventsQueued':
: undefined reference to `pthread_equal'
/usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xce4): more undefined references to `pthread_equal' follow
collect2: ld returned 1 exit status

ldd /tmp/mplayer-conf-2997-22930.o
ldd: /tmp/mplayer-conf-2997-22930.o: No such file or directory

Result is: no
##########################################
Oh, I do have X11 up and running.

Is this caused by glibc upgrades? By the way, I have also compiled gcc-4.0 and installed it with program prefix, so that shouldn't cause too much problem.

How can I solved this with gui enabled?
 
Old 07-10-2005, 01:11 AM   #2
OhMyAchingGut
Member
 
Registered: May 2004
Location: Ohio
Distribution: Slackware-current/10.1/10.0, Splack 10, Suse 9.2, NetBSD 2.0, OpenBSD 3.6, Solaris 8
Posts: 85

Rep: Reputation: 15
I run slackware-current myself, although i last compiled mplayer quite some time ago. Your errors certainly suggest to me that its having issues from a brand spanking new version of Glibc. Looks as if its problem is that something its linking to was compiled with the old glibc, while its compiling itself with the newer one? Just a guess, hopefully thats in some small way helpful.
 
Old 07-10-2005, 04:53 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Would recompiling xorg on my machine help? I really don't know which is which are connected.
 
Old 07-10-2005, 05:43 AM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I think you are on the right track,may need to recompile xorg with gcc 4.0.
Just to make sure you are using 4
gcc --version
 
Old 07-15-2005, 07:56 AM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Ah, the latest X11 update on Slackware-current fix that problem for me.

Hmm, looks like PV have to compile a lot other progs which was compiled under older glib.
 
  


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
mplayer x11/xv no tv out Robgould Linux - Software 1 10-25-2005 08:44 PM
mplayer ./configure ignoring x11 martinlinuxuser Linux - Software 6 03-25-2005 03:44 AM
mplayer -vo x11, how do I specify which display? lukebeales Linux - Software 2 09-17-2004 09:35 AM
xemacs configure unable to detect x11 window system macshark Linux - Software 0 11-22-2003 02:03 AM
Problems with X11 by compiling MPlayer 0.92 on Suse 8.0 Trancebone Linux - Software 1 11-02-2003 05:31 PM

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

All times are GMT -5. The time now is 06:55 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