LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2435|回复: 30

编译xfree86 出错了

[复制链接]
发表于 2002-12-20 17:45:25 | 显示全部楼层 |阅读模式
编译xfree86
此之前完成了lfs基本系统 和 freetype2
改了host.def文件后 make World出现错误
./config/cf/linux.cf:89 invalid character constant in #if
./config/cf/linux.cf:174 invalid character constant in #if
./config/cf/linux.cf:189 invalid character constant in #if
./config/cf/linux.cf:509 invalid character constant in #if
./config/imake/imake: Exit code 1.
  Stop.
make[1]: *** [config/makedepend/Makefile.proto] Error1
make[1]: *** [World] Error2
发表于 2002-12-20 17:49:14 | 显示全部楼层
你用了我的那个补丁了么?
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=14669
 楼主| 发表于 2002-12-20 18:01:42 | 显示全部楼层
没用呢

没看见那个帖子

试试先
发表于 2002-12-20 18:04:37 | 显示全部楼层
这些在置顶的索引里都有的,要注意啊:)
发表于 2002-12-20 18:08:42 | 显示全部楼层
所以说要赶紧来个置顶的错误总汇啊
 楼主| 发表于 2002-12-20 18:09:41 | 显示全部楼层
失败!
仍然编译不通过
错误和以前一样
发表于 2002-12-20 18:15:37 | 显示全部楼层
删了重新解压试试
 楼主| 发表于 2002-12-20 18:30:10 | 显示全部楼层
重解过了 仍然不行
。。。

WHY?
发表于 2002-12-20 18:47:03 | 显示全部楼层
感觉是host.def里的格式有问题,你查一下,是不是有不对的地方?还有,host.def是在xc/config/cf里的。
 楼主| 发表于 2002-12-20 19:46:07 | 显示全部楼层
# Begin XFree86 hosts.def file

/* System Related Information.  If you read and configure only one
* section then it should be this one.  The Intel architecture defaults are
* set for a i686 and higher.  Axp is for the Alpha architecture and Ppc is  
* for the Power PC.  Note that there have been reports that the Ppc
* optimization line causes segmentation faults during build.  If that
* happens, try building without the DefaultGcc2PpcOpt line.  **************/

//#define DefaultGcc2i386Opt  -O2 -fomit-frame-pointer -march=i686  
//#define DefaultGcc2AxpOpt   -O2 -mcpu=ev6
//#define DefaultGcc2PpcOpt   -O2 -mcpu=750

#define DefaultGcc2i386Opt  -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args
#define DefaultGcc2AxpOpt   -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args
#define DefaultGcc2PpcOpt   -march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -maccumulate-outgoing-args

/* The following definitions are normally set properly by XFree86's scripts.
* You can uncomment them if you want to make sure. ************************/

#define HasMTRRSupport      YES  */ /* Enabled in kernel see kernel docs */
#define HasMMXSupport        YES  */ /* Any i586 or above */
/* #define HasKatmaiSupport     NO  */ /* PIII SSE instuctions */
#define Has3DNowSupport      YES  */ /* AMD instructions */


/* This setting reduces compile time a little by omitting rarely used input
* devices.  You can find the complete list in config/cf/xfree86.cf ********/

#define XInputDrivers                 mouse void

/* VIDEO DRIVERS ***********************************************************/

/* If you are sure you only want the drivers for one or a few video cards,
* you can delete the drivers you do not want. *****************************/

#define XF86CardDrivers nv vmware

/* FONT SERVER AND LIBRARY SETTINGS ****************************************/

/* These setting should be set by default, but we are making sure. *********/

#define BuildFontServer          YES  /* Need for GhostScript Print Server */
#define SharedLibFont            YES  
#define CompressAllFonts         YES
#define GzipFontCompression      YES

/* These setting ensure we use the proper version of freetype **************/
#define HasFreetype2             YES
#define BuildFreetype2Library     NO
#define Freetype2Dir            /usr

/* The font path can be redefined in the XF86Config file *******************/

#define DefaultFontPath                $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
$(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
$(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo

/* INTERNATIONAL FONTS.  Change to YES if you need any of them.  These  are
* the defaults. ***********************************************************/

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

/* DOCUMENTATION SETTINGS **************************************************/

/* These setting are the defaults. *****************************************/

#define BuildLinuxDocHtml             NO    /* X Docs in Html format */
#define BuildLinuxDocPS               NO    /* X Docs in PostScript format */
#define BuildAllSpecsDocs             NO    /* Various docs */
#define BuildHtmlManPages             NO

/* Linux Distribution Information - Not essential that it is totally right.*/

#define LinuxDistribution         LFS

/* GENERAL SETTINGS: You generally want to leave these alone when
* building X on an LFS system *********************************************/

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

# End XFree86 host.def file
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表