New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Existence of logger.xml causes linking failure #539
Labels
Comments
InterLinked1
added a commit
to InterLinked1/asterisk
that referenced
this issue
Jan 16, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: asterisk#539
InterLinked1
added a commit
to InterLinked1/asterisk
that referenced
this issue
Jan 16, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: asterisk#539
jcolp
added
support-level-core
Functionality with core support level
regression
and removed
triage
labels
Jan 17, 2024
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 17, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 17, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 17, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
asterisk-org-access-app bot
pushed a commit
that referenced
this issue
Jan 17, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
mbradeen
pushed a commit
that referenced
this issue
Jan 18, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
mbradeen
pushed a commit
that referenced
this issue
Jan 18, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
mbradeen
pushed a commit
that referenced
this issue
Jan 18, 2024
Commit 008731b caused a regression by resulting in logger.xml being compiled and linked into the asterisk binary in lieu of logger.c on certain platforms if Asterisk was compiled in dev mode. To fix this, we ensure the file has a unique name without the extension. Most existing .xml files have been named differently from any .c files in the same directory or did not pose this issue. channels/pjsip/dialplan_functions.xml does not pose this issue but is also being renamed to adhere to this policy. Resolves: #539
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 oflogger.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.
Relevant log output
No response
Asterisk Issue Guidelines
The text was updated successfully, but these errors were encountered: