On Debian, bacula build depends on libssl-dev. Check your distro
packages manager and install ssl headers.

Jorge González a écrit :
> Adam Cécile escribió:
>   
>> Some SSL headers missing ?
>>   
>>     
> I think so but I'm not a programmer :(
>   
>> Jorge González a écrit :
>>   
>>     
>>> hi all!
>>>
>>> ok, I applied the patchs 
>>> (http://article.gmane.org/gmane.comp.bacula.user/27144/match=check+bacula) 
>>> and got new errors (output trunked):
>>>
>>>     ==>E/ntering directory /usr/local/src/bacula-2.0.3/src/check_bacula
>>>     make[1]: se ingresa al directorio
>>>     `/usr/local/src/bacula-2.0.3/src/check_bacula'
>>>     /usr/bin/g++   -c -fno-strict-aliasing -fno-exceptions -fno-rtti 
>>>     -I. -I..  -g -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti 
>>>     check_bacula.c
>>>     /usr/bin/g++   -c -fno-strict-aliasing -fno-exceptions -fno-rtti 
>>>     -I. -I..  -g -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti 
>>>     authenticate.c
>>>     /usr/bin/g++   -L../lib -L../cats -o check_bacula check_bacula.o
>>>     authenticate.o \
>>>                    -lbac -lm -lpthread -ldl 
>>>     ../lib/libbac.a(tls.o): In function `openssl_bsock_readwrite':
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:607: undefined reference
>>>     to `SSL_write'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:609: undefined reference
>>>     to `SSL_read'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:613: undefined reference
>>>     to `SSL_get_error'
>>>     ../lib/libbac.a(tls.o): In function `tls_bsock_shutdown(BSOCK*)':
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:562: undefined reference
>>>     to `SSL_shutdown'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:564: undefined reference
>>>     to `SSL_get_error'
>>>     ../lib/libbac.a(tls.o): In function `openssl_bsock_session_start':
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:457: undefined reference
>>>     to `SSL_accept'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:459: undefined reference
>>>     to `SSL_connect'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:463: undefined reference
>>>     to `SSL_get_error'
>>>     ../lib/libbac.a(tls.o): In function
>>>     `free_tls_connection(TLS_Connection*)':
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:430: undefined reference
>>>     to `SSL_free'
>>>     ../lib/libbac.a(tls.o): In function
>>>     `new_tls_connection(TLS_Context*, int)':
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:391: undefined reference
>>>     to `BIO_s_socket'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:391: undefined reference
>>>     to `BIO_new'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:397: undefined reference
>>>     to `BIO_int_ctrl'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:403: undefined reference
>>>     to `SSL_new'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:409: undefined reference
>>>     to `SSL_set_bio'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:412: undefined reference
>>>     to `SSL_ctrl'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:418: undefined reference
>>>     to `BIO_free'
>>>     /usr/local/src/bacula-2.0.3/src/lib/tls.c:419: undefined reference
>>>     to `SSL_free'
>>>     ../lib/libbac.a(tls.o): In function
>>>     `tls_postconnect_verify_host(TLS_Connection*, char const*)':/
>>>
>>>
>>> Any tricks? Thanks in advance
>>> jorge
>>>
>>>
>>> Jorge González escribió:
>>>   
>>>     
>>>       
>>>> Hi guys!
>>>>
>>>> I'm trying to compile check_bacula (nagios) on 2.0.3. I modified 
>>>> autheticate.c and check_bacula.c 
>>>> (http://article.gmane.org/gmane.comp.bacula.user/26619/match=check+bacula) 
>>>> but it doesn't compile:
>>>>
>>>> ==>Entering directory /usr/local/src/bacula-2.0.2/src/check_bacula
>>>> make[1]: se ingresa al directorio 
>>>> `/usr/local/src/bacula-2.0.2/src/check_bacula'
>>>> /usr/bin/g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. 
>>>> -g -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti check_bacula.c
>>>> /usr/bin/g++ -c -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. 
>>>> -g -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti authenticate.c
>>>> authenticate.c: In function ‘int authenticate_director(BSOCK*, char*, 
>>>> char*)’:
>>>> authenticate.c:71: error: ‘cram_md5_get_auth’ no se declaró en este ámbito
>>>> authenticate.c:72: error: ‘cram_md5_auth’ no se declaró en este ámbito
>>>> authenticate.c: In function ‘int authenticate_storage_daemon(BSOCK*, 
>>>> char*, char*)’:
>>>> authenticate.c:108: error: ‘cram_md5_get_auth’ no se declaró en este ámbito
>>>> authenticate.c:109: error: ‘cram_md5_auth’ no se declaró en este ámbito
>>>> authenticate.c: In function ‘int authenticate_file_daemon(BSOCK*, char*, 
>>>> char*)’:
>>>> authenticate.c:144: error: ‘cram_md5_get_auth’ no se declaró en este ámbito
>>>> authenticate.c:145: error: ‘cram_md5_auth’ no se declaró en este ámbito
>>>> make[1]: *** [authenticate.o] Error 1
>>>> make[1]: se sale del directorio 
>>>> `/usr/local/src/bacula-2.0.2/src/check_bacula'
>>>>
>>>>
>>>> Thanks in advance.
>>>> Jorge
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.net email is sponsored by DB2 Express
>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>> control of your XML. No limits. Just data. Click to get it now.
>>>> http://sourceforge.net/powerbar/db2/
>>>> _______________________________________________
>>>> Bacula-users mailing list
>>>> Bacula-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>>   
>>>>     
>>>>       
>>>>         
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>   
>>>     
>>>       
>>   
>>     
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>   


-- 
Adam CECILE                    Linbox / Free&ALter Soft
152 rue de Grigy               tél: +33 3 87 50 87 95
Technopôle Metz 2000           fax: +33 3 87 75 19 26           
57070 METZ - France            http://www.linbox.com


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to