Opened 9 years ago
Closed 9 years ago
#14564 closed defect (fixed)
Build error (5.0.4) on Linux 32-bit system => Fixed in SVN
Reported by: | Larry998 | Owned by: | |
---|---|---|---|
Component: | host support | Version: | VirtualBox 5.0.4 |
Keywords: | C++ compiler error | Cc: | |
Guest type: | other | Host type: | Linux |
Description
As the VirtualBox maintainer for openSUSE, I need to build both 32- and 64-bit versions. For a 64-bit system, all is fine. On a 32-bit platform with gcc 5.1.1, I get the following errors:
[ 528s] /home/abuild/rpmbuild/BUILD/VirtualBox-5.0.4/src/VBox/ExtPacks/VNC/VBoxVNC.cpp: In static member function 'static int VNCServerImpl::VRDEEnableConnections(HVRDESERVER, bool)': [ 528s] /home/abuild/rpmbuild/BUILD/VirtualBox-5.0.4/src/VBox/ExtPacks/VNC/VBoxVNC.cpp:339:30: error: invalid conversion from 'rfbNewClientAction (__attribute__((regparm(0), cdecl)) *)(rfbClientPtr) {aka rfbNewClientAction (__attribute__((regparm(0), cdecl)) *)(_rfbClientRec*)}' to 'rfbNewClientHookPtr {aka rfbNewClientAction (*)(_rfbClientRec*)}' [-fpermissive] [ 528s] vncServer->newClientHook = rfbNewClientEvent; [ 528s] ^ [ 528s] /home/abuild/rpmbuild/BUILD/VirtualBox-5.0.4/src/VBox/ExtPacks/VNC/VBoxVNC.cpp:341:28: error: invalid conversion from 'void (__attribute__((regparm(0), cdecl)) *)(int, int, int, rfbClientPtr) {aka void (__attribute__((regparm(0), cdecl)) *)(int, int, int, _rfbClientRec*)}' to 'rfbPtrAddEventProcPtr {aka void (*)(int, int, int, _rfbClientRec*)}' [-fpermissive] [ 528s] vncServer->ptrAddEvent = vncMouseEvent; [ 528s] ^ [ 528s] kmk: *** [/home/abuild/rpmbuild/BUILD/VirtualBox-5.0.4/out/linux.x86/release/obj/VBoxVNC/VBoxVNC.o] Error 1
My C++ skills are not good, and I have no idea how to fix this.
Change History (7)
comment:1 by , 9 years ago
comment:3 by , 9 years ago
Summary: | Build error (5.0.4) on Linux 32-bit system → Build error (5.0.4) on Linux 32-bit system => Fixed in SVN |
---|
comment:4 by , 9 years ago
After applying fix from SVN there is new error:
/tmp/B.77ef36aa-4579-4e40-b692-860116fb03e4/BUILD/VirtualBox-5.0.4/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp:929:64: error: invalid conversion from 'void (*)(PRTLOGGER, RTLOGPHASE, PFNRTLOGPHASEMSG) {aka void (*)(RTLOGGER*, RTLOGPHASE, void (__attribute__((regparm(0), cdecl)) *)(RTLOGGER*, const char*, ...))}' to 'PFNRTLOGPHASE {aka void (__attribute__((regparm(0), cdecl)) *)(RTLOGGER*, RTLOGPHASE, void (__attribute__((regparm(0), cdecl)) *)(RTLOGGER*, const char*, ...))}' [-fpermissive]
comment:6 by , 9 years ago
Thanks for the quick response. The updated 5.0.4 has not been submitte4d to the openSUSE Factory build system to produce a new package.
Note:
See TracTickets
for help on using tickets.
We face the same issue here at PLD. The issue was tracked down to this commit:
Reverting above commit fixes 32bit build but build for x32 ABI is still broken with multiple errors: