Summary: | emulators/virtualbox-ose-additions: vxboxmouse compile error | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | papowell | ||||
Component: | Individual Port(s) | Assignee: | Jung-uk Kim <jkim> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | jkim | ||||
Priority: | --- | ||||||
Version: | Latest | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Fix Summary and assign. I think the problem is related to the compiler used on FreeBSD 9.3 and FreeBSD 10.1. The compiler used on 9.3 gives an error while the compiler used on 10.1 gives a warning: 'C99 extension...'. I'll take it. A commit references this bug: Author: jkim Date: Thu Dec 18 22:45:01 UTC 2014 New revision: 374929 URL: https://svnweb.freebsd.org/changeset/ports/374929 Log: Add an X.org patch to fix emulators/virtualbox-ose-additions with GCC 4.2. http://cgit.freedesktop.org/xorg/xserver/commit?id=ee9f766a PR: 195950 Obtained from: The X.Org project Changes: head/emulators/virtualbox-ose/files/patch-src-VBox-Additions-x11-x11include-xorg-server-1.16.0-xf86Xinput.h An X.Org patch was committed (r374929). http://cgit.freedesktop.org/xorg/xserver/commit?id=ee9f766abf6fbe0cc36234bfe727aba924e9b5fd It should be fixed now. |
Created attachment 150550 [details] Error Details System: FreeBSD amd64 9.3 running under VirtualBox Date: 13 Dec 2014 Installed all ports using PKGng. Installed Xorg-7.7_1 using PKGng. Installed kde-4-14 using PKGng. X.Org X Server 1.12.4 Compiled: /usr/ports/emulators/virtualbox-ose-additions In file included from /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.3.20/src/VBox/Additions/x11/vbox mouse/vboxmouse.c:50: /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.3.20/src/VBox/Additions/x11/x11i nclude/xorg-server-1.16.0/xf86Xinput.h:113: error: redefinition of typedef 'InputInfoPtr' /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-4.3.20/src/VBox/Additions/x11/x11i nclude/xorg-server-1.16.0/xf86.h:218: error: previous declaration of 'InputInfoPtr' was here NOTE 1: the X Server is version 1.12 but the VirtualBox compile appears to use xorg-server-1.16.0. NOTE 2: the following patch fixes this problem and the VirtualBox extensions compile and install. FIX: diff -bc work/VirtualBox-4.3.20/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/ xf86Xinput.h work.old/VirtualBox-4.3.20/src/VBox/Additions/x11/x11include/xorg-server -1.16.0/xf86Xinput.h *** work/VirtualBox-4.3.20/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/xf86X input.h Fri Nov 21 07:18:44 2014 --- work.old/VirtualBox-4.3.20/src/VBox/Additions/x11/x11include/xorg-server-1.16.0/x f86Xinput.h Fri Dec 12 08:20:25 2014 *************** *** 85,91 **** --- 85,94 ---- /* This is to input devices what the ScrnInfoRec is to screens. */ + /* typedef struct _InputInfoRec { + */ + struct _InputInfoRec { struct _InputInfoRec *next; char *name; char *driver; *************** *** 110,116 **** void *module; XF86OptionPtr options; InputAttributes *attrs; ! } *InputInfoPtr; /* xf86Globals.c */ extern InputInfoPtr xf86InputDevs; --- 113,123 ---- void *module; XF86OptionPtr options; InputAttributes *attrs; ! }; ! /* ! *InputInfoPtr; ! */ ! //typedef struct _InputInfoRec *InputInfoPtr; /* xf86Globals.c */ extern InputInfoPtr xf86InputDevs;