Date: Sat, 8 Jan 2005 19:44:11 +0100 From: Max Laier <max@love2party.net> To: freebsd-ports@freebsd.org Cc: Christian Vogt <chvogt@tm.uka.de> Subject: Re: Nc6 for FreeBSD 4.10 Message-ID: <200501081944.18047.max@love2party.net> In-Reply-To: <41E02264.1050804@tm.uka.de> References: <41E02264.1050804@tm.uka.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2151091.uReLbBmhXA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Christian, On Saturday 08 January 2005 19:11, Christian Vogt wrote: > Hi, > > I am a Ph.D. student at the University of Karlsruhe, Germany. For a > project on Mobile IPv6, I need a simple tool with which data can be > transmitted over TCP. The problem is: I depend on outdated FreeBSD 4.10. > > I guess that Nc6 would give me everything I need. However, when I type > > # cd /usr/ports/net/nc6/ > # make > > on my FreeBSD 4.10 system, I get an error message: > > ++++++++++ > Making all in src > source=3D'circ_buf.c' object=3D'circ_buf.o' libtool=3Dno > depfile=3D'.deps/circ_buf.Po' tmpdepfile=3D'.deps/circ_buf.TPo' depmode= =3Dgcc > /bin/sh ../config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I.. -I../contrib > -I../intl -DLOCALEDIR=3D\"/usr/local/share/locale\" -I/usr/local/include > -O -pipe -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes > -Wcast-qual -Wcast-align -finline-functions -O -pipe -c `test -f > 'circ_buf.c' || echo './'`circ_buf.c > source=3D'filter.c' object=3D'filter.o' libtool=3Dno > depfile=3D'.deps/filter.Po' tmpdepfile=3D'.deps/filter.TPo' depmode=3Dgcc > /bin/sh ../config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I.. -I../contrib > -I../intl -DLOCALEDIR=3D\"/usr/local/share/locale\" -I/usr/local/include > -O -pipe -pipe -W -Wall -Wpointer-arith -Wstrict-prototypes > -Wcast-qual -Wcast-align -finline-functions -O -pipe -c `test -f > 'filter.c' || echo './'`filter.c > filter.c:42: warning: function declaration isn't a prototype > filter.c: In function `is_allowed': > filter.c:208: `EAI_NODATA' undeclared (first use in this function) > filter.c:208: (Each undeclared identifier is reported only once > filter.c:208: for each function it appears in.) > filter.c:209: `EAI_ADDRFAMILY' undeclared (first use in this function) > *** Error code 1 Please cvsup your ports tree, there is a patch to solve this problem for qu= ite=20 some time. (files/patch-ac) > Stop in /usr/ports/net/nc6/work/nc6-0.5/src. > *** Error code 1 > ++++++++++ > > The two identifiers EAI_NODATA and EAI_ADDRFAMILY appear only one time > in the entire Nc6 code, namely, in a swich statement in file filter.c. > I replaced the identifiers by their values (7 and 1, respectively), and, > guess what, Nc6 compiled successfully. This is not the right way to fix this problem, in my opinion. > However, when I use the program for a TCP connection, it aborts with an > error: > > # /usr/local/bin/nc6 1000::1 2000 > nc6: forward host lookup failed for remote endpoint 1000::1: > Non-recoverable failure in name resolution > > At this time, Nc6 is running in listen mode on node 1000::1. (I called > /usr/local/bin/nc6 -l -p 2000 -s 1000::1 on the remote machine.) The > funny thing is that I am providing an IPv6 address above, but Nc6 still > seems to try doing name resolution. This does not change when I use the > "-n" option. Not sure where this is coming from, but your analysis seems to be correct. = =20 Did you try to use "-6"? > I suppose that the problem is due to the software in the Ports archive > being incompatible with FreeBSD 4.10. Therefore, I wonder if you have > an older version of Nc6 that I could use. As far as the additional > software that Nc6 requires goes, I have the following versions on the > FreeBSD 4.10 system: > > expat-1.95.6_1 > gettext-0.12.1 > libiconv-1.9.1_1 > > I would be so greatful if you could help me out! Try the cvsup, this might already fix your problem. If not, ping me back. = =20 BTW, I am a graduate student at University of Karlsruhe. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2151091.uReLbBmhXA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB4CoCXyyEoT62BG0RAtz+AJkBGSmHR7HKJFfCP9moAoEUEdRZWQCfWXIl mpGuBCae8OvkBr6RMx0iGj0= =i5r+ -----END PGP SIGNATURE----- --nextPart2151091.uReLbBmhXA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501081944.18047.max>