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

Bug 138043

Summary: Qtella 0.7.0-r1 doesn't compile with GCC 4.1.1
Product: Gentoo Linux Reporter: Kevin R André <hyperquantum>
Component: [OLD] GCC PortingAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: normal CC: tristan
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: qtella-0.7.0-gcc41.patch
qtella-0.7.0-r1.ebuild

Description Kevin R André 2006-06-26 06:22:43 UTC
I tried to emerge qtella-0.7.0-r1 and it failed to compile.

The error message:

../include/BitTorrent.h:70: error: extra qualification 'BitTorrent::' on member 'bt_decode_file'
make[2]: *** [BitTorrentDownload.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/qtella-0.7.0-r1/work/qtella-0.7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/qtella-0.7.0-r1/work/qtella-0.7.0'
make: *** [all] Error 2

The obvious fix is to replace (in BitTorrent.h):

  static BitTorrent* BitTorrent::bt_decode_file( const char* filename );

with:

  static BitTorrent* bt_decode_file( const char* filename );

After the replacement, the following files also seemed to have this extra qualification problem and had to be fixed:

 * AudioMp3.h
 * AudioWav.h
 * AudioOgg.h

I didn't know how to make a diff of these changes so I couldn't provide a patch.
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2006-06-27 06:49:54 UTC
Created attachment 90273 [details, diff]
qtella-0.7.0-gcc41.patch

Kevin, http://devmanual.gentoo.org/tools-reference/diff-and-patch/index.html
Comment 2 Tristan Heaven (RETIRED) gentoo-dev 2006-06-27 06:50:50 UTC
Created attachment 90274 [details, diff]
qtella-0.7.0-r1.ebuild

cleaned up ebuild.
Comment 3 Jon Hood (RETIRED) gentoo-dev 2006-06-27 20:10:05 UTC
Patch applied in portage.