[Maria-discuss] auth_pam does not compile on OSX
The 5.2.10 version of MariaDB is not compiling for me (using homebrew) on OSX. The error and other information, is as follows. I've resolved the issue for now by passing in --without-plugin-auth_pam to configure. libtool: compile: /usr/bin/llvm-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/local/Cellar/readline/6.2.1/include -DMYSQL_DYNAMIC_PLUGIN -O3 -w -pipe -march=core2 -msse4 -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -c auth_pam.c -fno-common -DPIC -o .libs/auth_pam_la-auth_pam.o auth_pam.c:107: error: ‘pam_info’ redeclared as different kind of symbol /usr/include/security/openpam.h:104: error: previous declaration of ‘pam_info’ was here make[2]: *** [auth_pam_la-auth_pam.lo] Error 1 $ ./configure --without-docs --without-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/mariadb/5.2.10 --localstatedir=/usr/local/var/mysql --sysconfdir=/usr/local/etc/ --with-extra-charsets=complex --without-readline --enable-assembler --enable-thread-safe-client --with-big-tables --without-plugin-innodb_plugin --with-mysqld-ldflags=-static --with-client-ldflags=-static --with-plugins=max-no-ndb --with-embedded-server --with-libevent C: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2 LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2 CFLAGS: -O3 -w -pipe -march=core2 -msse4 CXXFLAGS: -O3 -w -pipe -march=core2 -msse4 -O3 -fno-omit-frame-pointer -felide-constructors CPPFLAGS: -I/usr/local/Cellar/readline/6.2.1/include LDFLAGS: -L/usr/local/Cellar/readline/6.2.1/lib MAKEFLAGS: -j4 -- #Terin Stock
Hi! On 21 Dec 2011, at 05:07, Terin Stock wrote:
The 5.2.10 version of MariaDB is not compiling for me (using homebrew) on OSX. The error and other information, is as follows.
I've resolved the issue for now by passing in --without-plugin-auth_pam to configure.
This should be a bug - please file it as such in launchpad. It may not be a very high priority one, as I thought PAM only worked on Linux, but apparently it also does work on OSX. In fact, pgsql+PAM also seems to work on OSX -- http://www.afp548.com/article.php?story=20060727093739762 I guess for homebrew, the best thing to do is disable it in the meantime. I'm curious to know how many people use PAM auth on OSX... and how it pans out with OSX Server <snipped> -- Colin Charles, http://bytebot.net/blog/ | twitter: @bytebot | skype: colincharles MariaDB: Community developed. Feature enhanced. Backward compatible. Download it at: http://www.mariadb.org/ Open MariaDB/MySQL documentation at the Knowledgebase: http://kb.askmonty.org/
Hi, Terin! On Dec 20, Terin Stock wrote:
The 5.2.10 version of MariaDB is not compiling for me (using homebrew) on OSX. The error and other information, is as follows.
I've resolved the issue for now by passing in --without-plugin-auth_pam to configure.
libtool: compile: /usr/bin/llvm-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/local/Cellar/readline/6.2.1/include -DMYSQL_DYNAMIC_PLUGIN -O3 -w -pipe -march=core2 -msse4 -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -c auth_pam.c -fno-common -DPIC -o .libs/auth_pam_la-auth_pam.o auth_pam.c:107: error: ‘pam_info’ redeclared as different kind of symbol /usr/include/security/openpam.h:104: error: previous declaration of ‘pam_info’ was here make[2]: *** [auth_pam_la-auth_pam.lo] Error 1
Fixed, thanks. Regards, Sergei
Compiling on MacOS has similar issue.. except that MacOS does not have an implementation of strndup. On 3 January 2012 06:16, Sergei Golubchik <serg@askmonty.org> wrote:
Hi, Terin!
On Dec 20, Terin Stock wrote:
The 5.2.10 version of MariaDB is not compiling for me (using homebrew) on OSX. The error and other information, is as follows.
I've resolved the issue for now by passing in --without-plugin-auth_pam to configure.
libtool: compile: /usr/bin/llvm-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I/usr/local/Cellar/readline/6.2.1/include -DMYSQL_DYNAMIC_PLUGIN -O3 -w -pipe -march=core2 -msse4 -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -c auth_pam.c -fno-common -DPIC -o .libs/auth_pam_la-auth_pam.o auth_pam.c:107: error: ‘pam_info’ redeclared as different kind of symbol /usr/include/security/openpam.h:104: error: previous declaration of ‘pam_info’ was here make[2]: *** [auth_pam_la-auth_pam.lo] Error 1
Fixed, thanks.
Regards, Sergei
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
-- Antony T Curtis
Hi, Antony! On Jan 20, Antony T Curtis wrote:
Compiling on MacOS has similar issue.. except that MacOS does not have an implementation of strndup.
It's fixed and pushed more than a month ago, but not released yet. http://bazaar.launchpad.net/~maria-captains/maria/5.2/revision/3085 Regards, Sergei
Hi Sergei, On 20 January 2012 00:44, Sergei Golubchik <serg@askmonty.org> wrote:
Hi, Antony!
On Jan 20, Antony T Curtis wrote:
Compiling on MacOS has similar issue.. except that MacOS does not have an implementation of strndup.
It's fixed and pushed more than a month ago, but not released yet. http://bazaar.launchpad.net/~maria-captains/maria/5.2/revision/3085
So it's not yet merged into 5.3 repo. Thats ok. I just wanted to get back into doing stuff and I need to get my code synced. -- Antony T Curtis
participants (4)
-
Antony T Curtis
-
Colin Charles
-
Sergei Golubchik
-
Terin Stock