[ns] Please Help me porting GPSR

Soo-Hyun Choi shchoi at gmail.com
Tue Nov 23 07:31:20 PST 2004


You're getting an error because you're trying to declare twice for
memcopy() and memset() methods. You may want to fix it by using
#ifndef statements.

Regards,
Soo-Hyun


On Tue, 23 Nov 2004 15:51:20 +0800, 邱仁鴻 <brianchiu at atm.ee.nsysu.edu.tw> wrote:
> 
> Dear sir,
> I am trying to install gpsr in my computer with ns-2.1b6 and redhat 7.2
> but I have some problems.I successfully built ns-2.1b6 alone not with
> gpsr but after I untarred gpsr in my directory here came the error message.
> [root at atm14 ns-2.1b6]# make
> c++ -c -O2 -DNO_TK -DCAL_FIX -DTCLCL_CLASSINSTVAR -DNDEBUG -DUSE_SHM
> -DHAVE_LIBTCLCL1_0B8 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A4 -DHAVE_OTCL_H
> -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H
> -DHAVE_CONFIG_H -I. -I/root/tclcl-1.0b8 -I/root/otcl-1.0a4
> -I/root/tk8.0.4/generic -I/root/tcl8.0.4/generic -o random.o random.cc
> In file included from /root/tclcl-1.0b8/tclcl.h:41,
> from rng.h:50,
> from random.h:42,
> from random.cc:40:
> /usr/include/string.h:242: declaration of C function `void memcpy (void
> *, const void *, unsigned int)' conflicts with
> /usr/include/string.h:38: previous declaration `void *memcpy (void *,
> const void *, unsigned int)' here
> /usr/include/string.h:245: type specifier omitted for parameter
> /usr/include/string.h:245: parse error before `0'
> /usr/include/string.h:245: declaration of C function `void memset
> (...)' conflicts with
> /usr/include/string.h:55: previous declaration `void *memset (void *,
> int, unsigned int)' here
> make: *** [random.o] Error 1
> 
> Do you have any idea of installing gpsr with ns-2.1b6? Is there any tips
> or instructions available?
> Thank for your great help!
> 
>




More information about the Ns-users mailing list