/usr/ports/emulators/bochs on -CURRENT
# grep BOCHS /etc/make.conf WITH_BOCHS_CPU_LEVEL= 6 WITH_BOCHS_PROCESSORS= 1 # uname -v FreeBSD 5.0-CURRENT #34: Wed May 8 02:31:46 CEST 2002 [...] # cd /usr/ports/emulators/bochs make [...] gmake[1]: Entering directory `/usr/ports/emulators/bochs/work/bochs-1.4/iodev' [...] c++ -c -O2 -pipe -march=pentiumpro -fno-rtti -fno-exceptions -fomit-frame-pointer -I/usr/X11R6/include -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs cdrom.cc -o cdrom.o In file included from cdrom.cc:40: /usr/include/arpa/inet.h:102: conflicting types for `typedef __uint32_t socklen_t' ../osdep.h:105: previous declaration as `typedef int socklen_t' gmake[1]: *** [cdrom.o] Error 1 gmake[1]: Leaving directory `/usr/ports/emulators/bochs/work/bochs-1.4/iodev' gmake: *** [iodev/libiodev.a] Error 2 *** Error code 2 I tryed with cdrom support disabled in Makefile and it go forward: # diff -u0 Makefile.orig Makefile --- Makefile.orig Thu May 16 09:48:29 2002 +++ MakefileThu May 16 10:32:58 2002 @@ -34 +34 @@ -CONFIGURE_ARGS=--enable-cdrom \ +CONFIGURE_ARGS=--disable-cdrom \ # make clean make [...] c++ -c -O2 -pipe -march=pentiumpro -fno-rtti -fno-exceptions -fomit-frame-pointer -I/usr/X11R6/include-I. -I./. -Iinstrument/stubs -I./instrument/stubs logio.cc -o logio.o c++ -c -O2 -pipe -march=pentiumpro -fno-rtti -fno-exceptions -fomit-frame-pointer -I/usr/X11R6/include-I. -I./. -Iinstrument/stubs -I./instrument/stubs main.cc -o main.o main.cc: In function `int bx_init_hardware()': main.cc:1177: `i' undeclared (first use this function) main.cc:1177: (Each undeclared identifier is reported only once main.cc:1177: for each function it appears in.) gmake: *** [main.o] Error 1 *** Error code 2 I (badly?) hacked main.cc to remove line 1177 and it compile fine. # diff -u0 main.cc.orig main.cc --- main.cc.origWed Mar 27 17:05:14 2002 +++ main.cc Thu May 16 11:02:38 2002 @@ -1177 +1177 @@ - BX_CPU(0)-local_apic.set_id (i); + // BX_CPU(0)-local_apic.set_id (i); I'm not able to check if it run until 19:00 CEST because I compile it from a remote ssh. And I think that commenting previous line is really bad :-) Can you (help me to) check what is wrong (my config, my -CURRENT, port, ...)? TIA, Riccardo. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message
Re: /usr/ports/emulators/bochs on -CURRENT
On Thu, May 16, 2002 at 01:14:01PM -0400, Mike Barcroft wrote: Riccardo Torrini [EMAIL PROTECTED] writes: # cd /usr/ports/emulators/bochs make [...] gmake[1]: Entering directory `/usr/ports/emulators/bochs/work/bochs-1.4/iodev' [...] c++ -c -O2 -pipe -march=pentiumpro -fno-rtti -fno-exceptions -fomit-frame-pointer -I/usr/X11R6/include -I.. -I./.. -I../instrument/stubs -I./../instrument/stubs cdrom.cc -o cdrom.o In file included from cdrom.cc:40: /usr/include/arpa/inet.h:102: conflicting types for `typedef __uint32_t socklen_t' ../osdep.h:105: previous declaration as `typedef int socklen_t' gmake[1]: *** [cdrom.o] Error 1 gmake[1]: Leaving directory `/usr/ports/emulators/bochs/work/bochs-1.4/iodev' gmake: *** [iodev/libiodev.a] Error 2 *** Error code 2 The problem appears to be that osdep.h is defining types it should not be defining. Software should include system headers to get new types, not try and out-smart the OS by defining its own (possibly incorrect) types. There is a patch in gnats to fix this error, but it still has errors, pat@ is currently looking at this and I'm building patches for him since I have a -current machine Best regards, Mike Barcroft To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message -- David W. Chapman Jr. [EMAIL PROTECTED] Raintree Network Services, Inc. www.inethouston.net [EMAIL PROTECTED] FreeBSD Committer www.FreeBSD.org To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message