Skip to content

Binary link fails due to multiple definition of varables #13

@Fullaxx

Description

@Fullaxx

Nemesis does not successfully compile

Expected Behavior

Successful creation of nemesis binary

Actual Behavior

ld fails to link nemesis

/usr/bin/ld: nemesis-proto_dns.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-dns.h:32: multiple definition of `state'; nemesis-dns.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-dns.h:32: first defined here
/usr/bin/ld: nemesis-proto_icmp.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-icmp.h:42: multiple definition of `mode'; nemesis-icmp.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-icmp.h:42: first defined here
/usr/bin/ld: nemesis-proto_icmp.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-icmp.h:43: multiple definition of `got_origoptions'; nemesis-icmp.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-icmp.h:43: first defined here
/usr/bin/ld: nemesis-ospf.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-ospf.h:46: multiple definition of `mode'; nemesis-icmp.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-icmp.h:42: first defined here
/usr/bin/ld: nemesis-proto_ospf.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-ospf.h:46: multiple definition of `mode'; nemesis-icmp.o:/home/RL/packages/nemesis/nemesis-20210419/src/nemesis-icmp.h:42: first defined here

Steps to Reproduce the Problem

  1. make V=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions