[ns] linking on MacOS X 10.4 fails

Lars Eggert lars.eggert at netlab.nec.de
Wed Jun 22 02:47:44 PDT 2005


[Resending, because I see mailman bounces due to "the message's  
content type was not explicitly allowed."]

Hi,

(I bet this has come up before, but I was unable to dig up the answer  
in the archives or Google.)

When I run "install.sh" of ns-allinone-2.28 on MacOS X 10.4  
("Tiger"), the final link of ns fails:

...
/usr/bin/ld: warning multiple definitions of symbol _abort
common/tclAppInit.o definition of _abort in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib 
(abort.So) definition of _abort
/usr/bin/ld: warning multiple definitions of symbol _random
tools/random.o definition of _random in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libm.dylib 
(random.So) definition of _random
/usr/bin/ld: Undefined symbols:
XCPQueue::XCP_MAX_INTERVAL
XCPQueue::XCP_MIN_INTERVAL
XCPQueue::BETA_
XCPQueue::ALPHA_
XCPQueue::BWIDTH
XCPQueue::GAMMA_
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

This may be due to the new gcc-4.0.0 in Tiger - is there a fix?

Thanks,
Lars
-- 
Lars Eggert                                     NEC Network Laboratories






More information about the Ns-users mailing list