Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jul 2020 03:16:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 247863] devel/sdl20: build error with HIDAPI - "Need a hid.c for this platform"
Message-ID:  <bug-247863-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247863

            Bug ID: 247863
           Summary: devel/sdl20: build error with HIDAPI - "Need a hid.c
                    for this platform"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: amdmi3@FreeBSD.org
          Reporter: edenist-fbz@edenist.net
          Assignee: amdmi3@FreeBSD.org
             Flags: maintainer-feedback?(amdmi3@FreeBSD.org)

Building with poudriere, version 2.0.10_1 was building fine with the same
options. The move to 2.0.12 is now causing the build to fail on SDL_hidapi.c
with "Need a hid.c for this platform!"

Full log at: https://bsd.to/AtsB


***

Relevant error and options:

/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.12/src/hidapi/SDL_hidapi.c:101=
:2:
error: Need a hid.c for this platform!
#error Need a hid.c for this platform!
 ^
/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.12/src/hidapi/SDL_hidapi.c:452=
:9:
warning: unused variable 'err' [-Wunused-variable]
    int err;
        ^
/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.12/src/hidapi/SDL_hidapi.c:547=
:43:
warning: unused variable 'last' [-Wunused-variable]
    struct hid_device_info *devs =3D NULL, *last =3D NULL, *new_dev;
                                          ^
/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.12/src/hidapi/SDL_hidapi.c:547=
:57:
warning: unused variable 'new_dev' [-Wunused-variable]
    struct hid_device_info *devs =3D NULL, *last =3D NULL, *new_dev;
                                                        ^
/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.12/src/hidapi/SDL_hidapi.c:625=
:17:
warning: unused variable 'pDevice' [-Wunused-variable]
    hid_device *pDevice =3D NULL;
                ^
/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.12/src/hidapi/SDL_hidapi.c:652=
:17:
warning: unused variable 'pDevice' [-Wunused-variable]
    hid_device *pDevice =3D NULL;
                ^
5 warnings and 1 error generated.
gmake[1]: *** [Makefile:722: build/SDL_hidapi.lo] Error 1
gmake[1]: Leaving directory '/wrkdirs/usr/ports/devel/sdl20/work/SDL2-2.0.1=
2'
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/sdl20
=3D>> Cleaning up wrkdir
=3D=3D=3D>  Cleaning for sdl2-2.0.12
build of devel/sdl20 | sdl2-2.0.12 ended at Wed Jul  8 22:29:07 AEST 2020
build time: 442834:12:35
!!! build failure encountered !!!


---Begin OPTIONS List---
=3D=3D=3D> The following configuration options are available for sdl2-2.0.1=
2:
     ALSA=3Doff: Audio output via the ALSA audio architecture
     ASM=3Don: Use optimized assembly code
     DLOPEN=3Don: Use dlopen for loading 3rd party libraries
     HIDAPI=3Don: Use HIDAPI for low level joystick drivers
     JACK=3Doff: Audio output via the JackD sound server
     NAS=3Doff: Audio output via the Network Audio System
     OSS=3Don: Audio output via the Open Sound System
     PTHREADS=3Don: Use POSIX threads for multi-threading
     PULSEAUDIO=3Doff: Audio output via the PulseAudio sound server
     SAMPLERATE=3Doff: Audio rate conversion via libsamplerate
     SDL_ATOMIC=3Don: Enable the SDL Atomic subsystem
     SDL_AUDIO=3Don: Enable the SDL Audio subsystem
     SDL_CPUINFO=3Don: Enable the SDL CPUinfo subsystem
     SDL_EVENTS=3Don: Enable the SDL Events subsystem
     SDL_FILE=3Don: Enable the SDL File subsystem
     SDL_HAPTIC=3Don: Enable the SDL Haptic subsystem
     SDL_JOYSTICK=3Don: Enable the SDL Joystick subsystem
     SDL_LOADSO=3Don: Enable the SDL Loadso subsystem
     SDL_POWER=3Don: Enable the SDL Power subsystem
     SDL_RENDER=3Don: Enable the SDL Render subsystem
     SDL_THREADS=3Don: Enable the SDL Threads subsystem
     SDL_TIMERS=3Don: Enable the SDL Timers subsystem
     SDL_VIDEO=3Don: Enable the SDL Video subsystem
     SNDIO=3Doff: Sndio audio support
     UDEV=3Don: Use udev for input device detection
     VIDEO_KMSDRM=3Don: KMSDRM display support
     VIDEO_OPENGL=3Don: OpenGL rendering support
     VIDEO_OPENGLES2=3Don: OpenGL ES 2.x rendering support
     VIDEO_WAYLAND=3Don: Wayland display support
     VIDEO_X11=3Don: X11 display support
=3D=3D=3D> Use 'make config' to modify these settings
---End OPTIONS List---

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247863-7788>