Bochs v 2.1.1 problems

Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: .../gui/siminterface.h: At top level: .../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic :slight_smile:

Cheers,
-RK


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Colin Burgess <cburgess@qnx.com> wrote:

Go and make sure he doesn’t do stupid things like

extern “C” {
#include <string.h
}

(it might be indirect)

Our string.h shouldn’t be wrapped in such nonsense.

Of course they do that :slight_smile:

Removed.

Now only get the last one:

[wintermute@ttyp1] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:96, from devices.cc:28: .../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} (*)[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2

:slight_smile:

Thanks,
-RK

Robert Krten wrote:
Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: ../gui/siminterface.h: At top level: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic > :slight_smile:

Cheers,
-RK

\

cburgess@qnx.com


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Go and make sure he doesn’t do stupid things like

extern “C” {
#include <string.h>
}

(it might be indirect)

Our string.h shouldn’t be wrapped in such nonsense.

Robert Krten wrote:

Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: ../gui/siminterface.h: At top level: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic > :slight_smile:

Cheers,
-RK


cburgess@qnx.com

:v)

Edit setjmp.h and make the declaration of jmp_buf non anonymous, ie

typedef struct _jmp_buf {

} jmp_buf[1];

Robert Krten wrote:

Colin Burgess <> cburgess@qnx.com> > wrote:

Go and make sure he doesn’t do stupid things like


extern “C” {
#include <string.h
}


(it might be indirect)


Our string.h shouldn’t be wrapped in such nonsense.


Of course they do that > :slight_smile:

Removed.

Now only get the last one:

[wintermute@ttyp1] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:96, from devices.cc:28: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} (*)[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2

:slight_smile:

Thanks,
-RK


Robert Krten wrote:

Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: ../gui/siminterface.h: At top level: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic > :slight_smile:

Cheers,
-RK


\

cburgess@qnx.com


cburgess@qnx.com

Colin Burgess <cburgess@qnx.com> wrote:

:v)

Edit setjmp.h and make the declaration of jmp_buf non anonymous, ie

typedef struct _jmp_buf {

} jmp_buf[1];

Hmm… Have you done this before? :slight_smile:

That worked…

Now. Should I go and tell the bochs people that the extern “C” thing is just plain wrong?
Any chance they’ll change the world for me? :slight_smile:

Here’s another one:
/opt/X11R6/include/X11/Xos.h:224: warning: `FD_SETSIZE’ redefined
/usr/include/sys/select.h:23: warning: this is the location of the previous definition

I assume this is ok; but shouldn’t the two header files be includable in the same program?
(Again, naively asking; I don’t generally do “X” nor “select()” :slight_smile:)

Hmm… that appears to have been it, apart from a missing “-lsocket” in the top level Makefile.

Now I’m off to try it…

Cheers,
-RK

Robert Krten wrote:
Colin Burgess <> cburgess@qnx.com> > wrote:

Go and make sure he doesn’t do stupid things like


extern “C” {
#include <string.h
}


(it might be indirect)


Our string.h shouldn’t be wrapped in such nonsense.


Of course they do that > :slight_smile:

Removed.

Now only get the last one:

[wintermute@ttyp1] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:96, from devices.cc:28: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} (*)[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2

:slight_smile:

Thanks,
-RK


Robert Krten wrote:

Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: ../gui/siminterface.h: At top level: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic > :slight_smile:

Cheers,
-RK


\

cburgess@qnx.com


\

cburgess@qnx.com


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Any chance they’ll change the world for me? > :slight_smile:

Nope, and they won’t even talk about it. I have asked them why they do
this and they won’t answer. :wink:

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Robert Krten <rk@parse.com> wrote:

Colin Burgess <> cburgess@qnx.com> > wrote:
:v)

Edit setjmp.h and make the declaration of jmp_buf non anonymous, ie

typedef struct _jmp_buf {

} jmp_buf[1];

Hmm… Have you done this before? > :slight_smile:

That worked…

Now. Should I go and tell the bochs people that the extern “C” thing is just plain wrong?
Any chance they’ll change the world for me? > :slight_smile:

Here’s another one:
/opt/X11R6/include/X11/Xos.h:224: warning: `FD_SETSIZE’ redefined
/usr/include/sys/select.h:23: warning: this is the location of the previous definition

