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

Plugin not compiling #28

Open
SantiG012 opened this issue Aug 28, 2024 · 2 comments
Open

Plugin not compiling #28

SantiG012 opened this issue Aug 28, 2024 · 2 comments

Comments

@SantiG012
Copy link

SantiG012 commented Aug 28, 2024

I'm trying to compile check_rest_api v1.2.0. However, I get the following error while using make:

root@23b694dc9bed:~/check_rest_api-1.2.0/src# make

gcc -o check_rest_api check_rest_api.o read_input.o check_thresholds.c -Wall -Werror -lcurl -ljson-c

/usr/bin/ld: read_input.o:(.bss+0x0): multiple definition of `argVals'; check_rest_api.o:(.bss+0x0): first defined here
/usr/bin/ld: /tmp/ccndgguz.o:(.bss+0x0): multiple definition of `argVals'; check_rest_api.o:(.bss+0x0): first defined here

collect2: error: ld returned 1 exit status

make: *** [Makefile:11: check_rest_api] Error 1
@jlellis
Copy link

jlellis commented Sep 24, 2024

I'm seeing the same build error, on ubuntu 22.04.

@jlellis
Copy link

jlellis commented Sep 24, 2024

I found the fix. The behavior of gcc changed in ubuntu 22.04.
Makefile.PATCH

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

No branches or pull requests

2 participants