Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91161884
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Mysql/postgreSQL

2008-05-26 09:12:00

作者:天极软件 来源:天极软件

通常你能在 Solaris 2.7 上使用 Solaris 2.6 二进制代码。大多数Solaris 2.6 的问题也适用于Solaris 2.7。

注意:MySQL3.23.4 和更高版本应该能自动检测 Solaris 2.7 并且启用下列问题的解决办法!

Solaris 2.7 在包括文件中有一些bug,在使用gcc时,你可以看见下列错误:

/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of the previous
definition

如果出现这种情况,你可以做下列事情解决这个问题:

拷贝/usr/include/widec.h.../lib/gcc-lib/os/gcc-version/include并且改变第41行:

#if     !defined(lint) && !defined(__lint)

为

#if     !defined(lint) && !defined(__lint) && !defined(getwc)

另外,你可以直接编辑“/usr/include/widec.h”。这两种方法,在你进行修正以后,你应该删除“config.cache”并且再运行configure

如果当你运行make时,你得到象这样错误,那是因为configure没检测“curses.h”文件(可能因为/usr/include/widec.h的错误):

In file included from mysql.cc:50:
/usr/include/term.h:1060: syntax error before `,'
/usr/include/term.h:1081: syntax error before `;'

解决它的方案是做下列步骤之一:

  • 如上所述编辑“/usr/include/widec.h”并且再次运行configure。
  • “config.h”文件删除#define HAVE_TERM行并再次运行make
  • CFLAGS=-DHAVE_CURSES CXXFLAGS=-DHAVE_CURSES ./configure进行配置。
[an error occurred while processing this directive]
阅读(686) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~