Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12766 - bochs 2.0 ebuild
Summary: bochs 2.0 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-27 00:21 UTC by Bret Towe
Modified: 2003-09-19 09:41 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bochs-2.0.ebuild (bochs-2.0.ebuild,2.50 KB, text/plain)
2002-12-27 00:21 UTC, Bret Towe
Details
bochs 2.0.2 ebuild (bochs-2.0.2.ebuild,1.51 KB, application/octet-stream)
2003-02-07 17:56 UTC, Ewen Cheslack-Postava
Details
enhanced (imho) ebuild for bochs (bochs-2.0.2.ebuild,1.54 KB, text/plain)
2003-03-07 13:41 UTC, Jeremy Johnson
Details
bochs 2.0.2 ebuild diff (bochs-2.0.2.ebuild.diff,2.87 KB, text/plain)
2003-03-07 13:43 UTC, Jeremy Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bret Towe 2002-12-27 00:21:11 UTC
since i havent seen anything yet i threw one together that includes some(all) of
the new features i havent fully tested this out since im on dialup im having to
slowly wait for wxGTK to download
im fairly certian it should work tho
Comment 1 Bret Towe 2002-12-27 00:21:39 UTC
Created attachment 6773 [details]
bochs-2.0.ebuild
Comment 2 Thomas Raschbacher gentoo-dev 2002-12-27 14:36:19 UTC
ok i'll have a look ;)
Comment 3 Bret Towe 2002-12-31 01:02:20 UTC
well i got wx installed and tried it with that the config part works well
i cant get it to boot anything but i didnt try hard tho
dont see why its doing it
Comment 4 Bart Lauwers (RETIRED) gentoo-dev 2003-01-02 15:49:12 UTC
Boot's my image...
Comment 5 Bret Towe 2003-01-02 22:36:35 UTC
yeah its prob just user error then
i havent used bochs in some time
Comment 6 Thomas Raschbacher gentoo-dev 2003-01-04 07:37:15 UTC
weird... i can't compile it ..
Comment 7 Bret Towe 2003-01-04 11:34:02 UTC
what kind of error(s) do you get?
Comment 8 Thomas Raschbacher gentoo-dev 2003-01-04 11:50:48 UTC
rm -fr .libs/libbx_ne2k.la .libs/libbx_ne2k.* .libs/libbx_ne2k.*
(cd .libs && rm -f libbx_sb16.so && ln -s libbx_sb16.so.0.0.0 libbx_sb16.so)
creating libbx_sb16.la
(cd .libs && rm -f libbx_sb16.la && ln -s ../libbx_sb16.la libbx_sb16.la)
(cd . && ln -s ne2k.lo ne2k.o)
(cd . && ln -s eth.lo eth.o)
(cd . && ln -s eth_null.lo eth_null.o)
(cd . && ln -s eth_fbsd.lo eth_fbsd.o)
(cd . && ln -s eth_linux.lo eth_linux.o)
(cd . && ln -s eth_tap.lo eth_tap.o)
(cd . && ln -s eth_tuntap.lo eth_tuntap.o)
i686-pc-linux-gnu-gcc -shared  ne2k.lo eth.lo eth_null.lo eth_fbsd.lo
eth_linux.lo eth_tap.lo eth_tuntap.lo   -Wl,-soname -Wl,libbx_ne2k.so.0 -o
.libs/libbx_ne2k.so.0.0.0
(cd .libs && rm -f libbx_ne2k.so.0 && ln -s libbx_ne2k.so.0.0.0 libbx_ne2k.so.0)
(cd .libs && rm -f libbx_ne2k.so && ln -s libbx_ne2k.so.0.0.0 libbx_ne2k.so)
creating libbx_ne2k.la
(cd .libs && rm -f libbx_ne2k.la && ln -s ../libbx_ne2k.la libbx_ne2k.la)
make[1]: Leaving directory `/var/tmp/portage/bochs-2.0/work/bochs-2.0/iodev'

!!! ERROR: app-emulation/bochs-2.0 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! (no error message)
Comment 9 Bart Lauwers (RETIRED) gentoo-dev 2003-01-04 17:39:06 UTC
Tom, what are your use flags that are relevant for this build? Maybe I can spot
the problem why it won't buid for you...
Comment 10 Thomas Raschbacher gentoo-dev 2003-01-05 00:35:44 UTC
i tried to enable everything that can be used..
Comment 11 Bret Towe 2003-01-05 01:05:55 UTC
perhaps it doesnt like emake
Comment 12 Thomas Raschbacher gentoo-dev 2003-01-05 03:18:26 UTC
i'll try when i get home again (10. 01. 2003)
Comment 13 Bret Towe 2003-01-24 17:02:28 UTC
2.0.2 is out the website isnt updated yet i read this on the announce mailing list
i hope to test it soon
Comment 14 Ewen Cheslack-Postava 2003-02-07 17:55:11 UTC
Okay, well, here is an ebuild for 2.0.2.  It is essentially just the 2.0 ebuild, 
but I put int --disable-docbook in the configure line so that it would actually 
work.  It compiles and runs fine for me.

I couldn't even get it to work with docbook when I compiled manually, so I either
something is wrong with docbook or something is wrong with their files.  Oh, and I
only tested on x86, somebody else will have to check ppc as I don't have access
to a ppc machine.

If this gets added to the tree and the docbook bug is fixed it could probably be
switched to stable as 2.0.2 seems pretty solid.

-ewen
Comment 15 Ewen Cheslack-Postava 2003-02-07 17:56:05 UTC
Created attachment 8018 [details]
bochs 2.0.2 ebuild
Comment 16 Ewen Cheslack-Postava 2003-02-08 01:45:43 UTC
ok, i take it back, something is still wrong with it, although it may just be
my computer.  in general everything works fine, but if I try to use the ne2k
emulation, I get an error on startup (i.e., during initialization of the vm,
before even the bios is loaded):

as a regular user I get
[NE2K ] eth_linux: could not open socket: Operation not permitted

but as root I get
Event type: PANIC
Device: [NE2K ]
Message: eth_linux: could not set socket filter: Protocol not available

If anybody has any idea about how this might be resolved I would be willing
to continue working on the ebuild.

-ewen
Comment 17 Bret Towe 2003-02-08 01:57:59 UTC
looks like your missing socket filtering from your kernel
you'll find it under networking options
Comment 18 Ewen Cheslack-Postava 2003-02-08 19:24:46 UTC
thanks, that was the cause of the problem

should a note be put into the ebuild?
Comment 19 Jeremy Johnson 2003-03-07 13:41:47 UTC
Created attachment 9098 [details]
enhanced (imho) ebuild for bochs

I have tweaked the bochs ebuild quite a bit to use many of the newer functions
(like emake and econf) that were added in portage 2.0.46-r12.  I have also
tried to add as many of the speedup features and enhancements for bochs as
well.
Comment 20 Jeremy Johnson 2003-03-07 13:43:42 UTC
Created attachment 9099 [details]
bochs 2.0.2 ebuild diff

Here is a diff for the bochs 2.0.2 ebuild that is in portage.  This should
patch it to look like the ebuild I posted above.  Enjoy!
Comment 21 Charles Lo 2003-03-07 17:58:50 UTC
Hello! I cannot emerge bochs too. 
Please help. 

# emerge info
Portage 2.0.47-r8 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-ben8 ppc
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/init.d /etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="libwww mitshm ppc gnome-libs gdbm berkdb slang java tcpd esd motif pam odbc samba gd plotutils pic xml2 lcms pda mozilla quicktime -3dnow -mmx -sse -3dfx -voodoo3 -matrox acpi apm -icc -icc-pgo pcmcia pnp cdr scanner usb cups slp -gpm
X dga opengl fbcon sdl xv directfb -kde -arts -qt -qtmt gnome gtkhtml gtk gtk2 bonobo gb gphoto2 imlib ncurses readline -svga gif jpeg png tiff wmf mpeg alsa -oss dvd xmms oggvorbis encode ssl crypt truetype pdflib perl python nls cjk zlib
leim mule"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char"
CXXFLAGS="-Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache userpriv"
 

cd gui && \
make  libgui.a
make[1]: Entering directory `/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/gui'
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  keymap.cc -o keymap.o
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  gui.cc -o gui.o
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  siminterface.cc -o siminterface.o
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  textconfig.cc -o textconfig.o
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  x.cc -o x.o
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  sdl.cc -o sdl.o
g++ -c  -I.. -I./.. -I../iodev -I./../iodev -I../instrument/stubs -I./../instrument/stubs -Os -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/X11R6/include `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  wx.cc -o wx.o
In file included from wx.cc:57:
wxdialog.h:41: default argument for `wxString complaint' has type `const
   char[17]'
