[Bug 242678] graphics/drm-current-kmod: fails to build after r355732

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242678

            Bug ID: 242678
           Summary: graphics/drm-current-kmod: fails to build after
                    r355732
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

Trying to build graphics/drm-current-kmod on FreeBSD 13.0-CURRENT r355689 with
/usr/src updated to r355843:

# cd /usr/ports/graphics/drm-current-kmod
# make build
$ cd /usr/ports/graphics/drm-current-kmod
$ su root -c "make build"
...
--- drm_os_freebsd.o ---
/usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff/drivers/gpu/drm/drm_os_freebsd.c:47:3:
error: implicit declaration of function 'untimeout' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                untimeout(clear_debug_func, NULL, reset_debug_log_handle);
                ^
/usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff/drivers/gpu/drm/drm_os_freebsd.c:57:28:
error: implicit declaration of function 'timeout' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
                reset_debug_log_handle = timeout(clear_debug_func, NULL,
                                         ^
/usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff/drivers/gpu/drm/drm_os_freebsd.c:57:26:
error: assigning to 'struct callout_handle' from incompatible type 'int'
                reset_debug_log_handle = timeout(clear_debug_func, NULL,
                                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
*** [drm_os_freebsd.o] Error code 1

make[3]: stopped in
/usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff/drm
1 error

make[3]: stopped in
/usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff/drm
*** [all_subdir_drm] Error code 2

make[2]: stopped in /usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff
1 error

make[2]: stopped in /usr/ports/graphics/drm-current-kmod/work/kms-drm-f9869ff
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/drm-current-kmod
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/drm-current-kmod

I believe this is caused by r355732[1] which deprecated timeout(9) interfaces.

[1] https://svnweb.freebsd.org/base?view=revision&revision=355732

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.