[SOLUTION] net/ns broken on FreeBSD 5.3

Konstantin 'Kosta' Welke damaker at fillibach.de
Mon Jan 17 09:56:53 PST 2005


On Mon, 17 Jan 2005 16:26:51 +0100, Kirill Ponomarew  
<krion at voodoo.oberon.net> wrote:

[net/ns]
> This port is broken on sparc and alpha-4.x, the fix for i386 5.x
> version was committed in June.  Please update your ports.

Sorry, i was confused with another port. Yes, this port is indeed
marked as working for i386 5.x, but it does not compile, at least
not on my laptop. It seems like picky gcc errors from here, which
i partially corrected but I am not done (yet). Even with -fpermissive,
some errors remain.
First one is a simple template specialization which can be corrected
by putting template<> in front of the lines gcc complains about, but
the second one is a bit less clear to me. Seems like some problems
while using the STL, and I hate those problems...

Want an exmaple?

c++ -c -fpermissive -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR   
-DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_8  
-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./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/usr/X11R6/include   
-I/usr/local/include -I/usr/local/include -I/usr/local/include/tk8.4  
-I/usr/local/include/tcl8.4 -I/usr/include/pcap -o  
diffusion3/ns/difftimer.o diffusion3/ns/difftimer.cc
In file included from /usr/include/c++/3.4/vector:72,
                  from ./diffusion3/lib/nr/nr.hh:34,
                  from ./diffusion3/lib/main/message.hh:48,
                  from ./diffusion3/lib/main/filter.hh:34,
                  from ./diffusion3/lib/dr.hh:43,
                  from diffusion3/ns/diffagent.h:41,
                  from diffusion3/ns/difftimer.cc:34:
/usr/include/c++/3.4/bits/stl_bvector.h: In member function `void  
std::vector<bool, _Alloc>::_M_insert_range(std::_Bit_iterator,  
_ForwardIterator, _ForwardIterator, std::forward_iterator_tag)':
/usr/include/c++/3.4/bits/stl_bvector.h:522: error: expected  
unqualified-id before '(' token

Can you compile it with gcc 3.4.2?

greetings,
Kosta

PS: for my next problem/patch, i'll use send-pr. I promise :)


More information about the freebsd-ports mailing list