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

Re: solaris compile options



Bugger. Got :

elfdump /usr/local/openldap/libexec/slapd | grep e_machine
  e_machine:  EM_SPARC32PLUS      e_version:    EV_CURRENT

Re-compiling with -m64 to see what i get..

On Thu, Mar 12, 2009 at 12:07 PM, Aaron Richton <richton@nbcs.rutgers.edu> wrote:
Well, it doesn't really matter if you get the right output. Check your slapd i.e.:

bash-2.05$ elfdump /usr/bin/sparcv9/ps | grep e_machine
 e_machine:  EM_SPARCV9          e_version:    EV_CURRENT
bash-2.05$ elfdump /usr/bin/sparcv7/ps | grep e_machine
 e_machine:  EM_SPARC            e_version:    EV_CURRENT

and make sure you're getting sparcv9 code? And yes, I believe -m64 is the preferred flag for that in Sun Studio 12.