Re: [binc] Username and Password fail

Andreas Aardal Hanssen <[email protected]>
Newsgroups gmane.mail.imap.binc.general
Message-ID <[email protected]>
On Sun, 12 Jun 2005, Grant Fletcher wrote:
>sure i have installed checkpassword but i dont think its running correctly,,
>i get this when i make setup:
>[root@serv checkpassword-0.90]# make setup
>./load checkpassword prot.o unix.a byte.a  `cat \
>shadow.lib` `cat crypt.lib` `cat s.lib`
>checkpassword.o(.text+0xfa): In function `main':
>: undefined reference to `errno'
>checkpassword.o(.text+0x243): In function `main':
>: undefined reference to `errno'
>checkpassword.o(.text+0x265): In function `main':
>: undefined reference to `errno'
>unix.a(pathexec_run.o)(.text+0xf6): In function `pathexec_run':
>: undefined reference to `errno'
>unix.a(pathexec_run.o)(.text+0x13a): In function `pathexec_run':
>: undefined reference to `errno'
>unix.a(alloc.o)(.text+0x48): more undefined references to `errno' follow
>collect2: ld returned 1 exit status
>make: *** [checkpassword] Error 1
>can you explain i am quite new to this, how to get to the logs..

It wasn't installed, because the package did not compile. But this is a 
well known problem.

If you find the line in this package that says "extern int errno" and 
replace it with "#include <errno.h>", it will compile and install fine. 
Just do this:

grep 'extern int errno' *.c

Then replace the relevant line, and run "make setup" again.

Otherwise, there are several pre-compiled packages for checkpassword, 
where you won't need to compile it yourself:

http://www.qmail.org/rpms/RPMS/
http://smarden.org/pape/Debian/

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.