glibc build error: linking gnutls

nikita somaiya nikita.17@hotmail.com
Thu Apr 18 17:19:00 GMT 2013


I am currently working on modifying the glibc resolver code to use libgnutls. I created a patch of my changes and added it to the glibc spec file and did an rpmbuild to build glibc. On building, I get the following errors:

libresolv_pic.a(res_send.os): In function 'send_vc' :
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:808: undefined reference to 'gnutls_global_init'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:809: undefined reference to 'gnutls_anon_allocate_client_ credentials'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:810: undefined reference to 'gnutls_init'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:812: undefined reference to 'gnutls_priority_set_direct'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:813: undefined reference to 'gnutls_credentials_set'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:815: undefined reference to 'gnutls_transport_set_ptr'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:817: undefined reference to 'gnutls_handshake'
/home/nikita/rpmbuild/BUILD/ glibc-2.15-a316c1f/resolv/res_ send.c:821: undefined reference to 'gnutls_perror'
collect2: error: ld returned 1 exit status

Can anyone tell me how to handle cross library dependence? I believe this is forming a circular dependency since with my code glibc now depends on libgnutls which in turn depends on glibc. 

Thank you. 		 	   		  


More information about the Libc-help mailing list