Submitted a bug report on this yesterday..thought the actual configure script output might be helpful. This is in the otcl portion of the build process of ns-allinone-2.29 on a FreeBSD 5.4 box that has been fully upgraded via ports.
The last time I installed ns-2 fine, it was on a "virgin" FreeBSD 5.4 box. If it makes a difference here is my gcc info: ]$ gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 Output of configure for otcl: checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... no checking for libXext.a checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking system version (for dynamic loading)... ./configure: line 6017: syntax error near unexpected token `(' ./configure: line 6017: ` case `(ac_space=' '; set | grep ac_space) 2>&1` in' otcl-1.11 configuration failed! Exiting ... Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes. Thanks! ~Ethan Giordano University of Delaware