Daniel,

 

I had some issues with depcomp and libtool, but I think I got around it.
Now I'm getting a number of errors during make.  I've included the output of
make up to the first set of errors (the rest are similar):

 

$ make

Making all in libltdl

make[1]: Entering directory `/usr/ns-allinone-2.29/ns-2.28/gea/libltdl'

make  all-am

make[2]: Entering directory `/usr/ns-allinone-2.29/ns-2.28/gea/libltdl'

make[2]: Leaving directory `/usr/ns-allinone-2.29/ns-2.28/gea/libltdl'

make[1]: Leaving directory `/usr/ns-allinone-2.29/ns-2.28/gea/libltdl'

Making all in src

make[1]: Entering directory `/usr/ns-allinone-2.29/ns-2.28/gea/src'

Making all in .

make[2]: Entering directory `/usr/ns-allinone-2.29/ns-2.28/gea/src'

if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../include/gea  -DGEA_POSIX  -Werror -Wall "-I../include"  -g -ggdb3 -MT
libgea_posix_la-EventHandler.lo -MD -MP -MF
".deps/libgea_posix_la-EventHandler.Tpo" -c -o
libgea_posix_la-EventHandler.lo `test -f 'EventHandler.cc'

|| echo './'`EventHandler.cc; \

then mv -f ".deps/libgea_posix_la-EventHandler.Tpo"
".deps/libgea_posix_la-EventHandler.Plo"; else rm -f
".deps/libgea_posix_la-EventHandler.Tpo"; exit 1; fi

 g++ -DHAVE_CONFIG_H -I. -I. -I../include/gea -DGEA_POSIX -Werror -Wall
-I../include -g -ggdb3 -MT libgea_posix_la-EventHandler.lo -MD -MP -MF
.deps/libgea_posix_la-EventHandler.Tpo -c EventHandler.cc  -DPIC -o
.libs/libgea_posix_la-EventHandler.o

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/cwchar:51,

                 from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/postypes.h:46,

                 from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iosfwd:50,

                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ios:44,

                 from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ostream:45,

                 from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:45,

                 from ../include/gea/UdpHandle.h:72,

                 from EventHandler.cc:20:

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:68: error: `::tm' has
not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:70: error: `::clock' has
not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:71: error: `::difftime'
has not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:72: error: `::mktime'
has not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:73: error: `::time' has
not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:74: error: `::asctime'
has not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:75: error: `::ctime' has
not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:76: error: `::gmtime'
has not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:77: error: `::localtime'
has not been declared

/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ctime:78: error: `::strftime'
has not been declared

In file included from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/basic_ios.h:44,

                 from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ios:51,

                 from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/ostream:45,

                 from
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/iostream:45,

                 from ../include/gea/UdpHandle.h:72,

                 from EventHandler.cc:20:

 

 

This might be an issue specific to Cygwin.  Please let me know if it looks
like something obvious is wrong.

 

Thanks again,


Jeff

 

 

-----Original Message-----
From: Daniel Mahrenholz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 30, 2006 1:34 AM
To: Jeff Schwentner
Cc: ns-users@ISI.EDU
Subject: Re: [ns] Simulating an embedded ad-hoc wireless protocol

 

Jeff,

 

you tried to compile GEA in the wrong order. You have to:

1. install GEA using

./configure

make

make install

in the GEA source directory.

2. compile ns

 

Step 1 will compile and install the native GEA version. This is not 

required for ns-2 at runtime. But you need the different include files 

that usually will be installed in /usr/local/include/gea. If you need 

them to be installed in a different directory you can call a 

"./configure --prefix=<install dir>". This should be a directory that 

ns-2 uses during its compilation. Otherwise you have to modify the ns-2 

Makefile.

 

Daniel.

 

Reply via email to