LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-18-2005, 12:11 PM   #1
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
XFree86 4.5.0 compilation problem


Hi,

I'm now trying to compile XFree86 4.5.0 from source following the BLFS instructions, but I cannot compile it due to a persistent error, here's the relevant part of the xfree-compile.log file for you to see it:


make[4]: Entering directory `/sources/xcbuild/config/pswrap'
gcc -m32 -O2 -fomit-frame-pointer -march=i686 -ansi -pipe -I../.. -I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXENVIRONMENT -c -o main.o main.c
bison -y -d pswparser.y
conflicts: 1 shift/reduce
mv -f y.tab.c pswparser.c
+ mv -f y.tab.h pswparser.h
gcc -m32 -O2 -fomit-frame-pointer -march=i686 -ansi -pipe -I../.. -I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXENVIRONMENT -c -o pswparser.o pswparser.c
flex -l lexer.l
mv -f lex.yy.c lexer.c
gcc -m32 -O2 -fomit-frame-pointer -march=i686 -ansi -pipe -I../.. -I../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXENVIRONMENT -c -o lexer.o lexer.c
lex.yy.c: In function `yylex':
lex.yy.c:1199: error: `yy_prev_more_offset' undeclared (first use in this function)
lex.yy.c:1199: error: (Each undeclared identifier is reported only once
lex.yy.c:1199: error: for each function it appears in.)
make[4]: *** [lexer.o] Error 1
make[4]: Leaving directory `/sources/xcbuild/config/pswrap'
make[3]: *** [../../config/pswrap/pswrap] Error 2
make[3]: Leaving directory `/sources/xcbuild/lib/dps'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/sources/xcbuild/lib'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/sources/xcbuild'
make: *** [World] Error 2


here's my host.def file for XFree86:


#define DefaultGcc2i386Opt -O2 -fomit-frame-pointer -march=i686
#define HasMTRRSupport YES
#define HasMMXSupport YES
#define HasKatmaiSupport YES

#define XInputDrivers mouse void

#define XF86CardDrivers fbdev AgpGartDrivers vesa
#define DriDrivers i915

#define HasFreetype2 YES
#define HasFontconfig YES
#define HasExpat YES
#define HasLibpng YES
#define HasZlib YES

/*
#define BuildCyrillicFonts YES
#define BuildArabicFonts YES
#define BuildISO8859_6Fonts YES
#define BuildGreekFonts YES
#define BuildISO8859_7Fonts YES
#define BuildHebrewFonts YES
#define BuildISO8859_8Fonts YES
#define BuildKOI8_RFonts YES
#define BuildJapaneseFonts YES
#define BuildJISX0201Fonts YES
#define BuildKoreanFonts YES
#define BuildChineseFonts YES
*/

#define GccWarningOptions -pipe
#define TermcapLibrary -lncurses
#define XprtServer YES
#define XnestServer YES
#define XAppLoadDir EtcX11Directory/app-defaults
#define VarLibDir /var/lib
#define XFree86Devel NO
#define FSUseSyslog YES
#define ThreadedX YES
#define HasPam YES
#define SystemManDirectory /usr/share/man
#define HasLibCrypt YES
#define InstallXinitConfig YES
#define InstallXdmConfig YES
#define ForceNormalLib YES
#define BuildSpecsDocs NO


can anyone help me identifying the source of the problem?

Thanks in advance,
Julio
 
Old 07-18-2005, 05:18 PM   #2
[|RoA|]RoadRunner
Member
 
Registered: Jul 2005
Distribution: LFS
Posts: 43

Rep: Reputation: 15
http://www.linuxquestions.org/questions/history/335090
 
Old 07-19-2005, 03:16 AM   #3
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the help, I effectively supposed the error was in the Flex installation as I proceeded to open the lexer.c file and I found everything to be fine except that variable yy_prev_more_offset, I even tried to declare it but it was useless and a very bad trick, anyway it didn't work

thanks

Julio
 
Old 07-19-2005, 05:56 AM   #4
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Hi,

It worked perfectly

now I have XFree86 4.5.0 installed with hardware support for my i915 chipset, although it has to be supported through the i810 driver ...

does anyone know if there's a better driver combination between the xf86 drivers and the DRI drivers to obtain support for i915 graphics integrated chipset?

Julio
 
  


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
Compilation Problem jonty_11 Programming 4 03-24-2005 09:45 PM
XFree86-4.4.0 compilation error jomen Linux From Scratch 9 07-29-2004 05:48 AM
XFree86-4.4.0 compilation error jomen Linux - Software 8 07-29-2004 05:47 AM
XFree86-4.4.0 compilation error jomen Linux - Software 0 07-09-2004 01:54 AM
c compilation problem edreddy Programming 5 06-02-2004 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:27 AM.

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