Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Problems with two different applications that I'm trying to compile with PAM support.

1) auth_pam - i gave up on this one for other reasons, but I still had the compiler problem -

$:~/openvpn-2.3_rc1/src/plugins/auth-pam# make auth-pam
cc     auth-pam.c   -o auth-pam
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
/tmp/ccR6yukF.o: In function `pam_auth':
auth-pam.c:(.text+0xf90): undefined reference to `pam_start'
auth-pam.c:(.text+0xfae): undefined reference to `pam_authenticate'
auth-pam.c:(.text+0xfc8): undefined reference to `pam_acct_mgmt'
auth-pam.c:(.text+0xfef): undefined reference to `pam_strerror'
auth-pam.c:(.text+0x102a): undefined reference to `pam_end'
collect2: ld returned 1 exit status
make: *** [auth-pam] Error 1

2)pam_imap - after checking the sf.net forum (http://sourceforge.net/projects/pam-imap/support) for the project it looks like it might be a 32 bit vs 64 bit issue, and I have the same environment.

cd ./isynclib ; make
make[1]: Entering directory `/home/me/pam_imap-0.3.8/isynclib'
gcc -g -O2  -I.. -I /usr/kerberos/include -DHAVE_CONFIG_H -c config.c
gcc -g -O2  -I.. -I /usr/kerberos/include -DHAVE_CONFIG_H -c imap.c
imap.c: In function ‘init_ssl’:
imap.c:143:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
imap.c:145:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
imap.c: In function ‘imap_connect’:
imap.c:677:2: warning: missing sentinel in function call [-Wformat]
gcc -g -O2  -I.. -I /usr/kerberos/include -DHAVE_CONFIG_H -c list.c
gcc -g -O2  -I.. -I /usr/kerberos/include -DHAVE_CONFIG_H -c cram.c
gcc -g -O2  -I.. -I /usr/kerberos/include -DHAVE_CONFIG_H -c helpers.c
make[1]: Leaving directory `/home/jnichols/pam_imap-0.3.8/isynclib'
gcc -g -O2  -I. -I /usr/kerberos/include -I /usr/local/include -I isynclib -lpam -lpam_misc check_user.c -o check_user
/tmp/cc2wPwn4.o:(.data+0x0): undefined reference to `misc_conv'
/tmp/cc2wPwn4.o: In function `main':
/home/me/pam_imap-0.3.8/check_user.c:80: undefined reference to `pam_start'
/home/me/pam_imap-0.3.8/check_user.c:89: undefined reference to `pam_authenticate'
/home/me/pam_imap-0.3.8/check_user.c:118: undefined reference to `pam_acct_mgmt'
/home/me/pam_imap-0.3.8/check_user.c:138: undefined reference to `pam_end'
/home/me/pam_imap-0.3.8/check_user.c:118: undefined reference to `pam_acct_mgmt'
/home/me/pam_imap-0.3.8/check_user.c:118: undefined reference to `pam_acct_mgmt'
collect2: ld returned 1 exit status
make: *** [check_user] Error 1

Ubuntu 12.04, 64 bit. libpam0-dev is installed. build-essentials is installed. I have pretty much every pam*-dev package installed. At least "make libssl-dev libpam0g libpam0g-dev libpam-runtime libpam-modules" among others. Still, I'm having the same problems.

share|improve this question
1  
This question might be better suited to Stack Overflow since it's a programming-related question. –  jackweirdy Nov 4 '12 at 1:11
    
Possibly, but I'm still not sure if it's Ubuntu specific, so I figured that I'd try here first. Off topic: can I just delete it and ask over there? –  Taco Bob Nov 6 '12 at 2:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.