Board logo

标题: Solaris 10 gcc Compile DBI.pm has been passed [打印本页]

作者: admin    时间: 10-9-2008 05:08     标题: Solaris 10 gcc Compile DBI.pm has been passed

When compiling DBI modules in Solaris, and you get the following error:

cc: unrecognized option `-KPIC'
cc: language ildoff not recognized

This is caused by the fact that your CC installation is being referenced instead of GCC, which doesn't execute the options added in your Makefile. This is easy to fix though, just do the following:

- open up your Makefile, and find the following line:

CCCDLFLAGS = -KPIC

- change this to:

CCCDLFLAGS =

- then, find the line:

OPTIMIZE = -xO3 -xspace -xildoff

- change this to:

OPTIMIZE =

- then, find the line:

CCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO

- change this to:

CCFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO

- then, try building the binary again:

% make
% make install

YOur binary should then build properly now




欢迎光临 建锋网络论坛 (http://forum.kensoft.com/) Powered by Discuz! 6.0.0