Re: error: `BIOCVERSION' was not declared in this scope

Volker Ruppert <[email protected]>
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <[email protected]>
Hi!

> First, is it correct that almost all of the features in Bochs are disabled by
> default?  I tried to run "./configure && make" which worked, but then Bochs
> exited complaining the specified CPU was invalid.  Is it correct that you have
> to specify a dozen or so --enable lines to configure?  Most projects seem to
> enable everything by default and let you disable what you don't need, so I'm a
> bit confused as to whether Bochs is the opposite to this or whether I'm doing
> something wrong.

Currently the defaults for configure option can be found in our user 
documentation only (compiling.html), We should really add them to output 
of 'configure --help'. In addition to this, some default settings should 
be changed (e.g. PCI).


> However doing this, I then get a compile error:
>
> $ ./configure --enable-idle-hack --enable-plugins --enable-a20-pin
> --enable-cpu-level=6 --enable-ne2000 --enable-pci --enable-usb
> --enable-repeat-speedups --enable-fast-function-calls
> --enable-handlers-chaining --enable-gdb-stub --enable-iodebug
> --enable-readline --enable-cdrom --enable-sb16 --with-all-libs && make
>
> eth_fbsd.cc: In constructor `bx_fbsd_pktmover_c::bx_fbsd_pktmover_c(const
> char*, const char*, eth_rx_handler_t, eth_rx_status_t, bx_devmodel_c*, const
> char*)':
> eth_fbsd.cc:155:22: error: aggregate
> `bx_fbsd_pktmover_c::bx_fbsd_pktmover_c(const char*, const char*,
> eth_rx_handler_t, eth_rx_status_t, bx_devmodel_c*, const char*)::bpf_version
> bv' has incomplete type and cannot be defined
> eth_fbsd.cc:176:27: error: `BIOCVERSION' was not declared in this scope

This is caused by the lowlevel networking support designed for FreeBSD. 
The configure script finds the header file 'net/bpf.h' and turns it on. 
This file doesn't seem to contain the expected definitions for libpcap. 
Unfortunately the active developers have no access to FreeBSD, so we can 
only give you some hints.

- If you don't need networking support, remove the NE2000 configure switch
- If want networking support and you are not on FreeBSD, edit config.h 
and set BX_NETMOD_FBSD to 0.

--
Thanks

Volker


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
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.