Re: Build Percona Server 5.5.25a-rel27.1 on OpenIndiana

251 views
Skip to first unread message

Serge Fonville

unread,
Aug 14, 2012, 6:04:54 PM8/14/12
to percona-d...@googlegroups.com
When I do  CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Release -DWITH_READLINE=ON -DWITH_SSL=ON It progresses as normal.

when I do a make after that it breaks with the following error:
In file included from /buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:22:
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.h:34:31: error: security/pam_misc.h: No such file or directory
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c: In function 'authenticate_user_with_pam_server':
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:110: warning: initialization from incompatible pointer type
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:118: warning: implicit declaration of function 'strcpy'
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:118: warning: incompatible implicit declaration of built-in function 'strcpy'
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:169: warning: implicit declaration of function 'strcmp'
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:171: warning: implicit declaration of function 'strncpy'
/buildpath/plugin/percona-pam-for-mysql/src/auth_pam_common.c:171: warning: incompatible implicit declaration of built-in function 'strncpy'
make[2]: *** [plugin/percona-pam-for-mysql/CMakeFiles/auth_pam.dir/src/auth_pam_common.c.o] Error 1
make[1]: *** [plugin/percona-pam-for-mysql/CMakeFiles/auth_pam.dir/all] Error 2
make: *** [all] Error 2

This seems due to the missing of PAM devel
How do I disable the use of PAM so compilation continues?

Op dinsdag 14 augustus 2012 22:17:43 UTC+2 schreef Serge Fonville het volgende:
Hi,

I was looking into Percona Server as a database solution.
So I downloaded Percona-Server-5.5.25a-rel27.1.tar.gz.

From what I could find I need to run cmake . in the extracted directory.
When I run this, I get the following errors.


-- The CXX compiler identification is SunPro
-- Check for working CXX compiler: /opt/sunstudio12.1/bin/CC
-- Check for working CXX compiler: /opt/sunstudio12.1/bin/CC -- broken
CMake Error at /usr/share/cmake-2.6/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
  The C++ compiler "/opt/sunstudio12.1/bin/CC" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: /export/home/install/Percona-XtraDB-Cluster-5.5.24/CMakeFiles/CMakeTmp

  Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"

  /opt/dtbld/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
  CMakeFiles/cmTryCompileExec.dir/build

  make[1]: Entering directory
  `/export/home/install/Percona-XtraDB-Cluster-5.5.24/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report
  /export/home/install/Percona-XtraDB-Cluster-5.5.24/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o

  /opt/sunstudio12.1/bin/CC -o
  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
  /export/home/install/Percona-XtraDB-Cluster-5.5.24/CMakeFiles/CMakeTmp/testCXXCompiler.cxx


  Linking CXX executable cmTryCompileExec

  /usr/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /opt/sunstudio12.1/bin/CC -KPIC
  CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o cmTryCompileExec

  CC: Fatal error in ld: Segmentation Fault (core dumped)

  ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section
  [9].rela.annotate has invalid type [ SHT_RELA ]

  make[1]: *** [cmTryCompileExec] Error 1

  make[1]: Leaving directory
  `/export/home/install/Percona-XtraDB-Cluster-5.5.24/CMakeFiles/CMakeTmp'

  gmake: *** [cmTryCompileExec/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:93 (PROJECT)


-- Configuring incomplete, errors occurred!


What would the next step be in troubleshooting?

Thanks a lot in advance.

Jervin R

unread,
Aug 14, 2012, 6:22:08 PM8/14/12
to percona-d...@googlegroups.com
You can simply remove the plugin directory from the source tree or  -DWITHOUT_PLUGIN_PERCONA_PAM_FOR_MYSQL=1 to cmake.

Serge Fonville

unread,
Aug 14, 2012, 7:07:26 PM8/14/12
to percona-d...@googlegroups.com
You can simply remove the plugin directory from the source tree or  -DWITHOUT_PLUGIN_PERCONA_PAM_FOR_MYSQL=1 to cmake. 

I added the option after re-extracting the file.
But am getting the same error.
How do I remove it from the source tree?

Stewart Smith

unread,
Aug 14, 2012, 7:21:00 PM8/14/12
to Serge Fonville, percona-d...@googlegroups.com
Serge Fonville <serge.f...@gmail.com> writes:
> You can simply remove the plugin directory from the source tree or
> -DWITHOUT_PLUGIN_PERCONA_PAM_FOR_MYSQL=1 to cmake.
>
> I added the option after re-extracting the file.
> But am getting the same error.
> How do I remove it from the source tree?

There's actually a few more options you have to specify, and the CMake
build system won't tell you what they are (and I can't remember
exactly). I think there's a bug somewhere about building on FreeBSD or
Solaris about this.

Otherwise, just rm -rf the plugin/percona-pam-for-mysql directory

--
Stewart Smith

Gergo Erdosi

unread,
Aug 15, 2012, 4:35:26 AM8/15/12
to Percona Discussion
I sent a reply, but it seems to be lost. Here is what I wrote:

I had the same problem on OS X. Found the thread I opened:
https://groups.google.com/d/topic/percona-discussion/T1wlhLvsrik/discussion

However I just now see that I accidentally used Stewart's personal
address instead of the group address in my replies, so you can't see
the solution. But here is how we solved it:

First of all, you can disable the compilation of the PAM plugin by
using these options:

-DWITHOUT_AUTH_PAM=1
-DWITHOUT_AUTH_PAM_COMPAT=1
-DWITHOUT_DIALOG=1

I noticed, that openpam.h exists instead of pam_misc.h on OS X. If you
have openpam.h too, then you can patch Percona Server instead of
disabling the plugin. See this ticket for details:
https://bugs.launchpad.net/percona-server/+bug/1012488

Gergo Erdosi


On Aug 15, 1:21 am, Stewart Smith <stew...@flamingspork.com> wrote:
>  application_pgp-signature_part
> < 1KViewDownload

Gergo Erdosi

unread,
Aug 14, 2012, 6:22:14 PM8/14/12
to percona-d...@googlegroups.com
I had the same problem on OS X. Found the thread I opened:
https://groups.google.com/d/topic/percona-discussion/T1wlhLvsrik/discussion

However I just now see that I accidentally used Stewart's personal
address instead of the group address in my replies, so you can't see
the solution. But here is how we solved it:

First of all, you can disable the compilation of the PAM plugin by
using these options:

-DWITHOUT_AUTH_PAM=1
-DWITHOUT_AUTH_PAM_COMPAT=1
-DWITHOUT_DIALOG=1

I noticed though, that openpam.h exists instead of pam_misc.h on OS X.
So we just need to check this. See this ticket for details:
https://bugs.launchpad.net/percona-server/+bug/1012488

Gergo Erdosi
> --
> You received this message because you are subscribed to the Google Groups
> "Percona Discussion" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/percona-discussion/-/rgluKVi6LnEJ.
> To post to this group, send email to percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> percona-discuss...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/percona-discussion?hl=en.
Reply all
Reply to author
Forward
0 new messages