Skip to content
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

AIX compiling from source is failing #3807

Closed
XSven opened this issue Sep 6, 2023 · 1 comment · Fixed by #3808
Closed

AIX compiling from source is failing #3807

XSven opened this issue Sep 6, 2023 · 1 comment · Fixed by #3808

Comments

@XSven
Copy link

XSven commented Sep 6, 2023

operating system: AIX 7.3
compiler: gcc 8.3.0
applied build instructions: Building with configure (*nix including GNU/Linux)
error when linking:

...
gcc -std=gnu99 -Wall   -I/opt/freeware/include/libxml2 -I/opt/freeware/include     -g -O2   -o ctags  main/ctags-cmd.o libctags.a gnulib/libgnu.a -pthread -L/opt/freeware/lib64 -lxml2    -liconv
ld: 0711-317 ERROR: Undefined symbol: ._isnan
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
...

solution:

LIBS=-lm ./configure 

question: any idea how this additional LIBS environment configuration can be avoided?

leleliu008 added a commit to leleliu008/ctags that referenced this issue Sep 6, 2023
@leleliu008
Copy link
Member

@XSven Thank you for your report. It seems that the contributor (#3746) forgot to check whether libm should be linked or not. I have filed a PR (#3808) to fix this.

leleliu008 added a commit that referenced this issue Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants