Skip to content

[bug]: Existence of logger.xml causes linking failure #539

Closed

Description

@InterLinked1

Severity

Critical

Versions

21.1.0-rc1

Components/Modules

logger.xml

Operating Environment

Debian 12

Frequency of Occurrence

Constant

Issue Description

Commit 008731b caused a regression by creating a .xml file named the same as a .c file, causing linking errors with logger.o

This causes failure to link the asterisk binary on certain platforms - it will consistently fail on certain platforms (e.g. for me), though not for others. However, according to @gtjoseph this is likely due to there being two rules, one from %c. and one from %.xml:

This leads to trying to compile logger.xml instead of logger.c, resulting in linking failure due to missing symbols. The existing xml files didn't cause this because they were all named differently from any .c files in the same directory.

To fix this, we simply rename the file to avoid a conflict.

objdump -t main/logger.o

main/logger.o:     file format elf64-x86-64

SYMBOL TABLE:
0000000000000000 l    d  .data  0000000000000000 .data
0000000000000000 l    d  .note.GNU-stack        0000000000000000 .note.GNU-stack
0000000000000708 g       .data  0000000000000000 _binary_logger_xml_end
0000000000000708 g       *ABS*  0000000000000000 _binary_logger_xml_size
0000000000000000 g       .data  0000000000000000 _binary_logger_xml_start

Relevant log output

No response

Asterisk Issue Guidelines

  • Yes, I have read the Asterisk Issue Guidelines

Activity

  1. added 2 commits that reference this issue on Jan 16, 2024
    6b26ffb
    d6a3020
  2. added 3 commits that reference this issue on Jan 17, 2024
    395c674
    2b587d1
    6fd6f22
  3. added a commit that references this issue on Jan 17, 2024
    ac71e40
  4. added 3 commits that reference this issue on Jan 18, 2024
    b9373a2
    87fb290
    e735ab8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions