Hi to everybody,
        I'm trying to compile NS (version allinone-2.29) under HP-UX 11.11, but
I'm stuck with a strange error while compiling "net-ip.o", because it says:

        aggregate 'ip_mreq mr' has incomplete type and cannot be defined

I've searched the archives and Googled for an explanation, but I found
nothing of helpful. I've also tried to re-define "ip_mreq" (desperate!),
but it gave an error in autoconf.h:

        ./autoconf.h:89: error: expected unqualified-id before 'using'

I really don't know what to do now: anyone can help?

Thanks in advance,
Emanuele.


For who's interested here's the full output:

        g++ -c -O -O  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR
  -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11
-DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H
  -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std
-DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I.
-I/home/ns-allinone-2.29/tclcl-1.17 -I/home/ns-allinone-2.29/otcl-1.11
-I/home/ns-allinone-2.29/include -I/home/ns-allinone-2.29/include
-I/usr/include/pcap  -I./tcp -I./sctp -I./common -I./link -I./queue
-I./adc -I./apps -I./mac -I./mobile -I./trace  -I./routing -I./tools
-I./classifier -I./mcast  -I./diffusion3/lib/main -I./diffusion3/lib
-I./diffusion3/lib/nr -I./diffusion3/ns  -I./diffusion3/filter_core
-I./asim/ -I./qs  -I./diffserv -I./satellite  -I./wpan -o
emulate/net-ip.o emulate/net-ip.cc
emulate/net-ip.cc: In member function 'int
IPNetwork::add_membership(Socket, in_addr&)':
emulate/net-ip.cc:814: error: aggregate 'ip_mreq mr' has incomplete type
and cannot be defined
emulate/net-ip.cc: In member function 'int
IPNetwork::drop_membership(Socket, in_addr&)':
emulate/net-ip.cc:847: error: aggregate 'ip_mreq mr' has incomplete type
and cannot be defined
*** Error exit code 1

Stop.


Reply via email to