summaryrefslogtreecommitdiff
path: root/lib/snmp/src/compile
Commit message (Collapse)AuthorAgeFilesLines
* make: Allow OTP to be built deterministicallyTom Davies2022-06-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add a --enable-deterministic-build to the configure script, which sets ERL_DETERMINISTIC=yes throughout the relevant Makefiles, which then invoke the relevant build stages with the +deterministic option. This addresses absolute paths being included in generated .erl files and compiled .beam files that resulted in builds from different source directories generating different artefacts (which is a component of the issue in erlang#4482). I think it would make sense to make this the default at some stage, but I've put the change behind a flag for now to decouple making deterministic OTP builds possible from making them the default. Having +deterministic set results in compiler options being removed from the module info for modules where this options was used. This may have other implications for users of OTP. For tests themselves, +determinism is not set, since many test cases depend on accessing the test module's compilation options, or other features not available in deterministic mode, in order to configure themselves. For tests of the determinism feature specifically, +deterministic must be explicitly passed to the compiler within the relevant test cases.
* Update copyright yearErlang/OTP2022-02-156-6/+6
|
* Merge pull request #5559 from kianmeng/fix-typos-in-lib-snmpMicael Karlberg2022-01-216-7/+7
|\ | | | | Fix typos in lib/snmp
| * Fix typos in lib/snmpKian-Meng, Ang2021-12-306-7/+7
| |
* | otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-211-2/+2
|/
* Update copyright yearRickard Green2021-12-131-1/+1
|
* snmp: Make snmp build reproduciblyJérôme de Bretagne2021-03-281-24/+7
| | | | | | | Remove the current date/time and snmp version from the header section of .hrl files generated by snmpc_mib_to_hrl. Contributes to #4417 (ERL-1445) and #4482 (ERL-1446).
* Merge branch 'bmk/snmp/20201207/no_auto_import_error3/OTP-17063'Micael Karlberg2020-12-182-7/+19
|\ | | | | | | OTP-17063
| * [snmp] Treat warnings as errors by defaultMicael Karlberg2020-12-081-2/+14
| | | | | | | | | | | | | | | | Add make constructs to treat 'warning as error' by default in the snmp makefiles. Also, improve 'warn_unused_vars' usage in said makefiles. OTP-17063
| * [snmp] Do not auto import error/3Micael Karlberg2020-12-081-3/+3
| | | | | | | | | | | | | | | | | | A local function error/3 was defined in a couple of modules. This conflicted with the bif error/3. So, in those modules an no_auto_import attribute was added for this function. OTP-17063
* | Avoid clash with new erlang:error/3 BIFBjörn Gustavsson2020-12-071-3/+5
|/ | | | | erlang:error/3 is a new BIF in OTP 24. Turn off the autoimport of erlang:error/3 to avoid a compiler error.
* snmp: Update old format I/O-requestHans Bolinder2019-08-201-2/+3
|
* [snmp] Replaced usage of random with randMicael Karlberg2019-05-222-5/+10
| | | | | | | Use of the deprecated module random has been replaced by the module rand. OTP-15331
* [snmp|compiler] Spurious version message removedMicael Karlberg2018-09-171-5/+1
| | | | | | | The snmp mib compiler printed an spurious version message if the 'version' option was provided. OTP-15290
* Parse #mc_new_type{}s before definitions_loop/2Raimo Niskanen2018-06-111-28/+38
|
* Process augments in pass after definitionsRaimo Niskanen2017-07-282-18/+60
|
* Fix enum refinement in usertype in SYNTAXRaimo Niskanen2017-01-132-4/+6
|
* Update copyright-yearErlang/OTP2016-12-071-1/+1
|
* [snmp] Correct bug when path to mib contains UTF-8 charactersLars Thorsen2016-09-072-12/+19
|
* update copyright-yearHenrik Nord2016-03-1512-12/+12
|
* Change license text to APLv2Bruce Yinhe2015-06-1813-128/+141
|
* snmp: Remove deprecated warning for erlang:now in snmpcErland Schönbeck2015-04-281-3/+4
|
* [snmp/compiler] Refinement of type Opaque was not allowedMicael Karlberg2014-12-011-0/+1
| | | | | | MIB constructs such as "SYNTAX Opaque (SIZE(0..65535))" was previously not allowed, this has now been fixed. See the standard ALARM-MIB for eaxmple.
* Update copyright yearsBjörn-Egil Dahlberg2013-02-221-1/+1
|
* Merge branch 'bmk/snmp/snmp4222_integration/r15' into ↵Micael Karlberg2013-02-053-37/+122
|\ | | | | | | | | | | | | | | | | bmk/snmp/snmp4231_integration/r16 Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.appup.src lib/snmp/vsn.mk
| * [snmp/compiler] Improved debug printoutsMicael Karlberg2013-02-051-9/+11
| |
| * [snmp/compiler] MIB compiler did not handle forward index refMicael Karlberg2013-02-052-14/+72
| | | | | | | | | | The MIB compiler could not handle a table index refering to an object defined later in the MIB.
| * [snmp/compiler] MIB compiler did not handle import BITSMicael Karlberg2013-02-042-15/+40
| | | | | | | | | | The MIB compåiler (snmpc) did not hanmdle import (from SNMPv2-SMI) of (pseudo-) type BITS.
* | Update copyright yearsBjörn-Egil Dahlberg2013-01-251-1/+1
| |
* | Implement ./otp_build configure --enable-silent-rulesAnthony Ramine2013-01-151-2/+2
|/ | | | | | With silent rules, the output of make is less verbose and compilation warnings are easier to spot. Silent rules are disabled by default and can be disabled or enabled at will by make V=0 and make V=1.
* Update copyright yearsBjörn-Egil Dahlberg2012-08-311-1/+1
|
* Update to work with whitespace in exec pathLukas Larsson2012-06-051-7/+7
| | | | | OTP-10106 OTP-10107
* Update copyright yearsBjörn-Egil Dahlberg2012-03-301-1/+1
|
* [snmp/compiler] More information with augmented tablesMicael Karlberg2012-03-091-12/+24
| | | | | | | | The information the MIB compiler provides with augmented tables has been extended with nbr_of_cols, first_accessible and not_accessible. OTP-9969
* Merge branch 'maint-r14'Micael Karlberg2011-12-011-2/+0
|\ | | | | | | | | | | | | | | Conflicts: lib/snmp/src/agent/snmpa_set_lib.erl lib/snmp/src/app/snmp.appup.src lib/snmp/src/compile/snmpc.src lib/snmp/vsn.mk
| * [compiler] Fix the --warnings/--W option parsing in the snmpc wrapper script.Micael Karlberg2011-11-251-2/+2
| | | | | | | | | | | | | | The short warning option was incorrectly '--w', instead of as documented '--W'. This has now been corrected. Tuncer Ayaz OTP-9718
| * [compiler] Improved version info printout from theMicael Karlberg2011-11-252-2/+18
| | | | | | | | | | MIB compiler frontend escript. OTP-9618
* | [compiler] Fix the --warnings/--W option parsing in the snmpc wrapper script.Micael Karlberg2011-11-161-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | The short warning option was incorrectly '--w', instead of as documented '--W'. This has now been corrected. Tuncer Ayaz OTP-9718 Merge branch 'bmk/snmp/compiler/fix_short_warning_option/OTP-9718' into bmk/snmp/r15_integration
| * \ [compiler] Fix the --warnings/--W option parsing in the snmpc wrapper script.Micael Karlberg2011-11-161-2/+2
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | The short warning option was incorrectly '--w', instead of as documented '--W'. This has now been corrected. Tuncer Ayaz OTP-9718 Merge branch 'ta/snmpc-warnings-option' into bmk/snmp/compiler/fix_short_warning_option/OTP-9718
| | * snmpc: fix --warnings/--W option parsingTuncer Ayaz2011-10-181-1/+1
| |/
* | New version. Also updated dependency for snmpc.Micael Karlberg2011-11-161-1/+1
| | | | | | | | OTP-9618
* | [compiler] Improve version info printout.Micael Karlberg2011-10-071-1/+18
|/ | | | OTP-9618
* Update copyright yearsBjörn-Egil Dahlberg2011-09-291-1/+1
|
* Wrapper (e)script did not handle (new) option --Werror.Micael Karlberg2011-09-052-3/+5
| | | | Also removed the "Error : " prefix for error printouts.
* Also added handling option "--W" in the snmpc(command),Micael Karlberg2011-08-021-1/+3
| | | | for completion.
* [compiler] Used wrong variable name (forMicael Karlberg2011-08-021-27/+34
| | | | | | | | | | warnings-as-errors variable), which caused the compiler to crash when using the snmpc script. Also added the option --Werror for the SNMP MIB compiler (escript) frontend (to mimic erlc), which specifies whether warnings should be treated as errors. OTP-9447
* [compiler] Added the option warnings_as_errors (for the SNMP MIBMicael Karlberg2011-07-194-12/+35
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | compiler (escript) frontend, the option --wae is used) which specifies whether warnings should be treated as errors. Tuncer Ayaz. OTP-9437 Merge branch 'bmk/snmp/compiler/warnings_as_errors/OTP-9437' into bmk/snmp/snmp421_integration Conflicts: lib/snmp/doc/src/notes.xml lib/snmp/src/app/snmp.appup.src lib/snmp/src/compile/Makefile
| * [compiler] Added the option warnings_as_errors whichMicael Karlberg2011-07-183-6/+32
| | | | | | | | | | | | specifies whether warnings should be treated as errors. Tuncer Ayaz. OTP-9437
| * Fixed unintended build to ebin dir of snmpc escript.Micael Karlberg2011-07-181-2/+3
| |
* | Fixed install of MIB compiler escript. Was incorrectly installedMicael Karlberg2011-07-141-2/+4
|/ | | | both in bin end ebin.