Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165072 - Ktorrent-2.1_rc1 fails to compile on g/fbsd due to missing include in plugins/upnp/upnpmcastsocket.cpp
Summary: Ktorrent-2.1_rc1 fails to compile on g/fbsd due to missing include in plugins...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-02 23:12 UTC by Emanuele A. Bagnaschi (Zephyrus)
Modified: 2007-03-06 21:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ktorrent-2.1_rc1 missing include patch (ktorrent-2.1rc1_include.patch,405 bytes, patch)
2007-02-02 23:14 UTC, Emanuele A. Bagnaschi (Zephyrus)
Details | Diff
Modified ktorrent-2.1_rc1 ebuild (ktorrent-2.1_rc1.ebuild,1.19 KB, text/plain)
2007-02-02 23:15 UTC, Emanuele A. Bagnaschi (Zephyrus)
Details

Note You need to log in before you can comment on or make changes to this bug.
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