AW: nsca compile question

Michael Eck michael.eck at gmail.com
Wed Aug 11 20:30:06 CEST 2004


Thanks for the help.
When I use the -static flag, I get errors and the compile fails.  The
output is below, but I'm probably getting a bit off topic at this
point.

cd ./src/; make all ; cd ..
make[1]: Entering directory `/home/meck/nsca-2.4/src'
gcc -static -g -O2 -I/home/meck/libmcrypt/include/ -DHAVE_LIBMCRYPT
-I/home/meck/libmcrypt/include -DHAVE_CONFIG_H
-L/home/meck/libmcrypt/lib/ -L/home/meck/libmcrypt/lib -lmcrypt  -o
nsca -lnsl nsca.c netutils.c utils.c
/tmp/ccfuIvwi.o: In function `encrypt_init':
/home/meck/nsca-2.4/src/utils.c:195: undefined reference to
`mcrypt_module_open'
/home/meck/nsca-2.4/src/utils.c:205: undefined reference to
`mcrypt_enc_get_iv_size'
/home/meck/nsca-2.4/src/utils.c:222: undefined reference to
`mcrypt_enc_get_key_size'
/home/meck/nsca-2.4/src/utils.c:237: undefined reference to
`mcrypt_generic_init'
/tmp/ccfuIvwi.o: In function `encrypt_cleanup':
/home/meck/nsca-2.4/src/utils.c:256: undefined reference to
`mcrypt_generic_end'
/tmp/ccfuIvwi.o: In function `encrypt_buffer':
/home/meck/nsca-2.4/src/utils.c:348: undefined reference to
`mcrypt_generic'
/tmp/ccfuIvwi.o: In function `decrypt_buffer':
/home/meck/nsca-2.4/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/meck/nsca-2.4/src'

Any thoughts?
Thanks again.  

On Wed, 11 Aug 2004 14:53:21 +0200, Helmut Januschka
<h.januschka at krone.at> wrote:
> make clean
> export CC=gcc -static #or edit the makefile and add -static
> 
> that should do it
> 
> cu
> klewan
> 
> -----Ursprüngliche Nachricht-----
> Von: Michael Eck [mailto:michael.eck at gmail.com]
> Gesendet: Mittwoch, 11. August 2004 14:13
> An: nagios-users at lists.sourceforge.net
> Betreff: [Nagios-users] nsca compile question
> 
> Greetings,
> Is it possible to compile nsca with libmcrypt statically linked so that I need not install libmcrypt on all of the machines that I want to run send_nsca on?
> 
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> 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
>


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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