PDA

View Full Version : Compiling netcat



Liquidant
05-23-2004, 11:31 PM
Seem to have a few problems here anyone understand whats going on here


root@Zion:/home/Liquidant/netcat# make linux
make -e nc XFLAGS='-DLINUX' STATIC=-static
make[1]: Entering directory `/home/Liquidant/netcat'
cc -O -s -DLINUX -static -o nc netcat.c
/tmp/ccOYBP7A.o(.text+0x48e): In function `gethostpoop':
: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccOYBP7A.o(.text+0x3d3): In function `gethostpoop':
: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccOYBP7A.o(.text+0x6d0): In function `getportpoop':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccOYBP7A.o(.text+0x61f): In function `getportpoop':
: warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/tmp/ccOYBP7A.o(.text+0x16d6): In function `main':
: undefined reference to `res_init'
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/Liquidant/netcat'
make: *** [linux] Error 2

i can see there's something a miss but can't tell what

any ideas

mzilikazi
05-24-2004, 12:53 AM
Dunno what's wrong either but is there some reason you don't simply apt-get it from Debian?


apt-cache policy netcat
netcat:
/snip/
Candidate: 1.10-23

Orb360
05-26-2004, 06:34 PM
Looks like your missing a library