Bug 232678 - x11-drivers/xf86-input-mouse: compile error on 13.0-CURRENT
Summary: x11-drivers/xf86-input-mouse: compile error on 13.0-CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-25 15:10 UTC by George
Modified: 2018-10-26 04:44 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George 2018-10-25 15:10:09 UTC
Good day!

I have a error while x11-drivers/xf86-input-mouse reinstall on 13-CURRENT.

uname -a
--------------------------
FreeBSD BSD-NUC 13.0-CURRENT FreeBSD 13.0-CURRENT r339640 BSDSERV  amd64

Error log
--------------------------
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -I/usr/local/include/xorg -fvisibility=hidden -I/usr/local/include -I/usr/local/include/pixman-1 -I/usr/local/include/X11/dri -I/usr/local/include/libdrm -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -Os -pipe -march=native -fstack-protector -fno-strict-aliasing -MT bsd_mouse.lo -MD -MP -MF .deps/bsd_mouse.Tpo -c bsd_mouse.c  -fPIC -DPIC -o .libs/bsd_mouse.o
--- pnp.lo ---
mv -f .deps/pnp.Tpo .deps/pnp.Plo
--- bsd_mouse.lo ---
bsd_mouse.c:202:11: error: use of undeclared identifier 'MOUSE_PROTO_BUS'
        { MOUSE_PROTO_BUS,              "BusMouse" },
          ^
bsd_mouse.c:203:11: error: use of undeclared identifier 'MOUSE_PROTO_INPORT'
        { MOUSE_PROTO_INPORT,           "BusMouse" },
          ^
bsd_mouse.c:260:31: error: invalid application of 'sizeof' to an incomplete type 'struct (anonymous struct at bsd_mouse.c:193:8) []'
        for (i = 0; i < sizeof(devproto)/sizeof(devproto[0]); ++i) {
                              ^~~~~~~~~~
3 errors generated.
*** [bsd_mouse.lo] Error code 1

make[3]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3/src
--- mouse.lo ---
mv -f .deps/mouse.Tpo .deps/mouse.Plo
1 error

make[3]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3/src
*** [all-recursive] Error code 1

make[2]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3
1 error

make[2]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3
*** [all] Error code 2

make[1]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3
1 error

make[1]: stopped in /usr/ports/x11-drivers/xf86-input-mouse/work/xf86-input-mouse-1.9.3
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/x11-drivers/xf86-input-mouse

===>>> make build failed for x11-drivers/xf86-input-mouse
===>>> Aborting update
Comment 1 Niclas Zeising freebsd_committer freebsd_triage 2018-10-25 15:18:44 UTC
I believe the change that caused this has been reverted.  Can you try to update to FreeBSD at least past r339668 or at least pull the changes from that revision and try again?
Thank you!
Regards
Niclas
Comment 2 George 2018-10-25 15:49:04 UTC
Ok, I'm try now and write results here!
Comment 3 Warner Losh freebsd_committer freebsd_triage 2018-10-25 16:04:54 UTC
I added back the constants that I was sure were unused after the first appearance of a problem. I'll do a full exp run after the release to sort that out. But for now, this should be fine. Try again after updating and let me know.
Comment 4 George 2018-10-26 04:43:29 UTC
Yes,  Niclas Zeising, on r339731 it builds fine. Thanks for point!