Bug 1348

Summary: python bindings: deprecated conversion from string constant to ‘char*’
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: python bindingsAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: Other   
Attachments: cerr log
the wimax ns3module.cc raising the bug

Description Tommaso Pecorella 2012-01-29 07:39:28 UTC
This happens on CentOS 5.7, after using all the "tricks" described in the troubleshooting wiki.

The problem seems an invalid conversion from string to char*.
Comment 1 Tommaso Pecorella 2012-01-29 07:39:54 UTC
Created attachment 1314 [details]
cerr log
Comment 2 Tommaso Pecorella 2012-01-29 07:42:11 UTC
Created attachment 1315 [details]
the wimax ns3module.cc raising the bug
Comment 3 Gustavo J. A. M. Carneiro 2012-02-19 10:19:07 UTC
src/wifi/bindings/ns3module.cc:57706: error: deprecated conversion from string constant to ‘char*’

But the attached file only has 56073 lines.  I think you uploaded the wrong ns3module.cc file.  Hint: run waf with -j1, otherwise the multiple threads will mix all the outputs and it is too confusing...

Meanwhile, I'll see if I can build python2.4 on my machine to try to reproduce the problem here.
Comment 4 Tommaso Pecorella 2012-02-19 14:43:07 UTC
Hi,

if you want I can upload the wifi one, but even with -j 1 it's like 58.000 lines...

Too many functions to be bound :(

If you want I can post somewhere the CentOS 5.7 VM, maybe it could be useful.

Cheers,

T.
Comment 5 Gustavo J. A. M. Carneiro 2012-02-19 16:01:22 UTC
(In reply to comment #4)
> Hi,
> 
> if you want I can upload the wifi one, but even with -j 1 it's like 58.000
> lines...
> 
> Too many functions to be bound :(
> 
> If you want I can post somewhere the CentOS 5.7 VM, maybe it could be useful.
> 

No need, I fixed the bug on my laptop, will commit the fix later.
Comment 6 Gustavo J. A. M. Carneiro 2012-02-20 07:03:59 UTC
changeset:   7715:5513dcf73d39
tag:         tip
user:        Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>
date:        Mon Feb 20 12:03:30 2012 +0000
summary:     Bug 1348 - python bindings: deprecated conversion from string constant to ‘char*’