I'm trying to do a new install on a Debian server running Squeeze. I've got all the dependent packages installed along with yubico-c and yubico-c-client from git. When I try to build yubico-pam I get the following error:
/usr/src/yubico-pam # make
CC pam_yubico_la-pam_yubico.lo
In file included from pam_yubico.c:44:
util.h:63:19: error: ykdef.h: No such file or directory
pam_yubico.c: In function ‘do_challenge_response’:
pam_yubico.c:475: error: ‘YK_FLAG_MAYBLOCK’ undeclared (first use in this function)
pam_yubico.c:475: error: (Each undeclared identifier is reported only once
pam_yubico.c:475: error: for each function it appears in.)
make: *** [pam_yubico_la-pam_yubico.lo] Error 1
Google shows that ykdef.h was included in yubikey-core which is now deprecated in favour of yubikey-personalization (
http://code.google.com/p/yubikey-core/ ). The version of this package in Debian Squeeze is:
[2011-01-26] Accepted 1.3.2-1squeeze1 in testing-proposed-updates (high) (Tollef Fog Heen)
Which doesn't contain that file:
root@silvanesti:/var/cache/apt/archives # dpkg -c yubikey-personalization_1.3.2-1squeeze1_i386.deb
drwxr-xr-x root/root 0 2011-01-26 14:36 ./
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/bin/
-rwxr-xr-x root/root 18968 2011-01-26 14:36 ./usr/bin/ykpersonalize
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/share/
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/share/man/
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/share/man/man1/
-rw-r--r-- root/root 3029 2011-01-26 14:36 ./usr/share/man/man1/ykpersonalize.1.gz
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/share/doc/
drwxr-xr-x root/root 0 2011-01-26 14:36 ./usr/share/doc/yubikey-personalization/
-rw-r--r-- root/root 943 2011-01-26 14:36 ./usr/share/doc/yubikey-personalization/changelog.Debian.gz
-rw-r--r-- root/root 1979 2011-01-26 14:36 ./usr/share/doc/yubikey-personalization/copyright
-rw-r--r-- root/root 69 2010-01-11 12:41 ./usr/share/doc/yubikey-personalization/README
-rw-r--r-- root/root 1665 2010-03-12 15:31 ./usr/share/doc/yubikey-personalization/NEWS.gz
-rw-r--r-- root/root 6295 2010-03-12 15:31 ./usr/share/doc/yubikey-personalization/changelog.gz
-rw-r--r-- root/root 2062 2010-01-11 12:41 ./usr/share/doc/yubikey-personalization/ReadMe.wiki.gz
-rw-r--r-- root/root 1798 2010-01-11 12:41 ./usr/share/doc/yubikey-personalization/UsbhidIssue.wiki
-rw-r--r-- root/root 1259 2010-01-11 12:41 ./usr/share/doc/yubikey-personalization/MakeRelease.wiki
I don't know if this is something that should be reported here or to Debian but figured it was worth posting this just in case anyone else hit this problem. I'm going to try installing the package from the git repo instead to see if that fixes it.