I assume this is ok; but shouldn’t the two header files be includable in the same program?
(Again, naively asking; I don’t generally do “X” nor “select()” > :slight_smile:> )

Hmm… that appears to have been it, apart from a missing “-lsocket” in the top level Makefile.

Now I’m off to try it…

This should be a “blast from the past”:


[wintermute@ttyp1] cat snapshot.txt
Aug 11 5:22:41 pm
UUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUU UUUUUUUUUUU UUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUUUU
UUUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUU
If you are a new user, type qnx and press Enter at the Login prompt.
0307
QNX Version 2.20 Node 0 $tty0 Local Time: 11-Aug-04 5:22:38 pm
Copyright (c) Quantum Software Systems Ltd. 1983,1989
Login:

:slight_smile:

Cheers,
-RK

Robert Krten wrote:
Colin Burgess <> cburgess@qnx.com> > wrote:

Go and make sure he doesn’t do stupid things like


extern “C” {
#include <string.h
}


(it might be indirect)


Our string.h shouldn’t be wrapped in such nonsense.


Of course they do that > :slight_smile:

Removed.

Now only get the last one:

[wintermute@ttyp1] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:96, from devices.cc:28: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} (*)[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2

:slight_smile:

Thanks,
-RK


Robert Krten wrote:

Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: ../gui/siminterface.h: At top level: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic > :slight_smile:

Cheers,
-RK


\

cburgess@qnx.com


\

cburgess@qnx.com


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector > http://www.parse.com/~pdp8/


[If replying via email, you’ll need to click on the URL that’s emailed to you
afterwards to forward the email to me – spam filters and all that]
Robert Krten, PDP minicomputer collector http://www.parse.com/~pdp8/

Guess it’s a Black Bochs scenario, eh? ;v)

Chris McKillop wrote:

Any chance they’ll change the world for me? > :slight_smile:



Nope, and they won’t even talk about it. I have asked them why they do
this and they won’t answer. > :wink:

chris


cburgess@qnx.com

Robert Krten wrote:

Colin Burgess <> cburgess@qnx.com> > wrote:

:v)


Edit setjmp.h and make the declaration of jmp_buf non anonymous, ie


typedef struct _jmp_buf {

} jmp_buf[1];


Hmm… Have you done this before? > :slight_smile:

That worked…

Now. Should I go and tell the bochs people that the extern “C” thing is just plain wrong?
Any chance they’ll change the world for me? > :slight_smile:

