Bug 1268 - Sorting order of "Summary of optional NS-3 features"
Sorting order of "Summary of optional NS-3 features"
Status: RESOLVED INVALID
Product: ns-3
Classification: Unclassified
Component: build system
pre-release
All All
: P5 enhancement
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-23 09:52 UTC by Vedran Miletić
Modified: 2011-09-23 10:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vedran Miletić 2011-09-23 09:52:12 UTC
Hi,

this is very trivial and perhaps unimportant, but it would be nice to fix if possible and not too time consuming. It's just an idea. Currently, the order of "Summary of optional NS-3 features" is:

Static build                  : not enabled (option --enable-static not selected)
NS-3 Click Integration        : enabled
GtkConfigStore                : enabled
XmlIo                         : enabled
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Network Simulation Cradle     : enabled
MPI Support                   : enabled
NS-3 OpenFlow Integration     : enabled
SQlite stats data output      : enabled
Tap Bridge                    : enabled
Python Bindings               : enabled
Python API Scanning Support   : not enabled (Missing 'pygccxml' Python module)
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build tests                   : enabled
Build examples                : enabled
GNU Scientific Library (GSL)  : enable

IMHO, grouping similar things would be much better, so with a bit of reordering it could look something like this:

Static build                  : not enabled (option --enable-static not selected)
MPI Support                   : enabled
GNU Scientific Library (GSL)  : enabled
GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)
XmlIo                         : not enabled (library 'libxml-2.0 >= 2.7' not found)
SQlite stats data output      : not enabled (library 'sqlite3' not found)
Threading Primitives          : enabled
Real Time Simulator           : enabled
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Emulated Net Device           : not enabled (<netpacket/packet.h> include not detected)
Tap Bridge                    : not enabled (<linux/if_tun.h> include not detected)
Network Simulation Cradle     : not enabled (NSC library liblinux2.6.26.so is missing: NSC has not been built?)
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
Python Bindings               : not enabled (PyBindGen missing)
Python API Scanning Support   : not enabled (Missing 'pygccxml' Python module)
Build tests                   : not enabled (defaults to disabled)
Build examples                : not enabled (defaults to disabled)

Or something similar. Is it easily doable?
Comment 1 Gustavo J. A. M. Carneiro 2011-09-23 10:01:53 UTC
The features are reported in the order they are declared, and they are declared in the order that ns-3 modules are configured, which in turn is derived by listing src/* and alphabetical sorting of the result.

I am no sure what sorting algorithm you propose?  I don't think a hardcoded order is a good idea; we need to keep ns-3 scalable and modular...
Comment 2 Vedran Miletić 2011-09-23 10:07:12 UTC
Absolutely agree, I haven't figured out it was alphabetical. That makes sense indeed.

Well, the idea was to group similar things together (I have no particular algorithm), but this is better. Thanks for explaining.