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

Bug 281763

Summary: media-libs/SoQt-1.4.1 Compilation fails with gcc-4.4.1
Product: Gentoo Linux Reporter: Jean-Francois Ostiguy <jfostiguy>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: Jonathan.Williamson
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226    
Attachments: Patch to make SoQt-1.4.1 compile under gcc-4.4.1
Modified ebuild for SoQt-1.4.1
Patch from Debian - Change type conditional on version of Coin

Description Jean-Francois Ostiguy 2009-08-17 13:30:46 UTC
SoQt-1.4.1 Compilation fails with gcc-4.4.1

Patch to fix this problem is attached. 

SoQtComponent.cpp: In static member function 'static void SoQtComponentP::atexit_cleanup()':
SoQtComponent.cpp:112: error: invalid conversion from 'void (*)(long unsigned int, void*)' to 'void (*)(SbDictKeyType, void*)'
SoQtComponent.cpp:112: error:   initializing argument 1 of 'void SbDict::applyToAll(void (*)(SbDictKeyType, void*)) const'
make[8]: *** [SoQtComponent.lo] Error 1


Reproducible: Always
Comment 1 Jean-Francois Ostiguy 2009-08-17 13:34:11 UTC
Created attachment 201532 [details, diff]
Patch to make SoQt-1.4.1 compile under gcc-4.4.1
Comment 2 Jean-Francois Ostiguy 2009-08-17 13:35:43 UTC
Created attachment 201534 [details]
Modified ebuild for SoQt-1.4.1
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2009-08-23 19:01:39 UTC
Fixed in portage, thanks for the patch!
Comment 4 JonBoy 2009-10-25 13:55:44 UTC
Compiling against coin-2.4.5 with gcc 4.3.4, this patch causes the following error:

SoQtComponent.cpp:103: error: variable or field 'delete_dict_value' declared void
SoQtComponent.cpp:103: error: 'SbDictKeyType' was not declared in this scope
SoQtComponent.cpp:103: error: expected primary-expression before 'void'
SoQtComponent.cpp: In static member function 'static void SoQtComponentP::atexit_cleanup()':
SoQtComponent.cpp:112: error: 'delete_dict_value' was not declared in this scope
make[8]: *** [SoQtComponent.lo] Error 1


I found the same bug in Debian - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515742 - which provides a patch taken from upstream.

The upstream patch does the same as this patch but conditional on coin > 3. 
This fixed my compile error. 
Comment 5 JonBoy 2009-10-25 14:00:04 UTC
Created attachment 208211 [details]
Patch from Debian - Change type conditional on version of Coin
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2009-10-27 22:05:55 UTC
Thanks for the patch!
Sync and re-emerge SoQt-1.4.1