dannote / mod-ndb

Automatically exported from code.google.com/p/mod-ndb
0 stars 0 forks source link

Solaris support #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Notes on Solaris:

 * Some patches in rev 323 allow you to compile on Solaris. 
 * Since we get CFLAGS from apxs, you have to compile mod_ndb with the same compiler you used 
to compile apache.  If you're using the system apache in /usr/apache and 
/usr/apache2, this means 
Sun's compiler.
 * With rev 323, run configure, then edit the Makefile and change CC from "g++" to "CC" to use 
Sun's C compiler
 * With Sun's linker, -L/path/ must appear *before* -llib to find the lib in the path.  This means you 
have to edit $LIBS in the Makefile.
 * Also, you need to link with -lCrun instead of -lstdc++

Original issue reported on code.google.com by john.david.duncan on 13 Aug 2007 at 4:03

GoogleCodeExporter commented 9 years ago
For 1.0 I want to at least do an "all-gcc" (Apache + MySQL + mod_ndb) build, to 
make it possible to use some 
sun performance tools. 

Original comment by john.david.duncan on 23 Aug 2007 at 11:37

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 31 Aug 2007 at 6:01

GoogleCodeExporter commented 9 years ago
"all-gcc" build works now.

Original comment by john.david.duncan on 1 Sep 2007 at 1:06

GoogleCodeExporter commented 9 years ago
A C++ ABI is specific to a compiler.  So both of  the C++ components of mod_ndb 
-- mod_ndb itself and 
libndbclient from mysql -- need to be compiled with the same compiler.

The C ABI is consistent across every compiler on a platform, so in theory it is 
possible to link to the mod_ndb 
component that is strictly C -- apache -- built with any compiler.  In 
practice, though, mod_ndb gets its 
compile flags from Apache, and the flags are compiler-specific.  

So, all three pieces need to be built with the same compiler.  

Another requirement is that all three be built for the same architecture 
(32-bit or 64-bit).  The known-to-
work all-gcc build is 32-bit.

Original comment by john.david.duncan on 1 Sep 2007 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 25 Sep 2007 at 6:08

GoogleCodeExporter commented 9 years ago
As of mod_ndb 1.1 (svn 490) it is possible to build and link mod_ndb using 
Sun's compiler.  Run mod_ndb's 
"configure" script with the --sun-cc option.  MySQL must also be built with the 
Sun compiler.  Apache 1.3 must 
be, too, though Apache 2.0 might not need to be.  

However, it all segfaults due to issue #54.

Original comment by john.david.duncan on 6 Nov 2007 at 8:07

GoogleCodeExporter commented 9 years ago
Issue #54 is no longer a problem.  As of svn 523, it is now possible to have an 
"All Sun Studio" build of mod_ndb 
r1.1. 

Original comment by john.david.duncan on 30 Dec 2008 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 25 Jun 2009 at 4:07