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
  •  


Lot of 10pcs Brocade 57-1000012-01 8Gbps SWL 850nm SFP+ Optical Transceivers picture

Lot of 10pcs Brocade 57-1000012-01 8Gbps SWL 850nm SFP+ Optical Transceivers

$19.00



Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module picture

Cisco GLC-FE-100FX-RGD 100BASE-FX SFP Transceiver Module

$17.99



Cisco Meraki MA-SFP-1GB-SX 1000BASE-SX SFP Transceiver Module picture

Cisco Meraki MA-SFP-1GB-SX 1000BASE-SX SFP Transceiver Module

$24.99



Cisco Meraki MA-SFP-10GB-SR 10G SFP+ SR 850nm 300m LC MMF picture

Cisco Meraki MA-SFP-10GB-SR 10G SFP+ SR 850nm 300m LC MMF

$29.99



Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03  picture

Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03

$8.00



SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02 picture

SFP-10G-SR Original Cisco 10GBASE-SR SFP+ V02 Multi mode Transceiver 10-2415-02

$5.00



Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture

Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC

$13.89



Cisco Meraki MA-SFP-1GB-SX Network Tranceiver Module picture

Cisco Meraki MA-SFP-1GB-SX Network Tranceiver Module

$19.00



10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module picture

10 PCS Cisco GLC-LH-SMD 10-2625-01 1310nm SFP Transceiver Module

$85.00



New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module picture

New HP HPE Aruba J9150D 10G SFP+ LC SR 850nm 300m MMF XCVR Transceiver Module

$49.99