Here’s another one:
/opt/X11R6/include/X11/Xos.h:224: warning: `FD_SETSIZE’ redefined
/usr/include/sys/select.h:23: warning: this is the location of the previous definition

I assume this is ok; but shouldn’t the two header files be includable in the same program?
(Again, naively asking; I don’t generally do “X” nor “select()” > :slight_smile:> )

It depends. redefining FD_SETSIZE is ok, but it should be consistent
across all your modules.

Hmm… that appears to have been it, apart from a missing “-lsocket” in the top level Makefile.

Now I’m off to try it…

Cheers,
-RK


Robert Krten wrote:

Colin Burgess <> cburgess@qnx.com> > wrote:


Go and make sure he doesn’t do stupid things like


extern “C” {
#include <string.h
}


(it might be indirect)


Our string.h shouldn’t be wrapped in such nonsense.


Of course they do that > :slight_smile:

Removed.

Now only get the last one:

[wintermute@ttyp1] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:96, from devices.cc:28: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} (*)[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2

:slight_smile:

Thanks,
-RK



Robert Krten wrote:


Naively downloaded bochs from bochs.sourceforge.net, typed “configure”,
and then “make”.

Got the following:

[wintermute@ttypc] make
cd iodev &&
make libiodev.a
make[1]: Entering directory /source/lang/bochs/bochs-2.1.1/iodev' g++ -c -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES devices.cc -o devices.o In file included from ../bochs.h:82, from devices.cc:28: /usr/include/string.h: In function void * memchr(void *, int, unsigned int)’:
/usr/include/string.h:125: declaration of C function void * memchr(void *, int, unsigned int)' conflicts with /usr/include/string.h:49: previous declaration const void * memchr(const void *, int, unsigned int)’ here
/usr/include/string.h: In function void * memchr(void *, int, unsigned int)': /usr/include/string.h:127: passing const void *’ as argument 1 of memchr(void *, int, unsigned int)' discards qualifiers /usr/include/string.h: In function char * strchr(char *, int)’:
/usr/include/string.h:130: declaration of C function char * strchr(char *, int)' conflicts with /usr/include/string.h:50: previous declaration const char * strchr(const char *, int)’ here
/usr/include/string.h: In function char * strchr(char *, int)': /usr/include/string.h:132: passing const char *’ as argument 1 of strchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strpbrk(char *, const char *)’:
/usr/include/string.h:135: declaration of C function char * strpbrk(char *, const char *)' conflicts with /usr/include/string.h:51: previous declaration const char * strpbrk(const char *, const char *)’ here
/usr/include/string.h: In function char * strpbrk(char *, const char *)': /usr/include/string.h:137: passing const char *’ as argument 1 of strpbrk(char *, const char *)' discards qualifiers /usr/include/string.h: In function char * strrchr(char *, int)’:
/usr/include/string.h:140: declaration of C function char * strrchr(char *, int)' conflicts with /usr/include/string.h:52: previous declaration const char * strrchr(const char *, int)’ here
/usr/include/string.h: In function char * strrchr(char *, int)': /usr/include/string.h:142: passing const char *’ as argument 1 of strrchr(char *, int)' discards qualifiers /usr/include/string.h: In function char * strstr(char *, const char *)’:
/usr/include/string.h:145: declaration of C function char * strstr(char *, const char *)' conflicts with /usr/include/string.h:53: previous declaration const char * strstr(const char *, const char *)’ here
/usr/include/string.h: In function char * strstr(char *, const char *)': /usr/include/string.h:147: passing const char ’ as argument 1 of strstr(char *, const char *)' discards qualifiers In file included from ../bochs.h:94, from devices.cc:28: ../gui/siminterface.h: At top level: ../gui/siminterface.h:1315: non-local function void bx_simulator_interface_c::set_quit_context({anonymous struct} ()[1])’ uses anonymous type
make[1]: *** [devices.o] Error 1
make[1]: Leaving directory `/source/lang/bochs/bochs-2.1.1/iodev’
make: *** [iodev/libiodev.a] Error 2


Anyone have any suggestions? Once it says “.cc” on the extension I run away in panic > :slight_smile:

Cheers,
-RK


\

cburgess@qnx.com


\

cburgess@qnx.com


cburgess@qnx.com

Chris McKillop wrote:

Any chance they’ll change the world for me? > :slight_smile:

Nope, and they won’t even talk about it. I have asked them why they do
this and they won’t answer. > :wink:

“Our broken headers make bochs more portable to the only platform we
care about, Linux!”


Chris Herborth (cherborth@qnx.com)
Never send a monster to do the work of an evil scientist.

Robert Krten wrote:

This should be a “blast from the past”:

[wintermute@ttyp1] cat snapshot.txt
Aug 11 5:22:41 pm
UUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUU UUUUUUUUUUU UUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUUUU
UUUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUU

Aiee! High school with ICON computers flashback!

I think the QNX logo on those was graphical though, and permanently
burned into the amber monochrome monitors.

You could ‘cat’ graphics files to the display, which was pretty cool.
To the display of any node on the network, actually. Um, not that we
ever abused that or anything…


Chris Herborth (cherborth@qnx.com)
Never send a monster to do the work of an evil scientist.

When I was a customer our client login screens were modeled on the same
QNX logo.

Ah, brings back memories…

Chris Herborth wrote:

Robert Krten wrote:

This should be a “blast from the past”:

[wintermute@ttyp1] cat snapshot.txt
Aug 11
5:22:41 pm
UUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUU
UUUUUUUUUUU UUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUU
UUUUUUUUUUUUUUUUUU
UUUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUUUUUU
UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUUUUUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUUU
UUUUUUUUUU UUUUUUUUUUUUU


Aiee! High school with ICON computers flashback!

I think the QNX logo on those was graphical though, and permanently
burned into the amber monochrome monitors.

You could ‘cat’ graphics files to the display, which was pretty cool. To
the display of any node on the network, actually. Um, not that we ever
abused that or anything…


cburgess@qnx.com