Kaan,

From your original message...

>cc -I. -I. -I/opt/csw/lib/ruby/1.8/sparc-solaris2.8 -I. -DHAVE_MYSQL_H
>-I/opt/csw/include -I/opt/csw/include -I/opt/csw/mysql5/include/mysql
>-mt -D_FORTEC_ -xarch=v8    -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H
>-I/opt/csw/mysql5/include -DHAVE_RWLOCK_T -KPIC -xO3 -xarch=v8 -xspace
>-xildoff -I/opt/csw/include -I/opt/csw/include   -KPIC -c mysql.c
>cc: unrecognized option `-KPIC'
>cc: unrecognized option `-KPIC'
>cc: language ildoff not recognized
>cc: mysql.c: linker input file unused because linking not done

The root of your current problem is that your compliler does not like
the options being fed to it.

I am about the last person you want to be discussing the internals and
options of compilers... my source-fu is weak.  But Google tells me
"KPIC" isn't a valid option to gcc, but it is to Sun's cc.  I think
the autoconfigure script is configuring for Sun cc, but you're trying
to make with gcc.

Go into the gem source directory and make clean, and then configure
with CC=gcc as an option.  If it still builds makefiles with KPIC then
you'll need to go edit all the make files by hand... jPIC seems to be
the gcc approved alternative, at least according to Google.

On Mar 3, 6:13 am, Kaan Karaca <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> > Welcome to Solaris hell.
> :-)
> > Do you have GNU cc, make, etc installed?  Or the Sun complier?
>
> Yes, all mentioned tools are installed
>
> > In your case it looks like 'cc' which is probably the sun native
> > compiler, is choking on the options passed via the makefile.  Install
> > gcc, if you don't have it already, and then set the 'CC' environment
> > variable to the path to gcc.  If that doesn't work, try renaming your
> > cc and linking gcc to cc (though this is a hack you shouldn't leave in
> > place).  Also I'm finding that makefiles often don't respect all the
> > configuration you have set up, especially the make files auto-
> > generated during compile, so you might have to navigate 3 directories
> > deep, muck about in the makefile, recompile, fail at the next library,
> > muck makefile, rinse, repeat.
>
> I tried it, but it doesn't help... :-(> Good luck, and please post back if 
> you make it anywhere...
>
> I'll post the the solution if I solve the problem....
>
>
>
> > On Feb 29, 8:13�am, Kaan Karaca <[EMAIL PROTECTED]>
>
> Cheers
> Kaan
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to