Closed jennifer-richards closed 6 years ago
The configure
script tests for tidc_create in -ltr_tid
more or less by trying to compile something like:
#include <trust_router/tid.h>
int main(void)
{
TIDC_INSTANCE *tidc = tidc_create();
return (!tidc);
}
This fails:
$ gcc -o test test.c -ltr_tid
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libtr_tid.so: undefined reference to `tr_gssc_instance_new'
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libtr_tid.so: undefined reference to `tr_gssc_open_connection'
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libtr_tid.so: undefined reference to `tr_gssc_exchange_msgs'
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/libtr_tid.so: undefined reference to `tr_gss_handle_connection'
collect2: error: ld returned 1 exit status
This is caused by failing to include the tr_gss.c
code in the libtr_tid.la
library. This is GSS transaction code that was factored out of the TID-specific sources to be reused with the monitoring code.
Jennifer, Mark thinks this is fixed already. Is he right?
This is fixed but not released - there is a build problem that I need to sort out (I was hoping to build the trust router against the libtr_tid code for its TID support, but that doesn't work right now because of dependencies between the tr_msg
module and TID, TRP, and monitoring support. I will close this and open an issue for the current problem (I got pulled away before wrapping it up).
Alejandro Perez reports:
And