发新话题
打印

Solaris 10 gcc Compile DBI.pm has been passed

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

TOP

发新话题