Summary: | app-emulation/virtualbox-5.2.14 PyXPCOM.h invalid conversion from ‘const char*’ to ‘char*’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Smith <chris> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jfostiguy, jstein, mark+gentoobugs, rose, steven |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
virtualbox-5.2.14 build log
Patch for const problem |
Description
Chris Smith
2018-07-09 16:20:52 UTC
It builds with -python use flag. But have always built it with python bindings in the past. It appears it is now trying to use python-3.7 instead of python-2.7 which could be the problem. Created attachment 539038 [details, diff]
Patch for const problem
(In reply to Helmut Jarausch from comment #2) > Created attachment 539038 [details, diff] [details, diff] > Patch for const problem Thanks Helmut, the patch worked here. Any chance this bug can get conformed and the fix put in the tree? The same issue happens with virtualbox-5.2.14-r1: ... /var/tmp/portage/app-emulation/virtualbox-5.2.14-r1/work/VirtualBox-5.2.14/src/libs/xpcom18a4/python/src/ErrorUtils.cpp: In function ‘char* PyTraceback_AsString(PyObject*)’: /var/tmp/portage/app-emulation/virtualbox-5.2.14-r1/work/VirtualBox-5.2.14/src/libs/xpcom18a4/python/src/PyXPCOM.h:141:51: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] # define PyUnicode_AsUTF8(o) _PyUnicode_AsString(o) /var/tmp/portage/app-emulation/virtualbox-5.2.14-r1/work/VirtualBox-5.2.14/src/libs/xpcom18a4/python/src/ErrorUtils.cpp:443:21: note: in expansion of macro ‘PyUnicode_AsUTF8’ char *tempResult = PyUnicode_AsUTF8(obResult); ^~~~~~~~~~~~~~~~ kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:226: /var/tmp/portage/app-emulation/virtualbox-5.2.14-r1/work/VirtualBox-5.2.14/out/linux.amd64/release/obj/VBoxPython3_7m/src/ErrorUtils.o] Error 1 * ERROR: app-emulation/virtualbox-5.2.14-r1::gentoo failed (compile phase): * emake failed The patch of comment 2 fixes the problem virtualbox-5.2.14-r1 as well. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e424f15cec2f913b6b57da33d60fe682d7f4b0cb commit e424f15cec2f913b6b57da33d60fe682d7f4b0cb Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-07-18 09:34:39 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-07-18 09:39:05 +0000 virtualbox packages: Bump to version 5.2.16 Closes: https://bugs.gentoo.org/660808 Package-Manager: Portage-2.3.43, Repoman-2.3.10 app-emulation/virtualbox-additions/Manifest | 1 + .../virtualbox-additions-5.2.16.ebuild | 33 ++ app-emulation/virtualbox-bin/Manifest | 4 + .../virtualbox-bin-5.2.16.123759.ebuild | 287 +++++++++++++ app-emulation/virtualbox-extpack-oracle/Manifest | 1 + .../virtualbox-extpack-oracle-5.2.16.123759.ebuild | 42 ++ app-emulation/virtualbox-guest-additions/Manifest | 2 + .../virtualbox-guest-additions-5.2.16.ebuild | 229 ++++++++++ app-emulation/virtualbox-modules/Manifest | 1 + .../virtualbox-modules-5.2.16.ebuild | 51 +++ app-emulation/virtualbox/Manifest | 2 + app-emulation/virtualbox/virtualbox-5.2.16.ebuild | 471 +++++++++++++++++++++ 12 files changed, 1124 insertions(+) |