[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: 64bit compile fails on Solaris 10

Hi Aaron,

I think I could use some more black magic... ;-) I get the compile to complete now - Thanks! - but I noticed in SLAPD_PERL_LDFLAGS, SLAPD_LIBS & PERL_CPPFLAGS an "-xarch=v9" flag is being set somewhere. I'd like to set this to the actual xarch/m64 flags I'm using in CFLAGS. This gets added to all the makefiles & I can't seem to override it like I could with the LTCFLAGS. Do you know how to override this? I'm trying to avoid having to edit all of the Makefiles by hand.



Aaron Richton wrote:
On Wed, 21 Jan 2009, John Center wrote:

cc: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs
ld: fatal: file .libs/slapdS.o: wrong ELF class: ELFCLASS32

As you diagnosed, you're missing a -m64.

I think slapdS.c is generated dynamically by ltmain.sh, seen in the line:
	(cd .libs && cc   -c "slapdS.c")


I don't know what slapdS.c does, but I think "-m64" needs to be passed to cc here; unfortunately I don't know how to do it. I've searched through the

It's libtool black magic, you probably don't need to worry too much about it...

long story short: export LTCFLAGS='-g -xs -KPIC -xarch=v9' prior to make.

John Center
Villanova University