Share

MINT - Multicast Packet Generator

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Help: Compilation errors in solaris during MINT make.

You are viewing a single message from this topic. View all messages.

  1. 2009-03-03 08:55:25 UTC
    Hi MINT-Developers,

    I am getting the below compilation errors of undefined reference to some symbols while compiling MINT.
    Do you have any idea, how to fix this in solaris environment?
    I am providing the error logs, solaris version info, and gcc version info below.

    LOGS:
    =====
    :/home/users/sapalani/MINT/NEW_MINT/mint-1.2
    $ make
    gcc -o mint mint.o ipv4_net.o ipv6_net.o transmit.o log.o
    ipv4_net.o: In function `mc_receiver':
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:26: undefined reference to `inet_aton'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:41: undefined reference to `inet_aton'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:75: undefined reference to `socket'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:81: undefined reference to `bind'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:91: undefined reference to `setsockopt'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:115: undefined reference to `setsockopt'
    ipv4_net.o: In function `mc_sender':
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:26: undefined reference to `inet_aton'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:41: undefined reference to `inet_aton'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:144: undefined reference to `socket'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:151: undefined reference to `setsockopt'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:159: undefined reference to `setsockopt'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:167: undefined reference to `setsockopt'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv4_net.c:175: undefined reference to `bind'
    ipv6_net.o: In function `mc6_sender':
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:26: undefined reference to `inet_pton'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:30: undefined reference to `gethostbyname2'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:68: undefined reference to `socket'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:75: undefined reference to `setsockopt'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:84: undefined reference to `setsockopt'
    ipv6_net.o: In function `mc6_receiver':
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:26: undefined reference to `inet_pton'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:30: undefined reference to `gethostbyname2'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:132: undefined reference to `socket'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:139: undefined reference to `bind'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:154: undefined reference to `setsockopt'
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/ipv6_net.c:176: undefined reference to `setsockopt'
    transmit.o: In function `recv_data':
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/transmit.c:46: undefined reference to `recvfrom'
    transmit.o: In function `send_data':
    /home/users/sapalani/MINT/NEW_MINT/mint-1.2/src/transmit.c:82: undefined reference to `sendto'
    collect2: ld returned 1 exit status
    *** Error code 1
    make: Fatal error: Command failed for target `all'
    :/home/users/sapalani/MINT/NEW_MINT/mint-1.2
    $

    $ uname -a
    SunOS inccidss0775 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V240
    gcc version 2.95.3 20010315 (release)

    Thanks,
    Saravanan
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.