Hello MaxDB Gurus,

I have an aparently simple question: how do I compile a 64-bit version of the
build tools and of MAxDB (version 7.6 from CVS) under Solaris9/Sparc with
SunStudio 8 or 9? As far as I could see, there exist 64-bit binaries for
Solaris/Sparc. How did you build them?

If I simply do a 'configure && make' for the build tools, all the binaries
which are built are 32-bit ones. With these build tools I also succeeded to
build MaxDB, however also only the 32-bit version. I could than start
x-serverand create a database, however I was unable to start it. I was told on
the MaxDB list to bild a 64 version - but how can I do this.

Just setting "BIT64" to "1" and "CFLAGS", "CCFLAGS" and "CXXFLAGS" to
"-xarch=9" before the configure step doesn't really help, because these
settings seem to be ignored by some Makefiles such that some files get compiled
into 32-bit objects and others into 64-bit objects which finally results in a
linker error. So I tried to edit the Makefiles and the Makedefs files which are
involved in order to set the "-xarch=9" compiler option manually and finally
got all the files compiled and linked in 64-bit mode. However now the binaries
(e.g. pgenc) dump a core because of an invalid address alignment (see below).

signal BUS (invalid address alignment) in sql__gn at line 151 in file 
"sql__gn.c"
  151                   filep->fbuf = 0;
(dbx) where
=>[1] sql__gn(filep = ???, name = ???, namlim = ???, datasize = ???)
(optimized), at 0x10007b158 (line ~151) in "sql__gn.c"
  [2] sql__rewrite(filep = ???, name = ???, maxnamlen = ???, datasize = ???)
(optimized), at 0x10007b6f4 (line ~38) in "sql__rewrite.c"
  [3] InitGenC() (optimized), at 0x100061fa0 (line ~7950) in "genc.c"
  [4] ParseProgram() (optimized), at 0x100024b1c (line ~634) in "pcomp.c"
  [5] main(_argc_ = ???, _argv_ = ???, _envp_ = ???) (optimized), at
0x100024bf8 (line ~669) in "pcomp.c"

I am desperatly waiting for some advice how to correctly compile and build this
beast. In fact I want to port it to Solaris10 on AMD Opteron. However I can not
even think of it until I don't succeeded to compile and build at least under
Solaris9/SParc which should be supported out of the box!

Thanks,

Volker



-- 
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to