wxdialog.h:44: default argument for `wxString prompt' has type `const char[14]'
In file included from wx.cc:59:
wxmain.h:141: invalid type `const char[6]' for default argument to `const
   wxString&'
wx.cc: In member function `void MyPanel::ToggleMouse(bool)':
wx.cc:184: conversion from `const char[234]' to `wxString' is ambiguous
/usr/include/wx/string.h:303: candidates are: wxString::wxString(wchar_t,
   unsigned int = 1) <near match>
/usr/include/wx/string.h:281:                 wxString::wxString(int) <near
   match>
wx.cc:185: could not convert `"Mouse Capture Enabled"' to `const wxString&'
/usr/include/wx/msgdlg.h:30: in passing argument 2 of `int wxMessageBox(const
   wxString&, const wxString&, long int, wxWindow*, int, int)'
wx.cc: In member function `virtual int bx_wx_gui_c::set_clipboard_text(char*,
   unsigned int)':
wx.cc:1234: call of overloaded `wxString(char*&, Bit32u&)' is ambiguous
/usr/include/wx/string.h:822: candidates are: wxString::wxString(const void*,
   const void*) <near match>
/usr/include/wx/string.h:303:                 wxString::wxString(wchar_t,
   unsigned int = 1) <near match>
make[1]: *** [wx.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/gui'
make: *** [gui/libgui.a] Error 2
 
!!! ERROR: app-emulation/bochs-2.0.2 failed.
!!! Function src_compile, Line 47, Exitcode 2
!!! (no error message)
 
Comment 22 Bret Towe 2003-03-07 18:36:26 UTC
looks like its wx related
do you have the latest ver of wxGTK installed?
Comment 23 Charles Lo 2003-03-08 16:52:31 UTC
Yes, my wxGTK version is 2.4.0
Comment 24 Theofilos Intzoglou 2003-03-17 11:05:42 UTC
I have the same problem with wxGTK version 2.4.0. However bochs 2.0.2 compile just fine with wxGTK version 2.2.9-r1. Probably a compatibility issue.

#emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r0)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) XP 1700+
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.linux.no/ http://mirrors.sunsite.dk/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="crypt cups encode libg++ mikmod pdflib xv gtkhtml gdbm berkdb slang tetex aalib nas bonobo svga ggi guile mysql pam ssl esd gtk qt motif cdr X x86 oss 3dnow apm avi gif gpm jpeg mmx mpeg ncurses nls oggvorbis opengl png python quicktime readline sdl truetype zlib xmms xml2 ungif java tcpd perl imlib mozilla -gnome -kde -alsa -kdelibs -arts gtk2 xfs tiff ogg vorbis dga -doc dvd -libwww mbox samba pic -spell sse tcltk usb wmf mad"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
Comment 25 Andrew Thompson 2003-04-06 16:06:02 UTC
If you use the latest ebuild in the portage tree and the wxGTK ebuild from http://bugs.gentoo.org/show_bug.cgi?id=16681 it compiles, or at least it did for me. I couldn't get it to compile with the wxGTK ebuild that is in portage currently.

Vag
Comment 26 Mark Gilbert 2003-07-10 12:23:39 UTC
WFM with wxGTK-2.4.1 in portage, dep needs to be updated for bochs.
Comment 27 Alastair Tse (RETIRED) gentoo-dev 2003-07-10 14:07:04 UTC
well, the wxGTK dep is already there, is there something else that needs to go in?

lu_zero, you've handled this ebuild before, what do you think?
Comment 28 Luca Barbato gentoo-dev 2003-07-10 14:45:27 UTC
ok, people having problem with wxGTK please emerge it again and the problem with bochs will disappear

there is already an ebuild for bochs 2.0.2 btw

closing the bug,

reopen if there are other issues 
Comment 29 Evan Langlois 2003-09-12 21:44:47 UTC
I think 
Trying to bochs 2.0.2 using gcc (GCC) 3.3.1 20030904 (Gentoo Linux 3.3.1-r1, propolice)

POrtage Ebuild says ...

fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void
   (*)(bxInstruction_c*)'
g++ -c  -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -mcpu=pentium -O3 -fomit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   `sdl-config --cflags` `wx-config --cxxflags` `gtk-config --cflags`  keyboard.cc -o keyboard.o
make[1]: *** [fetchdecode.o] Error 1
make[1]: Leaving directory `/usr/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/cpu'
make: *** [cpu/libcpu.a] Error 2
make: *** Waiting for unfinished jobs....


Ebuild from this page gives ...

In file included from ../bochs.h:37,
                 from init.cc:29:
../config.h:411:4: #error IDLE_HACK will only work with the X11 gui. Correct configure args and retry.
In file included from ../bochs.h:37,
                 from devices.cc:28:
../config.h:411:4: #error IDLE_HACK will only work with the X11 gui. Correct configure args and retry.
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/usr/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/iodev'make: *** [iodev/libiodev.a] Error 2
make: *** Waiting for unfinished jobs....


Manual configure and make gives ...

fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void
   (*)(bxInstruction_c*)'
fetchdecode.cc:210: error: brace-enclosed initializer used to initialize `void
   (*)(bxInstruction_c*)'
make[1]: *** [fetchdecode.o] Error 1
make[1]: Leaving directory `/usr/tmp/portage/bochs-2.0.2/work/bochs-2.0.2/cpu'
make: *** [cpu/libcpu.a] Error 2
Comment 30 Gabe Arnold 2003-09-19 09:41:09 UTC
Fix for that can be found here:
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2003-July/008114.html
It's kind of a weird patch but I'm sure you'll figure it out.