Makefile of ns-allinone-2.27 flawed
Problem:
When I go to remake ns-2.27 without any changes, it stops and complains about namespace errors.
Fix:
I found this post in the ns2 user mailing list addressing the problem, but I didn't want to change just the makefiles if I had to reconfigure.
I found out how autoconf and automake works. Basically, autoconf reads configure.in (or configure.ac) files to configure the Makefiles for platform specific compiles. Makefile.in is the template to generate Makefiles, and there's one in every subdirectory. The Makefile.in is wrong in the directories:
The line:
should be changed to:
in all Makefile.in in the aforementioned directories.
Problem:
When I go to remake ns-2.27 without any changes, it stops and complains about namespace errors.
Fix:
I found this post in the ns2 user mailing list addressing the problem, but I didn't want to change just the makefiles if I had to reconfigure.
I found out how autoconf and automake works. Basically, autoconf reads configure.in (or configure.ac) files to configure the Makefiles for platform specific compiles. Makefile.in is the template to generate Makefiles, and there's one in every subdirectory. The Makefile.in is wrong in the directories:
ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen
ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec
ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/nlanr
The line:
CFLAGS = @V_CCOPT@ -DSTL_NAMESPACE=@STL_NAMESPACE@
should be changed to:
CFLAGS = @V_CCOPT@ -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=@CPP_NAMESPACE@
in all Makefile.in in the aforementioned directories.
0 Comments:
Post a Comment
<< Home