Patches to build generated files on Windows

WARNING: This e-mail has been altered by MIMEDefang. Following this paragraph are indications of the actual changes made. For more information about your site's MIMEDefang policy, contact MIMEDefang Administrator admin@ibr.cs.tu-bs.de. For more information about MIMEDefang, see:
http://www.roaringpenguin.com/mimedefang/enduser.php3
An attachment named make_errormacros.sh was removed from this document as it constituted a security hazard. If you require this document, please contact the sender and arrange an alternate means of receiving it.
Hi, I have been trying to build the generated files on windows using Cygwin Flex and Bison (avoiding the autogen stuff) and I think I'm almost there The makefile patch can be checked in if you think this is ok, currently the makefile in ../lib is not called from there.
Make_errormacros does not produce a vallid errormacros.h ( I don't know why I copied it from makefile.in) The result is #define { 0, ERR_INTERNAL, "internal", 0 #define { 0, ERR_MAX_LEX_DEPTH, "import-depth", 1 : Instead of: #define ERR_INTERNAL 0 #define ERR_MAX_LEX_DEPTH 1
I think the makefile.nmake and make_errormacros.sh can be checked in in ../lib/ and continue to be worked on there. Possibly the stuff related to errormacros can be removed for the time beeing.
Is this route worth persuing or are you happy with things as they are?
<<make_errormacros.sh>> <<makefile.nmake>> <<makefile.patch.txt>>
Regards Anders

Anders Broman wrote:
Hi, I have been trying to build the generated files on windows using Cygwin Flex and Bison (avoiding the autogen stuff) and I think I'm almost there The makefile patch can be checked in if you think this is ok, currently the makefile in ../lib is not called from there.
I don't see the point. The traditional method is to run configure and make in *nix to generate the stuff that MSVC can't build. cygwin will do for that, so there is no obvious reason to change.
You then "mount" that tree on Windows and run nmake in the win directory.
If I wasn't after a DLL, I'd cross compile with mingw on Linux. I haven't managed to get mingw to produce a DLL.

Hi, I normally don't have a full Cygwin installation only the tools needed to build wireshark ( flex, bison wget etc ) and no *nix system. As it's possible to build libsmi with the same set of tools e.g not using autogen I thought it useful to do the changes... Regards Anders
-----Original Message----- From: Andrew Hood [mailto:ajhood@fl.net.au] Sent: den 26 april 2008 23:59 To: libsmi@ibr.cs.tu-bs.de Cc: Anders Broman Subject: Re: [libsmi] Patches to build generated files on Windows
Anders Broman wrote:
Hi, I have been trying to build the generated files on windows using Cygwin Flex and Bison (avoiding the autogen stuff) and I think I'm almost there The makefile patch can be checked in if you think this is
ok, currently the makefile in ../lib is not called from there.
I don't see the point. The traditional method is to run configure and make in *nix to generate the stuff that MSVC can't build. cygwin will do for that, so there is no obvious reason to change.
You then "mount" that tree on Windows and run nmake in the win directory.
If I wasn't after a DLL, I'd cross compile with mingw on Linux. I haven't managed to get mingw to produce a DLL.
-- There's no point in being grown up if you can't be childish sometimes. -- Dr. Who

Anders Broman wrote:
Hi, I normally don't have a full Cygwin installation only the tools needed to build wireshark ( flex, bison wget etc ) and no *nix system. As it's possible to build libsmi with the same set of tools e.g not using autogen I thought it useful to do the changes...
I just built everything with the attached patches against SVN HEAD. The diff has been editted to remove my personal customisations, so it might not be perfect.
I don't like putting the OTHERTOOLS at the head of PATH, but I have incompatible versions of bison & flex in my normal PATH.
Maybe the PATH could be built as TOOLS32, then OTHERTOOLS, then the original PATH.
participants (2)
-
Anders Broman
-
Andrew Hood