[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Compiling problems: undefined reference to 'errno'

On Wed, 25 Dec 2002, 15:05:25 +0100, Brian C. Huffman wrote:
> I'm trying to compile SRP (Stanford's Secure Remote Protocol).  It
> configures and then when I do a make, spits this error out after a
> couple of lines.  I will investigate a little later, but figured if
> anyone knew this off of the top of their head, it might be faster:
> Thanks!
> Brian
> ar cru libsrp.a t_client.o t_conf.o t_conv.o t_getpass.o t_sha.o
> t_math.o t_misc.o t_pw.o t_read.o t_server.o t_truerand.o cstr.o srp.o
> rfc2945_client.o rfc2945_server.o srp6_client.o srp6_server.o yp_misc.o
> yp_tpasswd.o yp_tconf.o nsw_tpasswd.o nsw_tconf.o nsswitch.o
> ranlib libsrp.a
> gcc -DHAVE_CONFIG_H -I. -I. -I.    -fPIC -O -c tconf.c
> gcc -fPIC -O  -o tconf  tconf.o libsrp.a -lcrypto -lnsl
> tconf.o(.text+0x11f): In function `main':
> : undefined reference to `errno'

This is a bug in the application; it should #include <errno.h>.

HTH, cheers.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]