Ktorrent-2.1_rc1 fails to compile on g/fbsd due to missing include in plugins/upnp/upnpmcastsocket.cpp It seems that the solution for this problem is to add #include <netinet/in_systm.h> to upnpmcastsocket.cpp See: http://ktorrent.org/forum/viewtopic.php?t=1225 I also tested the patch on my Linux system and it seems that it doesn't create any kind of problem. Reproducible: Always Steps to Reproduce: 1. emerge =net-p2p/ktorrent-2.1_rc1 2. 3. Actual Results: ktorrent emerge failure. Expected Results: ktorrent emerge successfully. GCC error: /bin/bash ../../libtool --silent --tag=CXX --mode=compile i486-gentoo-freebsd6.2-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -I./../../libktorrent -DQT_THREAD_SUPPORT -D_THREAD_SAFE -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=athlon64 -O2 -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fexceptions -c -o upnpmcastsocket.lo upnpmcastsocket.cpp /usr/include/netinet/ip.h:160: error: 'n_long' does not name a type /usr/include/netinet/ip.h:163: error: 'n_long' does not name a type
Created attachment 108978 [details, diff] ktorrent-2.1_rc1 missing include patch Patch to add the missing include to upnpmcastsocket.cpp
Created attachment 108979 [details] Modified ktorrent-2.1_rc1 ebuild This is a modified ebuild: it applies the patch which add the missing include
Add keyword ~x86-fbsd to ktorrent-2.1 It compiles without any patches