Re: issue compiling yubico-pam

10 views
Skip to first unread message

Simon Josefsson

unread,
Jun 14, 2011, 3:06:53 AM6/14/11
to DUBOST Brice, yubico...@googlegroups.com
DUBOST Brice <dub...@crans.ens-cachan.fr> writes:

> Hello
>
> I've got yubikey-personalization today fron SVN, compiled it, installed it

Hi. SVN? The project moved to Git some time ago, see:

https://code.google.com/p/yubikey-personalization/
https://github.com/Yubico/yubikey-personalization

Where did you find suggestions to download it from SVN?

Sorry for this hassle, it takes time to update all documentation to
point at the right place....

Hopefully your problem will be resolved by using the latest version.

/Simon

> Then to compile yubico-pam I had first to copy
>
> ~/yubikey/yubikey-personalization$ sudo cp ykcore/ykdef.h
> /usr/local/include/ykpers-1/
>
> Then when I compile, it fails quickly
>
> braice@braice-sheeva:~/yubikey/yubico-pam$ make check install
> /bin/bash ./libtool --tag=CC --mode=compile gcc -DDEBUG_PAM
> -DPAM_DEBUG -DPACKAGE_NAME=\"pam_yubico\"
> -DPACKAGE_TARNAME=\"pam_yubico\" -DPACKAGE_VERSION=\"2.7\"
> -DPACKAGE_STRING=\"pam_yubico\ 2.7\"
> -DPACKAGE_BUGREPORT=\"si...@yubico.com\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"pam_yubico\" -DVERSION=\"2.7\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -DHAVE_SECURITY_PAM_APPL_H=1
> -DHAVE_SECURITY_PAM_MODULES_H=1 -DHAVE_SECURITY__PAM_MACROS_H=1
> -DHAVE_LIBLDAP=1 -DHAVE_LIBYKCLIENT=1 -DHAVE_LIBYUBIKEY=1 -DHAVE_CR=1
> -I. -I/usr/local/include/ykpers-1 -g -O2 -MT
> pam_yubico_la-pam_yubico.lo -MD -MP -MF
> .deps/pam_yubico_la-pam_yubico.Tpo -c -o pam_yubico_la-pam_yubico.lo
> `test -f 'pam_yubico.c' || echo './'`pam_yubico.c
> libtool: compile: gcc -DDEBUG_PAM -DPAM_DEBUG
> -DPACKAGE_NAME=\"pam_yubico\" -DPACKAGE_TARNAME=\"pam_yubico\"
> -DPACKAGE_VERSION=\"2.7\" "-DPACKAGE_STRING=\"pam_yubico 2.7\""
> -DPACKAGE_BUGREPORT=\"si...@yubico.com\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"pam_yubico\" -DVERSION=\"2.7\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -DHAVE_SECURITY_PAM_APPL_H=1
> -DHAVE_SECURITY_PAM_MODULES_H=1 -DHAVE_SECURITY__PAM_MACROS_H=1
> -DHAVE_LIBLDAP=1 -DHAVE_LIBYKCLIENT=1 -DHAVE_LIBYUBIKEY=1 -DHAVE_CR=1
> -I. -I/usr/local/include/ykpers-1 -g -O2 -MT pam_yubico_la-pam_yubico.lo
> -MD -MP -MF .deps/pam_yubico_la-pam_yubico.Tpo -c pam_yubico.c -fPIC
> -DPIC -o .libs/pam_yubico_la-pam_yubico.o
> mv -f .deps/pam_yubico_la-pam_yubico.Tpo .deps/pam_yubico_la-pam_yubico.Plo
> /bin/bash ./libtool --tag=CC --mode=compile gcc -DDEBUG_PAM
> -DPAM_DEBUG -DPACKAGE_NAME=\"pam_yubico\"
> -DPACKAGE_TARNAME=\"pam_yubico\" -DPACKAGE_VERSION=\"2.7\"
> -DPACKAGE_STRING=\"pam_yubico\ 2.7\"
> -DPACKAGE_BUGREPORT=\"si...@yubico.com\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"pam_yubico\" -DVERSION=\"2.7\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -DHAVE_SECURITY_PAM_APPL_H=1
> -DHAVE_SECURITY_PAM_MODULES_H=1 -DHAVE_SECURITY__PAM_MACROS_H=1
> -DHAVE_LIBLDAP=1 -DHAVE_LIBYKCLIENT=1 -DHAVE_LIBYUBIKEY=1 -DHAVE_CR=1
> -I. -I/usr/local/include/ykpers-1 -g -O2 -MT pam_yubico_la-util.lo
> -MD -MP -MF .deps/pam_yubico_la-util.Tpo -c -o pam_yubico_la-util.lo
> `test -f 'util.c' || echo './'`util.c
> libtool: compile: gcc -DDEBUG_PAM -DPAM_DEBUG
> -DPACKAGE_NAME=\"pam_yubico\" -DPACKAGE_TARNAME=\"pam_yubico\"
> -DPACKAGE_VERSION=\"2.7\" "-DPACKAGE_STRING=\"pam_yubico 2.7\""
> -DPACKAGE_BUGREPORT=\"si...@yubico.com\" -DPACKAGE_URL=\"\"
> -DPACKAGE=\"pam_yubico\" -DVERSION=\"2.7\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -DHAVE_SECURITY_PAM_APPL_H=1
> -DHAVE_SECURITY_PAM_MODULES_H=1 -DHAVE_SECURITY__PAM_MACROS_H=1
> -DHAVE_LIBLDAP=1 -DHAVE_LIBYKCLIENT=1 -DHAVE_LIBYUBIKEY=1 -DHAVE_CR=1
> -I. -I/usr/local/include/ykpers-1 -g -O2 -MT pam_yubico_la-util.lo -MD
> -MP -MF .deps/pam_yubico_la-util.Tpo -c util.c -fPIC -DPIC -o
> .libs/pam_yubico_la-util.o
> util.c: In function ‘challenge_response’:
> util.c:151: error: ‘SLOT_CHAL_HMAC1’ undeclared (first use in this function)
> util.c:151: error: (Each undeclared identifier is reported only once
> util.c:151: error: for each function it appears in.)
> util.c:151: error: ‘SLOT_CHAL_OTP1’ undeclared (first use in this function)
> util.c:154: error: ‘SLOT_CHAL_HMAC2’ undeclared (first use in this function)
> util.c:154: error: ‘SLOT_CHAL_OTP2’ undeclared (first use in this function)
> make: *** [pam_yubico_la-util.lo] Error 1
>
>
> After googling it seems that these are defined from
> yubikey-personalisation but
>
>
> braice@braice-sheeva:~/yubikey$ grep -ril SLOT_CHAL_HMAC1 ./
> ./yubico-pam/util.c
> braice@braice-sheeva:~/yubikey$ ls
> yubico-c-client yubico-pam yubikey-personalization
>
>
> So I need your advice, shoud I copy these files from
> http://yubikey-personalization.sourcearchive.com/documentation/1.4.1/ykdef_8h_source.html
> or anything similar
>
> or should I wait for a update of your code ?
>
> Thank you
>
> Regards

Reply all
Reply to author
Forward
0 new messages