Skip to content

Bug: error: linker command failed with exit code 1 #162

@DJMarxman

Description

@DJMarxman

Current Behaviour

Getting the following error when building or compiling with the newest version:

/usr/bin/ld: ../../../modules/libmodules.a(ModulesLoader.cpp.o): in function AddModulesScripts()':
ModulesLoader.cpp:(.text+0x2): undefined reference to `Addmod_ah_botScripts()'

clang++: error: linker command failed with exit code 1 (use -v to see invocation)

gmake[2]: *** [src/server/apps/CMakeFiles/worldserver.dir/build.make:197: src/server/apps/worldserver] Error 1

gmake[1]: *** [CMakeFiles/Makefile2:1149: src/server/apps/CMakeFiles/worldserver.dir/all] Error 2

gmake: *** [Makefile:136: all] Error 2`

This is on an existing, working install of a previous version. I updated the module and have been unable to compile my server since.

Expected Behaviour

Server compiles successfully.

Steps to reproduce the problem

Update module from previous version.

Compile/build server.

Extra Notes

No response

AC rev. hash/commit

I have no idea what this means. I'm a linux novice.

Operating system

Debian 13 x64

Custom changes or Modules

AHBot
Solocraft
Learn Spells
DynamicXP
AoE Loot
Solo LFG

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