Summary: | x11-drivers/xf86-video-virtualbox - invalid conversion from ‘void*’ to ‘RTHEAPSIMPLEBLOCK*’ [-fpermissive] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arvydas Sidorenko <asido4> |
Component: | New packages | Assignee: | Alessio Cassibba (X-Drum) <swapon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bkohler, polynomial-c, proxy-maint |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
-fpermissive GCC flag fixes the issue
invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] xf86-video-virtualbox-4.1.12-r1.ebuild xf86-video-virtualbox-4.1.12-r1.ebuild |
Description
Arvydas Sidorenko
2012-05-18 23:49:45 UTC
Created attachment 312229 [details, diff]
-fpermissive GCC flag fixes the issue
Created attachment 314773 [details]
invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
I run into a variation
invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
^^^^^
of this, see attached log excerpt.
Similar for 4.1.12, (at different file) I'm using amd64 gentoo, but ~amd64 gentoo-sources (3.4.2-r1). In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.1.12/work/VirtualBox-4.1.12/src/VBox/Runtime/common/alloc/alloc.cpp:38:0: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.1.12/work/VirtualBox-4.1.12/include/iprt/string.h: In function ‘char* RTLatin1PutCp(char*, RTUNICP)’: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.1.12/work/VirtualBox-4.1.12/include/iprt/string.h:1405:5: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] CXX RuntimeGuestR0 - {C}/common/checksum/crc32.cpp kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.1.12/work/VirtualBox-4.1.12/out/linux.amd64/release/obj/RuntimeGuestR0/common/alloc/alloc.o] Error 1 If needed I can attach the full build log, but I think this is the same problem. 4.1.16 compiles (and works) fine! I think it's not OK to have a stable ebuild in the tree to not compile with almos default installation... If the attached patch fixes the problem, I sugegst to push it in the portage tree. (it's attached here 1 month ago). Created attachment 315541 [details]
xf86-video-virtualbox-4.1.12-r1.ebuild
xf86-video-virtualbox-fpermissive.patch file contains the patch attached first to the bug. I tested, and it works fine. I don't say the fpermissive switch for the gcc is a good fix, but it works, and it's better to use this hack, than having a broken stable ebuild in the portage tree. As I can see this coding problem is fixed by upstream in 4.1.16. Created attachment 315543 [details]
xf86-video-virtualbox-4.1.12-r1.ebuild
comment fix (sorry for abusing the bug system with too many comments)
Affected versions are long-gone, closing |