NSCA compile errors (libmcrypt related)

Christopher Kalos ckalos at esaya.com
Thu Jun 19 20:18:54 CEST 2003


    I'm working on setting up NSCA on a Redhat 7.2 system, and after
installing libmcrypt/libmcrypt-devel RPMs, editing /etc/ld.so.conf, and
running ldconfig, I still manage to get undefined reference errors.
    Is there something fundamental I'm missing here?  I'd assume that with
the libmcrypt stuff under /usr/lib, and the header files under /usr/include,
the rest would be a simple matter of running make, but this is clearly not
the case.
    For what it's worth, I installed libmcrypt 2.4.17.  Below is the output
from make, if anyone wants to take a look at it.

Thanks,
CK

make[1]: Entering directory `/home/ckalos/nsca-2.3/src'
gcc -g -O2 -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -lltdl -L/usr/lib
-lmcrypt -lltdl  -lnsl nsca.c netutils.c utils.c -o nsca
/tmp/cc2uXag3.o: In function `encrypt_init':
/home/ckalos/nsca-2.3/src/utils.c:195: undefined reference to
`mcrypt_module_open'
/home/ckalos/nsca-2.3/src/utils.c:205: undefined reference to
`mcrypt_enc_get_iv_size'
/home/ckalos/nsca-2.3/src/utils.c:222: undefined reference to
`mcrypt_enc_get_key_size'
/home/ckalos/nsca-2.3/src/utils.c:237: undefined reference to
`mcrypt_generic_init'
/tmp/cc2uXag3.o: In function `encrypt_cleanup':
/home/ckalos/nsca-2.3/src/utils.c:256: undefined reference to
`mcrypt_generic_end'
/tmp/cc2uXag3.o: In function `encrypt_buffer':
/home/ckalos/nsca-2.3/src/utils.c:348: undefined reference to
`mcrypt_generic'
/tmp/cc2uXag3.o: In function `decrypt_buffer':
/home/ckalos/nsca-2.3/src/utils.c:382: undefined reference to
`mdecrypt_generic'
collect2: ld returned 1 exit status
make[1]: *** [nsca] Error 1
make[1]: Leaving directory `/home/ckalos/nsca-2.3/src'




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list