Tree [5d891d] master /
 History



File Date Author Commit
 app 2015-05-24 Mart Mart [aa7d31] Put back libsmi/win/config.h.in
 installer 1 day ago Martin Jolicoeur Martin Jolicoeur [21cf10] Fixed NetBSD and Linux installers
 libsmi 4 days ago Martin Jolicoeur Martin Jolicoeur [3e803f] Windows build now using MSYS2
 libtomcrypt 20 hours ago Martin Jolicoeur Martin Jolicoeur [5d891d] MacOSX compile fix using LLVM
 qwt 2015-05-26 Martin.Jolicoeur Martin.Jolicoeur [df3c51] Upgraded QWT to v6.1.2
 snmp++ 2011-01-16 Martin Jolicoeur Martin Jolicoeur [936190] Added set/get_notify_callback_fd() to access fd...
 .gitignore 2015-05-24 Mart Mart [aa7d31] Put back libsmi/win/config.h.in
 Makefile 1 day ago Martin Jolicoeur Martin Jolicoeur [21cf10] Fixed NetBSD and Linux installers
 changelog.txt 2011-01-25 Martin Jolicoeur Martin Jolicoeur [6499c2] Changed copyright year; Bumped version to 1.0, ...
 install.txt 2008-04-13 Martin Jolicoeur Martin Jolicoeur [17e1e9]
 license.txt 2006-10-01 Martin Jolicoeur Martin Jolicoeur [efdbff] Switched to mingwin inside cygwin and added fir...
 readme.txt 20 hours ago Martin Jolicoeur Martin Jolicoeur [5d891d] MacOSX compile fix using LLVM
 todo.txt 1 day ago Martin Jolicoeur Martin Jolicoeur [21cf10] Fixed NetBSD and Linux installers

Read Me

To compile:

# make (linux, macosx, unix)
# gmake (*BSD)
> make (Windows/MSYS2)

To install in places other than /usr, add INSTALL_PREFIX=<prefix> to the make command.

Tested & compiles on MSYS2/Windows, Linux, MacOSX (Leopard) and NetBSD

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

Required installed packages for compilation:
- bison & flex
- autoconf and automake
- GNU make
- QT5 development package
- GNU install
- gcc and g++

Instructions for windows build
-------------------------------
SnmpB builds on windows using MSYS2 
1- Download and install MSYS2 from https://sourceforge.net/projects/msys2
2- Start the 'MINGW64' flavor of MSYS2 by executing the script 'mingw64_shell.bat' from the root of the MSYS2 installation folder
3- Install packages for QT build on MSYS2 (taken from https://wiki.qt.io/MSYS2), specifically:
   pacman -Sy
   pacman --needed -S pacman pacman-mirrors msys2-runtime
   (restart shell)
   pacman -Su
   pacman -S base-devel git mingw-w64-x86_64-toolchain mingw-w64-x86_64-qt5-static mingw-w64-x86_64-qt-creator  
4- Download SnmpB source and compile with "make"
5- Download and install the NSIS installer from http://nsis.sourceforge.net/ (3.0 works)
6- Using windows explorer, go in snmpb/installer/win32 and right-click on the .nsi, 
   then "Compile NSIS Script"
7- Voila, you have the full SnmpB windows installer .exe

External packages
------------------

Snmp++ is taken from http://www.agentpp.com
Version: 3.2.25

Modified file(s):
config_snmp_pp.h
v3.h "Changed debugprintf() macro to log debug messages"
notifyqueue.cpp "Added missing ipv6 include required for compilation on WIN32"
address.cpp "Replaced custom get_printable for IPv6 addresses by inet_ntop()"
notifyqueue.h uxsnmp.h notifyqueue.cpp uxsnmp.cpp 
"Modified snmp++ to allow binding trap port on both ipv4 and ipv6 for all interfaces"
uxsnmp.h notifyqueue.cpp "Added set/get_notify_callback_fd() to access fd when replying to INFORMS"

Libtomcrypt is taken from http://libtom.org
Version: 1.17

Modified file(s):
makefile
src/headers/tomcrypt_pk.h "Added defined(BSD) around wchar_t definition to fix broken build on *BSD"
src/headers/tomcrypt_custom.h "Defined LTC_NO_ROLC for MacOSX using LLVM"

Libsmi is taken from http://www.ibr.cs.tu-bs.de/projects/libsmi
Version: 0.4.8

Modified file(s):
win/Makefile.mingw
win/config.h
lib/smi.h.in "Changed parameter named 'class' to allow compilation on C++"
lib/smi.c "Fixed a bug on paths with spaces in smiReadConfig()"
lib/data.c, loadModule() -> changed allowed mib files extensions
lib/util.c, smiIsPath() -> removed condition for "." in filename
lib/snprintf.c, "Upgraded snprintf.c from source to support 64 bits printing on Windows"
lib/smi.c  "Fixed stack overwrite in smiRenderValue due to uint64 format"
lib/smi.c  "Fixed display for non-printable octet-strings -tracker 3096221"
lib/smi.c  "Allows OCTET STRING to be printable with \v, \t , \r, \n, \f"
lib/error.c "Changed the definition of yyerror for bison 3.2 (from libsmi 5.0)"
lib/parser-smi.y "YYPARSE_PARAM,YYLEX_PARAM->parse-param,lex-param for bison 3.2 (from libsmi 5.0)"
lib/scanner-smi.h "Commented yyleng for bison 3.x (from libsmi 5.0)"

Deleted mibs/ietf/IANA-ITU-ALARM-TC-MIB: redundant with one in iana folder 
(prevented proper copy in win32 installer)

QWT is taken from http://qwt.sourceforge.net
Version: 6.1.2

Modified file(s):
qwtconfig.pri
qwtbuild.pri "Removed silent flag, prevented build on win32"
qwt.pro

+ do not import the doc,examples,playground & admin sub-directories for space's sake

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

Martin Jolicoeur, May 2015