I don't know much about coding, but the problem is in /libtransmission/web.c
It declares #include <curl/curl.h> and misses CURL_CSELECT_IN, CURL_CSELECT_OUT etc. These are missing from /opt/include/curl/curl.h So: some problem in libcurl compilation.