Yubico Forum https://forum.yubico.com/ |
|
Building Yubico PAM module on FreeBSD https://forum.yubico.com/viewtopic.php?f=4&t=874 |
Page 1 of 1 |
Author: | faustus [ Tue Nov 06, 2012 3:32 pm ] |
Post subject: | Building Yubico PAM module on FreeBSD |
Greetings, I have been putting some effort into compiling the yubikey PAM module on FreeBSD 9, but with little success. So far, my searches for information on the Internet have been fruitless. I wonder if anyone has succeeded in building libpamyubico on FreeBSD, and what steps they may have taken to succeed. I have the following versions of the listed dependencies installed: automake-1.12.4 autoconf-2.13.000227_6 (legacy) autoconf-2.69 libtool-2.4.2 curl-7.24.0_1 I have checked out the source code from github, for the following projects: yubico-c yubico-c-client yubico-pam So far, I have been able to build and install yubico-c without much difficulty. However, moving on to yubico-c-client is where my troubles begin. As suggested in the README, I have added "-Wno-extra-portability" to the configure.ac file for yubico-c-client (for my version of automake > 1.11). However, attempting to configure with "autoreconf --install" fails with the following output: Code: $ autoreconf --install libtoolize: putting auxiliary files in `.'. libtoolize: copying file `./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' configure.ac:45: installing './config.guess' configure.ac:45: installing './config.sub' configure.ac:42: installing './install-sh' configure.ac:42: installing './missing' Makefile.am: installing './INSTALL' automake-1.12: warnings are treated as errors /usr/local/share/automake-1.12/am/ltlibrary.am: warning: 'libykclient.la': linking libtool libraries using a non-POSIX /usr/local/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' Makefile.am:37: while processing Libtool library 'libykclient.la' Makefile.am: installing './depcomp' autoreconf-2.69: automake failed with exit status: 1 $ If anyone can point me in the right direction, I would appreciate it. |
Author: | Klas [ Tue Nov 06, 2012 4:08 pm ] |
Post subject: | Re: Building Yubico PAM module on FreeBSD |
Hello, I just pushed a fix for that issue to the yubico-c-client repository, do a git pull and try to build it again. /klas |
Author: | faustus [ Tue Nov 06, 2012 7:04 pm ] |
Post subject: | Re: Building Yubico PAM module on FreeBSD |
Thank you Klas! yubico-c-client built successfully after I pulled the new version from github. Now, if you could just work your magic on yubico-pam...? I seem to be getting what amounts to the same error when I move forward to actually build the PAM module itself (again, after including the -Wno-extra-portability flag): Code: $ autoreconf --install
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'. libtoolize: copying file `build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize: copying file `m4/libtool.m4' libtoolize: copying file `m4/ltoptions.m4' libtoolize: copying file `m4/ltsugar.m4' libtoolize: copying file `m4/ltversion.m4' libtoolize: copying file `m4/lt~obsolete.m4' configure.ac:36: installing 'build-aux/compile' configure.ac:37: installing 'build-aux/config.guess' configure.ac:37: installing 'build-aux/config.sub' configure.ac:34: installing 'build-aux/install-sh' configure.ac:34: installing 'build-aux/missing' automake-1.12: warnings are treated as errors /usr/local/share/automake-1.12/am/ltlibrary.am: warning: 'pam_yubico.la': linking libtool libraries using a non-POSIX /usr/local/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' Makefile.am:33: while processing Libtool library 'pam_yubico.la' Makefile.am: installing 'build-aux/depcomp' autoreconf-2.69: automake failed with exit status: 1 $ |
Author: | Klas [ Wed Nov 07, 2012 8:37 am ] |
Post subject: | Re: Building Yubico PAM module on FreeBSD |
Good. The same fix (or workaround really) is added to yubico-pam as well now. /klas |
Author: | faustus [ Wed Nov 07, 2012 4:21 pm ] |
Post subject: | Re: Building Yubico PAM module on FreeBSD |
Fantastic! It works! When I first used the Yubico PAM module on Linux, I was impressed by how easy it was to set up two-factor authentication. My only disappointment came later, when I had such a hard time getting it installed on FreeBSD. Now, with your "workaround," Klas, everything builds successfully, and I have been able to configure the PAM module, and can confirm that SSH logins with password + yubikey work perfectly on FreeBSD 9. Thank you much for your help. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |