pam_pkcs11.so v0.6.4 building for FreeBSD...problem.

classic Classic list List threaded Threaded
2 messages Options
f u
Reply | Threaded
Open this post in threaded view
|

pam_pkcs11.so v0.6.4 building for FreeBSD...problem.

f u
Hello.
I have  tried again with 0.6.4 version, but NO success %(((
Bug in configure script left untouched.
Error with `gmake` is the same:

libtool: link: ( cd ".libs" && rm -f "libfinder.la" && ln -s "../libfinder.la" "libfinder.la" )
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -Wall -fno-strict-aliasing -I/usr/local/include   -I/usr/local/include -Wall -fno-strict-aliasing -I/usr/local/include   -g -O2 -MT pam_pkcs11.lo -MD -MP -MF .deps/pam_pkcs11.Tpo -c -o pam_pkcs11.lo pam_pkcs11.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -fno-strict-aliasing -I/usr/local/include -I/usr/local/include -Wall -fno-strict-aliasing -I/usr/local/include -g -O2 -MT pam_pkcs11.lo -MD -MP -MF .deps/pam_pkcs11.Tpo -c pam_pkcs11.c  -fPIC -DPIC -o .libs/pam_pkcs11.o
pam_pkcs11.c:75: error: conflicting types for 'pam_prompt'
/usr/include/security/openpam.h:111: error: previous declaration of 'pam_prompt' was here
pam_pkcs11.c: In function 'pam_prompt':
pam_pkcs11.c:86: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:91: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
pam_pkcs11.c: In function 'pam_get_pwd':
pam_pkcs11.c:135: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:148: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:153: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
pam_pkcs11.c: In function 'pam_sm_authenticate':
pam_pkcs11.c:269: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:281: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:286: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:469: error: too many arguments to function 'pam_prompt'
gmake[3]: *** [pam_pkcs11.lo] Ошибка 1
gmake[3]: Leaving directory `/usr/home/hishnik/local/builds/pam_pkcs11-0.6.4/src/pam_pkcs11'
gmake[2]: *** [all-recursive] Ошибка 1
gmake[2]: Leaving directory `/usr/home/hishnik/local/builds/pam_pkcs11-0.6.4/src'
gmake[1]: *** [all-recursive] Ошибка 1
gmake[1]: Leaving directory `/usr/home/hishnik/local/builds/pam_pkcs11-0.6.4'
gmake: *** [all] Ошибка 2


And wiht BSD `make` it looks the same :

libtool: link: ( cd ".libs" && rm -f "libfinder.la" && ln -s "../libfinder.la" "libfinder.la" )
/bin/sh ../../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..   -Wall -fno-strict-aliasing -I/usr/local/include -I/usr/local/include -Wall -fno-strict-aliasing -I/usr/local/include -g -O2 -MT pam_pkcs11.lo -MD -MP -MF .deps/pam_pkcs11.Tpo -c -o pam_pkcs11.lo pam_pkcs11.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -fno-strict-aliasing -I/usr/local/include -I/usr/local/include -Wall -fno-strict-aliasing -I/usr/local/include -g -O2 -MT pam_pkcs11.lo -MD -MP -MF .deps/pam_pkcs11.Tpo -c pam_pkcs11.c  -fPIC -DPIC -o .libs/pam_pkcs11.o
pam_pkcs11.c:75: error: conflicting types for 'pam_prompt'
/usr/include/security/openpam.h:111: error: previous declaration of 'pam_prompt' was here
pam_pkcs11.c: In function 'pam_prompt':
pam_pkcs11.c:86: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:91: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
pam_pkcs11.c: In function 'pam_get_pwd':
pam_pkcs11.c:135: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:148: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:153: warning: passing argument 2 of 'conv->conv' from incompatible pointer type
pam_pkcs11.c: In function 'pam_sm_authenticate':
pam_pkcs11.c:269: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:281: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:286: warning: passing argument 3 of 'pam_get_item' from incompatible pointer type
pam_pkcs11.c:469: error: too many arguments to function 'pam_prompt'
*** Error code 1

Stop in /usr/home/hishnik/local/builds/pam_pkcs11-0.6.4/src/pam_pkcs11.
*** Error code 1

Stop in /usr/home/hishnik/local/builds/pam_pkcs11-0.6.4/src.
*** Error code 1

Stop in /usr/home/hishnik/local/builds/pam_pkcs11-0.6.4.
*** Error code 1

Stop in /usr/home/hishnik/local/builds/pam_pkcs11-0.6.4.

Any suggestions?
Thank YOU.
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user
Reply | Threaded
Open this post in threaded view
|

Re: pam_pkcs11.so v0.6.4 building for FreeBSD...problem.

Ludovic Rousseau
2010/8/13 f u <[hidden email]>:
> Hello.
> I have  tried again with 0.6.4 version, but NO success %(((

Now fixed in revision 444.
Can you apply the patch [1] and try again?

[1] https://www.opensc-project.org/pam_pkcs11/changeset/444

--
 Dr. Ludovic Rousseau
_______________________________________________
opensc-user mailing list
[hidden email]
http://www.opensc-project.org/mailman/listinfo/opensc-user