LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   netcat compile (https://www.linuxquestions.org/questions/linux-general-1/netcat-compile-64362/)

antken 06-08-2003 11:19 AM

netcat compile
 
hello

i am trying to compile netcat on my mandrake system ( ver 9 )

however it just will not work i get this:

make -e nc XFLAGS='-DLINUX' STATIC=-static
make[1]: Entering directory `/home/antken/ncat'
cc -O -s -DLINUX -static -o nc netcat.c
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/home/antken/ncat'
make: *** [linux] Error 2


does any one know what has gone wrong?

thanks
antken

UserName 10-10-2003 09:04 PM

same here
 
you need to comment out line 1319 in your netcat.c file and continue from there
i had the same problem and read somewhere to do that but now im having other errors
can anyone help me please?

# make linux
make -e nc XFLAGS='-DLINUX' STATIC=-static
make[1]: Entering directory `/mnt/windows/Linux/Netcat'
cc -O -s -DLINUX -static -o nc netcat.c
netcat.c: In function `main':
netcat.c:1312: parse error before '=' token
netcat.c:1554: `loport' undeclared (first use in this function)
netcat.c:1554: (Each undeclared identifier is reported only once
netcat.c:1554: for each function it appears in.)
netcat.c:1317:1: unterminated #ifdef
make[1]: *** [nc] Error 1
make[1]: Leaving directory `/mnt/windows/Linux/Netcat'
make: *** [linux] Error 2

i went to those lines in the netcat.c files but ill be damned if i know what is a parse error and how do i feed a token...
thanks in advance


All times are GMT -5. The time now is 04:09 PM.