Menu

#184 multiple definition of tu_debugging_enabled

open
nobody
None
2022-11-09
2022-08-01
Anonymous
No

Originally created by: burmancomp

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

Related

Tickets: #185

Discussion

  • Anonymous

    Anonymous - 2022-08-02

    Originally posted by: stefangweichinger

    hitting that one as well

     
  • Anonymous

    Anonymous - 2022-11-09

    Originally posted by: megamoose

    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:
    https://github.com/zmanda/amanda/blob/6fc364280b0aa5dbfe45fe7448c33d5234611788/common-src/testutils.h#L78

    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.

     

Log in to post a comment.