Results 1 to 3 of 3

Thread: Compiling netcat

  1. #1
    Junior Member registered user
    Join Date
    May 2004
    Posts
    14

    Compiling netcat

    Seem to have a few problems here anyone understand whats going on here

    Code:
    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

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    Dunno what's wrong either but is there some reason you don't simply apt-get it from Debian?

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

  3. #3
    Junior Member registered user
    Join Date
    May 2004
    Posts
    14
    Looks like your missing a library

Similar Threads

  1. compiling applications
    By kurt_meier in forum General Support
    Replies: 10
    Last Post: 09-02-2005, 06:46 PM
  2. Compiling?
    By Jameson in forum General Support
    Replies: 6
    Last Post: 06-23-2005, 07:50 PM
  3. Compiling
    By Kowood in forum MS Windows & New to Linux
    Replies: 1
    Last Post: 04-17-2005, 10:44 AM
  4. Problem while compiling GTK+
    By Yuanlong in forum General Support
    Replies: 15
    Last Post: 08-03-2004, 11:01 AM
  5. Replies: 3
    Last Post: 09-06-2003, 11:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig UPOE Network Switch, no module picture

Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig UPOE Network Switch, no module

$379.97



Cisco WS-C3750G-24PS-S Catalyst 3750G 24-Port Gigabit Ethernet Network Switch  picture

Cisco WS-C3750G-24PS-S Catalyst 3750G 24-Port Gigabit Ethernet Network Switch

$59.99



ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301 picture

ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301

$125.69



Cisco Catalyst 3850 48 UPOE Ethernet Network Switch picture

Cisco Catalyst 3850 48 UPOE Ethernet Network Switch

$74.99



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



Cudy 5-Port 10/100Mbps Fast Ethernet Desktop Unmanaged Switch | FS105D picture

Cudy 5-Port 10/100Mbps Fast Ethernet Desktop Unmanaged Switch | FS105D

$12.99



Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch picture

Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch

$21.99



New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub picture

New 10/100 Mbps 8 Ports Fast Ethernet LAN Desktop RJ45 Network Switch Hub

$11.49



NetGear ProSafe GS752TP V1H1 52-Port Gigabyte PoE Ethernet Network Switch picture

NetGear ProSafe GS752TP V1H1 52-Port Gigabyte PoE Ethernet Network Switch

$109.99



Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture

Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED

$99.97