Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 165072

Summary: Ktorrent-2.1_rc1 fails to compile on g/fbsd due to missing include in plugins/upnp/upnpmcastsocket.cpp
Product: Gentoo/Alt Reporter: Emanuele A. Bagnaschi (Zephyrus) <zephyrus.271>
Component: FreeBSDAssignee: Gentoo/BSD Team <bsd+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ktorrent-2.1_rc1 missing include patch
Modified ktorrent-2.1_rc1 ebuild

Description Emanuele A. Bagnaschi (Zephyrus) 2007-02-02 23:12:54 UTC
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
Comment 1 Emanuele A. Bagnaschi (Zephyrus) 2007-02-02 23:14:15 UTC
Created attachment 108978 [details, diff]
ktorrent-2.1_rc1 missing include patch

Patch to add the missing include to upnpmcastsocket.cpp
Comment 2 Emanuele A. Bagnaschi (Zephyrus) 2007-02-02 23:15:47 UTC
Created attachment 108979 [details]
Modified ktorrent-2.1_rc1 ebuild

This is a modified ebuild: it applies the patch which add the missing include
Comment 3 Timothy Redaelli (RETIRED) gentoo-dev 2007-03-06 21:13:46 UTC
Add keyword ~x86-fbsd to ktorrent-2.1
It compiles without any patches