Branches
Articles referencing this project
Comments
[»]
IPv6 Port
by QuiGonGene - Sep 28th 2003 15:29:28
I had a problem compiling the IPv6 version on FreeBSD 5.0. Changed the
following to make it work:
first_port = strtoul (argv[optind], &tail, 0);
if (first_port > USHRT_MAX || *tail || first_port == 0)
bail ("invalid port %s", argv[optind]);
last_port = strtoul (cp, &tail, 0);
if (last_port > USHRT_MAX || *tail || last_port == 0)
bail ("invalid port %s", cp);
Change USHRT_MAX to 65535, then compile. Works like a charm.
[reply]
[top]
[»]
Re: IPv6 Port
by Paolo Bonzini - Nov 26th 2004 02:14:34
> Change USHRT_MAX to 65535, then compile.
> Works like a charm.
Or include limits.h. Silly me.
[reply]
[top]
[»]
Compile error
by netAGENT - Jun 5th 2003 02:50:13
When I compile netcat on Linux it gives me this errors:
/tmp/cccUSCm5.o: In function `main':
/tmp/cccUSCm5.o(.text+0x1b1a): undefined reference to `res_init'
collect2: ld returned 1 exit status
[reply]
[top]
[»]
Re: Compile error
by jim barchuk - Jul 4th 2003 12:28:33
> When I compile netcat on Linux it gives
> me this errors:
>
> /tmp/cccUSCm5.o: In function `main':
> /tmp/cccUSCm5.o(.text+0x1b1a): undefined
> reference to `res_init'
> collect2: ld returned 1 exit status
>
Check the comments a little down the page titled 'compile for linux.' The
error you mention goes away by adding 'include resolv.h' to netcat.c
[reply]
[top]
[»]
Re: Compile error
by FisherKing - Sep 18th 2003 02:16:34
>
> % When I compile netcat on Linux it gives
> % me this errors:
> %
> % /tmp/cccUSCm5.o: In function `main':
> % /tmp/cccUSCm5.o(.text+0x1b1a): undefined
> % reference to `res_init'
> % collect2: ld returned 1 exit status
> %
>
>
> Check the comments a little down the
> page titled 'compile for linux.' The
> error you mention goes away by adding
> 'include resolv.h' to netcat.c
>
The debian guys have a whole bunch of patches for netcat
get ftp://ftp.debian.org/debian/pool/n/netcat/netcat_1.10-23.diff.gz
installation, in netcat dir:
zcat ~/src/netcat_1.10-23.diff.gz | patch
for i in `cat 00list` ; do cat $i.dpatch | patch;done
[reply]
[top]
[»]
A patch for Netcat
by Claudio Scordino - Dec 7th 2002 06:43:07
We made a patch for Netcat that provides a TCP connection between Client
and Server, and lets the Client the possibility to specify the file which
it is interested in.
This patch is available at
http://utenti.quipo.it/claudioscordino/netcat.html
[reply]
[top]
[»]
Compil for Linux
by anamorphose - Jan 18th 2002 13:47:58
On redhat 7.2 :
include "resolv.h"
[reply]
[top]
[»]
Re: Compil for Linux
by lucipher - Jan 20th 2002 22:22:25
> On redhat 7.2 :
>
> include "resolv.h"
and do not forget to create a directory, in case you don't want to
overwrite any Makefile's or README's you might have on the directory
you'll extract the contents of nc*.tgz :-)
-- ''Where solitude ignites and dark shadows slain, O' er the soul between the flow from flat sillhouette to darkness again''
[reply]
[top]
|