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

multiple definition of tu_debugging_enabled #184

Open
burmancomp opened this issue Aug 1, 2022 · 2 comments
Open

multiple definition of tu_debugging_enabled #184

burmancomp opened this issue Aug 1, 2022 · 2 comments

Comments

@burmancomp
Copy link

burmancomp commented Aug 1, 2022

System: Debian 11 (64-bit)
Amanda version: 3.5.2
GCC version: 10

Steps to reproduce:

./autogen
./configure
make

Resulting make failing with:

/usr/bin/ld: ./.libs/libtestutils.a(testutils.o):/home/user/amanda-tag-communit
y-3.5.2/common-src/testutils.h:78: multiple definition of `tu_debugging_enabled'
; amflock-test.o:/home/user/amanda-tag-community-3.5.2/common-src/testutils.h:7
8: first defined here
collect2: error: ld returned 1 exit status

GCC behavior has changed in version 10. See for example: https://stackoverflow.com/questions/69908418/multiple-definition-of-first-defined-here-on-gcc-10-2-1-but-not-gcc-8-3-0

@stefangweichinger
Copy link
Contributor

hitting that one as well

@megamoose
Copy link

megamoose commented Nov 9, 2022

Have the same problem, so I looked at whether I could fix it.

It turns out that it was fixed in the master branch a long time ago:

extern gboolean tu_debugging_enabled;

If using that is not an option, you can make the same change to the 3.5.2 version of common-src/testutils.h and it will work.

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

3 participants