Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Problems creating 64-bit version of "BuildTools"and MaxDB under Solaris9/Sp: msg#00211

db.maxdb

Subject: Problems creating 64-bit version of "BuildTools"and MaxDB under Solaris9/Sparc


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/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo