Re: [Maria-developers] Shared plugin library build question

2011-11-11 Thread Sergei Golubchik
Hi, Steve! On Nov 11, Steve Ellcey wrote: > On Wed, 2011-11-09 at 19:25 +0100, Vladislav Vaintroub wrote: > > > > A word of warning upfront before trying HP compiler. Unless xlc > > > has changed its defaults in the last year or two, you'd need to > > > set CFLAGS and CXXFLAGS env.vars prior to

Re: [Maria-developers] Shared plugin library build question

2011-11-11 Thread Steve Ellcey
On Wed, 2011-11-09 at 19:25 +0100, Vladislav Vaintroub wrote: > > A word of warning upfront before trying HP compiler. Unless xlc has changed > > its defaults in the last year or two, you'd need to set CFLAGS and CXXFLAGS > > env.vars prior to CMake so it compiles for Itanium. > > Scratch xlc, t

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Steve Ellcey
On Wed, 2011-11-09 at 23:54 +0100, Sergei Golubchik wrote: > Yes, here're the alternatives: > * you can run cmake -DWITH_MAX_NO_NDB=1 So this resulted in some compilation errors in code that wasn't getting compiled before for 5.5, though I had seen these issues in 5.3.2. In storage/pbxt/src/xt_

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Donnerstag, 10. November 2011 00:09 > To: Vladislav Vaintroub > Cc: 'Sergei Golubchik'; maria-developers@lists.launchpad.net > Subject: Re: [Maria-developers] Shared plugin library buil

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Steve Ellcey
On Wed, 2011-11-09 at 22:40 +0100, Vladislav Vaintroub wrote: > I assume this is a bug in mysql-test-run.pl . Currently, plugins are not > loaded unless you build > in the source directory. Could you apply patch for > 'mysql-test/mysql-test-run.pl' from here > http://lists.askmonty.org/pipe

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Steve Ellcey
On Wed, 2011-11-09 at 23:54 +0100, Sergei Golubchik wrote: > Hi, Steve! > > There seem to be some other failing tests where I have garbage in the > > output, I haven't investigated these but the failures are along the > > lines of this difference: > > > > -mysql.user authentication_string 4

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Sergei Golubchik
Hi, Steve! On Nov 09, Steve Ellcey wrote: > On Wed, 2011-11-09 at 09:36 -0800, Steve Ellcey wrote: > > > It looks like READLINE is the way to go. And with this change added to > > the earlier ones I got the build to complete with no errors. I haven't > > tried running the test suite yet, but I

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Mittwoch, 9. November 2011 22:02 > To: Vladislav Vaintroub > Cc: maria-developers@lists.launchpad.net; 'Sergei Golubchik' > Subject: Re: [Maria-developers] Shared plugin library build q

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Steve Ellcey
On Wed, 2011-11-09 at 09:36 -0800, Steve Ellcey wrote: > It looks like READLINE is the way to go. And with this change added to > the earlier ones I got the build to complete with no errors. I haven't > tried running the test suite yet, but I will do that next. This build > was done with GCC, I

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Vladislav Vaintroub
> -Original Message- > From: Vladislav Vaintroub [mailto:w...@montyprogram.com] > Sent: Mittwoch, 9. November 2011 19:13 > To: 's...@cup.hp.com' > Cc: 'Sergei Golubchik'; 'maria-developers@lists.launchpad.net' > Subject: RE: [Maria-

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Mittwoch, 9. November 2011 18:37 > To: Vladislav Vaintroub > Cc: 'Sergei Golubchik'; maria-developers@lists.launchpad.net > Subject: RE: [Maria-developers] Shared plugin library buil

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Steve Ellcey
On Wed, 2011-11-09 at 02:50 +0100, Vladislav Vaintroub wrote: > Oh, this is libedit vs readline. It is the most complicated stuff in current > cmake setup > (cmake/readline.cmake), that unfortunately got ported 1-1 from autotools, > and the code in > autotools was already bad originally and it

Re: [Maria-developers] Shared plugin library build question

2011-11-09 Thread Sergei Golubchik
Hi, Michael! On Nov 09, Michael Widenius wrote: > > Hi! > > > "Vladislav" == Vladislav Vaintroub writes: > > > > > I think the best option for MySQL, and for MariaDB is to rename own > > base64.h and function prototypes in a way that it does not conflict with > > system headers on any

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Mittwoch, 9. November 2011 01:53 > To: Vladislav Vaintroub > Cc: 'Sergei Golubchik'; maria-developers@lists.launchpad.net > Subject: Re: [Maria-developers] Shared plugin library build q

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Steve Ellcey
On Wed, 2011-11-09 at 00:54 +0100, Vladislav Vaintroub wrote: > If you stuck, a simple way to fix it might be to add -D_REENTRANT to > cmake/os/HP-UX.cmake , > so everything is compiled with it. > The line > ADD_DEFINITIONS(-D_REENTRANT) > > would do the trick. I added 'ADD_DEFINITIONS(-pthr

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Mittwoch, 9. November 2011 00:31 > To: Vladislav Vaintroub > Cc: maria-developers@lists.launchpad.net; 'Sergei Golubchik' > Subject: Re: [Maria-developers] Shared plugin library build q

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Steve Ellcey
On Tue, 2011-11-08 at 15:19 -0800, Steve Ellcey wrote: > Thanks, changing the order of the includes in this file (putting > ZLIB_INCLUDE_DIR last) fixed that problem. Now I die when compiling > storage/sphinx/ha_sphinx.cc. That file calls localtime_r but it doesn't > seem to include where local

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Steve Ellcey
On Tue, 2011-11-08 at 23:33 +0100, Vladislav Vaintroub wrote: > Include directories in cmake are manipulated by INCLUDE_DIRECTORIES directive > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:include_directories > . > It has an option for appending , prepending and an for SYSTEM hea

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Dienstag, 8. November 2011 22:51 > To: Sergei Golubchik > Cc: Vladislav Vaintroub; maria-developers@lists.launchpad.net > Subject: Re: [Maria-developers] Shared plugin library build question &g

Re: [Maria-developers] Shared plugin library build question

2011-11-08 Thread Steve Ellcey
On Sun, 2011-11-06 at 15:45 +0100, Sergei Golubchik wrote: > > Try lp:maria/5.5 > > It's still a bit rough around the edges, but it mostly works and is > good enough to see whether you'll have this libmysqlservices.a problem > or not. > > Regards, > Sergei Sergei, I have downloaded these sourc

Re: [Maria-developers] Shared plugin library build question

2011-11-06 Thread Sergei Golubchik
Hi, Steve! On Sep 23, Steve Ellcey wrote: > On Sat, 2011-09-24 at 00:07 +0200, Vladislav Vaintroub wrote: > > > > We're moving to mysql-5.5 codebase, and it can be built with cmake only, > > > not with autotools. I wonder whether cmake has the same problem that > > > libtool has on hp-ux. > > Is

Re: [Maria-developers] Shared plugin library build question

2011-09-23 Thread Steve Ellcey
On Sat, 2011-09-24 at 00:07 +0200, Vladislav Vaintroub wrote: > > We're moving to mysql-5.5 codebase, and it can be built with cmake only, > > not with autotools. I wonder whether cmake has the same problem that > > libtool has on hp-ux. Is there any estimate of when this switch to cmake is going

Re: [Maria-developers] Shared plugin library build question

2011-09-23 Thread Vladislav Vaintroub
> -Original Message- > From: Sergei Golubchik [mailto:s...@askmonty.org] > Sent: Freitag, 23. September 2011 23:40 > To: Steve Ellcey > Cc: Vladislav Vaintroub; maria-developers@lists.launchpad.net > Subject: Re: [Maria-developers] Shared plugin library build question

Re: [Maria-developers] Shared plugin library build question

2011-09-23 Thread Sergei Golubchik
Hi, Steve! On Sep 23, Steve Ellcey wrote: > On Fri, 2011-09-23 at 00:59 +0200, Vladislav Vaintroub wrote: > > > Ok, libtool is being smart here.. > > > > What happens if you change the definition of ha_federated_la_LDFLAGS in > > federated/Makefile.am to > > ha_federated_la_LDFLAGS = -module

Re: [Maria-developers] Shared plugin library build question

2011-09-23 Thread Steve Ellcey
On Fri, 2011-09-23 at 00:59 +0200, Vladislav Vaintroub wrote: > > Ok, libtool is being smart here.. > > What happens if you change the definition of ha_federated_la_LDFLAGS in > federated/Makefile.am to > ha_federated_la_LDFLAGS = -module -rpath $(pkgplugindir) > $(top_builddir)/libservic

Re: [Maria-developers] Shared plugin library build question

2011-09-22 Thread Sergei Golubchik
bject: Re: [Maria-developers] Shared plugin library build question > > > I think compiling with PIC should only be needed if libsqlservices code > > is intended to be linked into a shared library and I am not sure if that > > is the case or not. > > It is intended. > &g

Re: [Maria-developers] Shared plugin library build question

2011-09-22 Thread Vladislav Vaintroub
> -Original Message- > From: Steve Ellcey [mailto:s...@cup.hp.com] > Sent: Freitag, 23. September 2011 00:37 > To: Vladislav Vaintroub > Cc: maria-developers@lists.launchpad.net > Subject: Re: [Maria-developers] Shared plugin library build question Hi Steve, > I

Re: [Maria-developers] Shared plugin library build question

2011-09-22 Thread Steve Ellcey
On Fri, 2011-09-23 at 00:10 +0200, Vladislav Vaintroub wrote: > Steve, > Are you talking about PIC requirements, when you say " HP-UX doesn't support > building shared libaries that depend on archive libraries". No I was thinking of a dependent library list, after building mariadb on linux, in

Re: [Maria-developers] Shared plugin library build question

2011-09-22 Thread Sergei Golubchik
Hi, Steve! On Sep 22, Steve Ellcey wrote: > I am looking at a difference in the HP-UX vs. Linux mariadb build and > was wondering if someone could help me understand why something is set > up the way it is. > > The problem I see is that on HP-UX, when I do a mariadb build I do not > get shared pl

Re: [Maria-developers] Shared plugin library build question

2011-09-22 Thread Vladislav Vaintroub
> Behalf Of Steve Ellcey > Sent: Donnerstag, 22. September 2011 23:12 > To: maria-developers@lists.launchpad.net > Subject: [Maria-developers] Shared plugin library build question > > I am looking at a difference in the HP-UX vs. Linux mariadb build and > was wondering if some

[Maria-developers] Shared plugin library build question

2011-09-22 Thread Steve Ellcey
I am looking at a difference in the HP-UX vs. Linux mariadb build and was wondering if someone could help me understand why something is set up the way it is. The problem I see is that on HP-UX, when I do a mariadb build I do not get shared plugin libraries like ha_federated. Looking into why thi