LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 01-28-2011, 03:06 AM   #1
haveanother
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Rep: Reputation: 0
Question Compiling xorg-server-1.7.4 from source / build fails


I'm trying to compile xorg-server-1.7.4 from source, but it's throwing this error:

Code:
glxdri.c: In function '__glXDRIscreenProbe':
glxdri.c:993: error: 'XF86DRI_MAJOR_VERSION' undeclared (first use in this function)
glxdri.c:993: error: (Each undeclared identifier is reported only once
glxdri.c:993: error: for each function it appears in.)
glxdri.c:994: error: 'XF86DRI_MINOR_VERSION' undeclared (first use in this function)
glxdri.c:995: error: 'XF86DRI_PATCH_VERSION' undeclared (first use in this function)
make[1]: *** [glxdri.lo] Error 1
I have installed or compiled all the dependencies for it already, and the configure script runs successfully...

Does anyone have an idea what could be wrong ?
 
Old 01-28-2011, 03:40 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,366

Rep: Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557Reputation: 557
Some one of your dependencies is missing/wrong version. The actual error is higher up the output. You need the very first error. There is parallel development in things like libdrm, mesa, video drivers and a few other obscure libs (pixman?) that requires later versions than you might have.
Try
1. find out what glxdri.c is part of &
2. run ldd on your present version
 
1 members found this post helpful.
Old 01-28-2011, 03:48 AM   #3
haveanother
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks, I'll try that...
 
Old 01-28-2011, 03:59 AM   #4
haveanother
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, here's the first error:

Code:
glxdri.c:46:34: error: X11/dri/xf86driproto.h: No such file or directory
Quite self-explaining. I suppose I have to find which package/dependency installs that file...
 
Old 01-28-2011, 04:16 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

You miss xf86driproto.
Take a look here for the prerequisites (protos and libraries) needed for compiling xorg-server

Regards
 
1 members found this post helpful.
Old 01-28-2011, 04:41 AM   #6
haveanother
LQ Newbie
 
Registered: Jan 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Ok, I found the file inside the xf86driproto package's install dir. (I have version 2.1.1)

I've noticed this line in xorg-server's config.log file:

Code:
pkg_cv_DRIPROTO_CFLAGS='-I/[...path...]/xf86driproto_bin/include/X11/dri  '
This was being generated from a pkg-config pc file, xf86driproto.pc, which was also in that install dir (specified earlier by --prefix for that package's configure script), inside lib/pkgconfig.

I changed this line:

Code:
Cflags: -I${includedir}/X11/dri
To this:

Code:
Cflags: -I${includedir}/X11/dri -I${includedir}
Because the file in xorg-server was being included with the X11/dri path prefix, it would work if it started looking from the base of xf86driproto's installed include dir.

I ran configure again, and now make can build that file (glxdri.o) successfully.

(although it failed at the next file right after that, not finding "pciaccess.h". I have that file installed however, and it's in another package, so I think the solution is going to be the same for that too.)

Thanks for your help, business_kid, bathory.
 
  


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
xorg 7.4 (compiled from source) fails to take off corbis_demon Slackware 11 10-23-2009 09:10 AM
compiling from source fails after kernel upgrade in slackware12 gopi.d Slackware 8 12-16-2007 01:06 AM
Xorg.conf is edited on restart? x-server fails to start Linkhiei Linux - Hardware 2 10-07-2007 10:49 AM
compiling xorg, C preprocessor "/lib/cpp" fails sanity check kryptobs2000 Linux - Software 4 01-29-2007 09:23 AM
Compiling FlightGear from source fails cluelessnewb Linux - Software 5 07-17-2006 03:42 PM


All times are GMT -5. The time now is 02:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration