Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281763 - media-libs/SoQt-1.4.1 Compilation fails with gcc-4.4.1
Summary: media-libs/SoQt-1.4.1 Compilation fails with gcc-4.4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4
  Show dependency tree
 
Reported: 2009-08-17 13:30 UTC by Jean-Francois Ostiguy
Modified: 2009-10-27 22:05 UTC (History)
1 user (show)

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


Attachments
Patch to make SoQt-1.4.1 compile under gcc-4.4.1 (SoQt-1.4.1-SbDictKeyType.patch,386 bytes, patch)
2009-08-17 13:34 UTC, Jean-Francois Ostiguy
Details | Diff
Modified ebuild for SoQt-1.4.1 (SoQt-1.4.1.ebuild,1.22 KB, text/plain)
2009-08-17 13:35 UTC, Jean-Francois Ostiguy
Details
Patch from Debian - Change type conditional on version of Coin (SoQt-1.4.1-coin3-gcc44.patch,674 bytes, text/plain)
2009-10-25 14:00 UTC, JonBoy
Details

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