Bug 1273

Summary: Better error message on missing Python development files
Product: ns-3 Reporter: Vedran Miletić <vedran>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: enhancement CC: ns-bugs
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: All   
Attachments: config.log

Description Vedran Miletić 2011-09-29 08:18:06 UTC
Currently, on Fedora at least, if python package is installed and python-devel isn't, this results in:

---- Summary of optional NS-3 features:
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)
XmlIo                         : not enabled (library 'libxml-2.0 >= 2.7' not found)
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Network Simulation Cradle     : enabled
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
SQlite stats data output      : not enabled (library 'sqlite3' not found)
Tap Bridge                    : enabled

Python Bindings               : not enabled (The configuration failed
(complete log in /home/vedranm/bin/ns-3-allinone/ns-3-dev/build/config.log))

Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build tests                   : not enabled (defaults to disabled)
Build examples                : not enabled (defaults to disabled)
GNU Scientific Library (GSL)  : not enabled (GSL not found)
'configure' finished successfully (2.461s)

It would be cool if waf could print something like (library 'python' not found) or (Required python develoment libraries not found).

If it's hard to do this, please ignore this bug.
Comment 1 Vedran Miletić 2011-09-29 08:18:31 UTC
Created attachment 1249 [details]
config.log
Comment 2 Gustavo J. A. M. Carneiro 2011-09-29 10:00:17 UTC
Again, this is upstream WAF issue... ns-3 ships a copy of the WAF python tool just to fix a bug, otherwise it's just WAF.
Comment 3 Vedran Miletić 2011-10-01 06:56:04 UTC
Hi Gustavo,

Thomas Nagy responded to upstream report: http://code.google.com/p/waf/issues/detail?id=1048
Comment 4 Gustavo J. A. M. Carneiro 2012-02-20 07:17:57 UTC
changeset:   7716:8758b76b756c
tag:         tip
user:        Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>
date:        Mon Feb 20 12:17:26 2012 +0000
summary:     Bug 1273 - Better error message on missing Python development files