[OmniOS-discuss] tDom on Solaris
Michael Mounteney
gate03 at landcroft.co.uk
Tue Jan 6 00:04:37 UTC 2015
On Mon, 5 Jan 2015 23:29:27 +0000
Josh Barton <Josh.Barton at usurf.usu.edu> wrote:
> I have had some difficulty getting tDom 0.8.3 or frankly any other
> version working with OmniOS/Solaris. After a lot of experimentation
> the only method that worked was to change line 1793 in the makefile
> (where CC is set to "gcc") to CC="gcc -m64". The configure flag
> -enable-64bit option made no difference but this one change to the
> Make file did. Does anyone have any idea why this might be?
Sorry, that previous answer was hasty and unhelpful. gcc by default
builds 32 bit objects but the linking stage is trying to link to
OmniOS's 64 bit libraries. I couldn't find any documentation of the
--enable-64bit flag (so I can't tell what it's supposed to do) but -m64
tells gcc to output for 64 bit, whatever other ideas it might have. As
I mentioned previously, you need it, to ensure that when ld comes to
link all together, it doesn't have objects of unequal word sizes. I
hope that's clear.
Michael.
More information about the OmniOS-discuss
mailing list