Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 4:38 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Nov 06, 2012 3:32 pm 
Offline

Joined: Tue Nov 06, 2012 3:23 pm
Posts: 3
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.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Tue Nov 06, 2012 4:08 pm 
Offline
Site Admin
Site Admin

Joined: Thu Apr 19, 2012 1:45 pm
Posts: 148
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 06, 2012 7:04 pm 
Offline

Joined: Tue Nov 06, 2012 3:23 pm
Posts: 3
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
$


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 07, 2012 8:37 am 
Offline
Site Admin
Site Admin

Joined: Thu Apr 19, 2012 1:45 pm
Posts: 148
Good.
The same fix (or workaround really) is added to yubico-pam as well now.

/klas


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 07, 2012 4:21 pm 
Offline

Joined: Tue Nov 06, 2012 3:23 pm
Posts: 3
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group