Bug 1348 - python bindings: deprecated conversion from string constant to ‘char*’
python bindings: deprecated conversion from string constant to ‘char*’
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: python bindings
ns-3-dev
All Other
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-29 07:39 UTC by Tommaso Pecorella
Modified: 2012-02-20 07:03 UTC (History)
1 user (show)

See Also:


Attachments
cerr log (34.94 KB, text/plain)
2012-01-29 07:39 UTC, Tommaso Pecorella
Details
the wimax ns3module.cc raising the bug (134.06 KB, application/x-gzip)
2012-01-29 07:42 UTC, Tommaso Pecorella
Details

Note You need to log in before you can comment on or make changes to this 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*’