Re: bochs trunk build error with VC++2010 Express

"Stanislav" <[email protected]> Sun, 30 Mar 2014 19:43:04 +0300
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <[email protected]>
Hello,

Volker replied you in the discussion board on the same day.

I have fixed this issue yesterday, so please try the new SVN snapshot. Since
Bochs is a portable application, the code also contains POSIX-like stuff.
The platform-specific stuff usually appears in the osdep.* files. To reduce
dependecies I haven't included all of the Bochs stuff in the slirp module.
For the TFTP part I have no added some workarounds.
Thanks Volker

-----Original Message-----
From: Mark Tague [mailto:[email protected]] 
Sent: Sunday, March 30, 2014 6:10 PM
To: [email protected]
Subject: [Bochs-developers] bochs trunk build error with VC++2010 Express

Hi,

This message was originally sent 03/26/2014. I am resending since I had not
received a reply nor seen any related posting on the mailing list.
I am assuming that the only way for someone to see this is to be signed up
for the mailing list, so I am now signed up and not sure if confirmation
went through.

I wish to report a build error (bug) when building recent SVN trunk
download.
Error:
	"C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\BIN\nmake.exe"
 libnetwork.a
	   ...
	cl /c  -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs
-I./../../instrument/stubs /nologo /MT /W3 /EHs-c- /DNDEBUG /DWIN32
/D_WINDOWS /D_CRT_SECURE_NO_WARNINGS /Ox  /Tpslirp/tftp.cc /Foslirp/tftp.o
tftp.cc
slirp/tftp.cc(526) : error C2065: 'S_IWUSR' : undeclared identifier
slirp/tftp.cc(530) : error C2065: 'S_IRUSR' : undeclared identifier

I am using Windows 7 SP1
  with Cygwin I ran the following:
	autoconf
 	sh .conf.win32-vcpp
	make win32_snap
  Opened vs2008\bochs.sln  with VC++2010 Express IDE
  Build the solution, produced the above error.

When I added the following lines to slirp/tftp.cc I could build w/o error:
// Missing defines for open
#ifndef S_IRUSR
#define S_IRUSR 0400
#define S_IWUSR 0200
#endif
#ifndef S_IRGRP
#define S_IRGRP 0040
#define S_IWGRP 0020
#endif
#ifndef S_IROTH
#define S_IROTH 0004
#define S_IWOTH 0002
#endif

Note: The same errors occur when I try building with nmake. nmake works w/o
error when I added the above code.

Thanks for a great tool,
Mark T.

---
This email is free from viruses and malware because avast! Antivirus
protection is active.
http://www.avast.com


----------------------------------------------------------------------------
--
_______________________________________________
bochs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bochs-developers


------------------------------------------------------------------------------