LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-08-2003, 11:19 AM   #1
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
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
 
Old 10-10-2003, 09:04 PM   #2
UserName
LQ Newbie
 
Registered: Mar 2003
Distribution: redhat 8.0,mandrake 9.1
Posts: 29

Rep: Reputation: 15
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

Last edited by UserName; 10-10-2003 at 09:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netcat question overbored Linux - Software 13 10-30-2004 04:26 PM
Netcat question igor8 Linux - Security 3 06-21-2004 12:55 PM
netcat install? Di0de Linux - Software 4 11-04-2003 10:52 AM
Anyone Familiar With Netcat ? Santorres Linux - Software 0 07-10-2003 06:27 PM
Anyone Familiar With Netcat ? Santorres Linux - Software 0 07-10-2003 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration