Building qemu fails on Solaris 11.4
Host environment
- Operating system: Solaris 11.4
- OS/kernel version: SunOS 5.11 11.4.42.111.0 sun4v sparc sun4v non-virtualized
- Architecture: SPARC
- QEMU flavor: qemu-system-hppa
- QEMU version: QEMU emulator version 8.2.50 (v8.2.0-414-g0c1eccd3-dirty)
- QEMU command line:
- Compiler: gcc (GCC) 13.2.0
Description of problem
Building qemu-system-hppa on Solaris 11.4 (details above) fails because in qga/commands-posix.c
(1) Solaris does not have net/ethernet.h
#if defined(__NetBSD__) || defined(__OpenBSD__)
#include <net/if_arp.h>
#include <netinet/if_ether.h>
#else
#include <net/ethernet.h>
#endif
Solaris does have net/if_arp.h and netinet/if_ether.h
(2) Solaris does not define ETHER_ADDR_LEN, instead it defines ETHERADDRL
Steps to reproduce
- '../configure' '--disable-docs' '--disable-rdma' '--target-list=hppa-softmmu'
- gmake