Hello. I try to http://motp.sourceforge.net/pam_mobile_otp-0.6.2.tgz compile in FreeBSD 12.
I try to compile it with GCC, i get :
And then
Anyone can help me with it ?
Best regards.
I try to compile it with GCC, i get :
C:
gcc -fPIC -D_REENTRANT -c pam_mobile_otp.c
pam_mobile_otp.c: In function 'otp':
pam_mobile_otp.c:134:5: warning: implicit declaration of function 'md5_calc' [-Wimplicit-function-declaration]
134 | md5_calc ( md5sum, buffer, strlen(buffer) );
| ^~~~~~~~
pam_mobile_otp.c: In function 'pam_sm_chauthtok':
pam_mobile_otp.c:425:53: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
425 | retval = pam_set_data (pamh, "motp-position", (void *)pos, NULL);
|
And then
C:
/usr/local/bin/ld -G -z defs -o pam_mobile_otp.so pam_mobile_otp.o -lpam -lc -lmd5
/usr/local/bin/ld: cannot find -lmd5
Anyone can help me with it ?
Best regards.