Bug 247715 - Problem Bhyve sound build FreeBSD-Releng-11.4 r362840
Summary: Problem Bhyve sound build FreeBSD-Releng-11.4 r362840
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-02 12:33 UTC by didier.castellacci
Modified: 2020-07-02 12:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description didier.castellacci 2020-07-02 12:33:11 UTC
Hello

I followed the procedure of the site "https://aliov.org/index.php/2020/03/23/bhyve-hd-audio-in-freebsd-12-1/"

I wanted to do it for freebsd-11.4

and I'm having problems with make here is the error message

Thank You
Didier


svn co https://svn.FreeBSD.org/base/head freebsd-head
$ cd  freebsd-head
$ svn diff -c 349335 > patch1.diff
$ svn diff -c 350255 > patch2.diff

cd /usr/src/usr.sbin/bhyve
# patch -Np2 -i $HOME/freebsd-head/patch1.diff
# patch -Np2 -i $HOME/freebsd-head/patch2.diff
# make


sudo make                                                                                                
echo bhyve.full: /usr/lib/libc.a /usr/lib/libvmmapi.a /usr/lib/libmd.a /usr/lib/libpthread.a /usr/lib/libz.a /us         r/lib/libcrypto.a >> .depend                                                                                             
Warning: Object directory not changed from original /data/src/src/usr/src/usr.sbin/bhyve                                 
cc -O2 -pipe   -I/data/src/src/usr/src/sys -DINET -DINET6 -I/data/src/src/usr/src/sys/dev/e1000 -I/data/src/src/         usr/src/sys/dev/mii -I/data/src/src/usr/src/sys/dev/usb/controller -g -MD  -MF.depend.atkbdc.o -MTatkbdc.o -std=         gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-si         gn -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -         Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-pac         ked-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused-arguments  -c atkbdc.c -o atkbdc.o         
cc -O2 -pipe   -I/data/src/src/usr/src/sys -DINET -DINET6 -I/data/src/src/usr/src/sys/dev/e1000 -I/data/src/src/         usr/src/sys/dev/mii -I/data/src/src/usr/src/sys/dev/usb/controller -g -MD  -MF.depend.acpi.o -MTacpi.o -std=gnu9         9 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -         Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-         parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-         member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused-arguments  -c acpi.c -o acpi.o                 
cc -O2 -pipe   -I/data/src/src/usr/src/sys -DINET -DINET6 -I/data/src/src/usr/src/sys/dev/e1000 -I/data/src/src/         usr/src/sys/dev/mii -I/data/src/src/usr/src/sys/dev/usb/controller -g -MD  -MF.depend.audio.o -MTaudio.o -std=gn         u99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign          -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wn         o-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packe         d-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused-arguments  -c audio.c -o audio.o             
audio.c:109:6: error: implicit declaration of function 'caph_rights_limit' is invalid in C99                             
      [-Werror,-Wimplicit-function-declaration]                                                                          
        if (caph_rights_limit(aud->fd, &rights) == -1)                                                                   
            ^                                                                                                           
audio.c:109:6: note: did you mean 'cap_rights_limit'?                                                                    
/data/src/src/usr/src/sys/sys/capsicum.h:398:5: note: 'cap_rights_limit' declared here                                   
int cap_rights_limit(int fd, const cap_rights_t *rights);                                                                
    ^                                                                                                                   
audio.c:111:6: error: implicit declaration of function 'caph_ioctls_limit' is invalid in C99                             
      [-Werror,-Wimplicit-function-declaration]                                                                          
        if (caph_ioctls_limit(aud->fd, cmds, nitems(cmds)) == -1)                                                        
            ^                                                                                                           
audio.c:111:6: note: did you mean 'cap_ioctls_limit'?                                                                    
/data/src/src/usr/src/sys/sys/capsicum.h:408:5: note: 'cap_ioctls_limit' declared here                                   
int cap_ioctls_limit(int fd, const cap_ioctl_t *cmds, size_t ncmds);                                                     
    ^                                                                                                                   
2 errors generated.                                                                                                      
*** Error code 1                                                                                                         

Stop.                                                                                                                    
make: stopped in /data/src/src/usr/src/usr.sbin/bhyve