This occurs after the AUR package ACE is installed, and during the azerothcore package build:
[ 14%] Building CXX object src/common/CMakeFiles/common.dir/Collision/Models/WorldModel.cpp.o
[ 14%] Building CXX object src/common/CMakeFiles/common.dir/Configuration/Config.cpp.o
[ 14%] Building CXX object src/common/CMakeFiles/common.dir/Cryptography/ARC4.cpp.o
[ 14%] Building CXX object src/common/CMakeFiles/common.dir/Cryptography/BigNumber.cpp.o
In file included from /home/zeb/.cache/yay/azerothcore/src/azerothcore-wotlk/src/common/Cryptography/BigNumber.cpp:9:
In file included from /home/zeb/.cache/yay/azerothcore/src/azerothcore-wotlk/src/common/Cryptography/BigNumber.h:11:
In file included from /usr/include/ace/Auto_Ptr.h:211:
/usr/include/ace/Auto_Ptr.inl:88:1: error: reference to 'auto_ptr' is ambiguous
auto_ptr<X>::operator-> () const
^
/usr/include/ace/Auto_Ptr.h:95:7: note: candidate found by name lookup is 'auto_ptr'
class auto_ptr : public ACE_Auto_Basic_Ptr<X>
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/backward/auto_ptr.h:89:11: note: candidate found by name lookup is 'std::auto_ptr'
class auto_ptr
^
[ 14%] Building CXX object src/common/CMakeFiles/common.dir/Cryptography/HMACSHA1.cpp.o
1 error generated.
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:307: src/common/CMakeFiles/common.dir/Cryptography/BigNumber.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/zeb/.cache/yay/azerothcore/src/azerothcore-wotlk/src/common/Cryptography/HMACSHA1.cpp:8:
In file included from /home/zeb/.cache/yay/azerothcore/src/azerothcore-wotlk/src/common/Cryptography/BigNumber.h:11:
In file included from /usr/include/ace/Auto_Ptr.h:211:
/usr/include/ace/Auto_Ptr.inl:88:1: error: reference to 'auto_ptr' is ambiguous
auto_ptr<X>::operator-> () const
^
/usr/include/ace/Auto_Ptr.h:95:7: note: candidate found by name lookup is 'auto_ptr'
class auto_ptr : public ACE_Auto_Basic_Ptr<X>
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/backward/auto_ptr.h:89:11: note: candidate found by name lookup is 'std::auto_ptr'
class auto_ptr
^
1 error generated.
make[2]: *** [src/common/CMakeFiles/common.dir/build.make:321: src/common/CMakeFiles/common.dir/Cryptography/HMACSHA1.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:887: src/common/CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
I cannot confirm on Windows
I replicated again on a 2nd arch linux machine, same errors as above. https://www.azerothcore.org/wiki/arch-linux these instructions to be clear.
$ clang --version
clang version 10.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
But I am unsure if it's a problem that could be addressed in https://aur.archlinux.org/packages/azerothcore/ or in this repo, or if its me doing something wrong
@FrancescoBorzi
@Zebouski please add the required details to the issue report... e.g. AC commit hash, operating system, etc...
About the issue, I had the same on macOS and fixed together with @meerd
Not sure why you still have it. Are you using latest AC version?
Thanks, to clarify this is Arch Linux w/ clang version 10.0.1
using the https://aur.archlinux.org/packages/azerothcore/ AUR pkgbuild as per https://www.azerothcore.org/wiki/arch-linux
And yep it seems to be using the latest master commit 6ac68128d as expected:
[zeb@zebArchDesktop ~/.cache/yay/azerothcore/src/azerothcore-wotlk]$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
[zeb@zebArchDesktop ~/.cache/yay/azerothcore/src/azerothcore-wotlk]$ git log --oneline -1
6ac68128d (HEAD -> master, origin/master, origin/HEAD) Import pending SQL update file...
[zeb@zebArchDesktop ~/.cache/yay/azerothcore/src/azerothcore-wotlk]$
@Zebouski can you please try to compile a clean build and passing -DACE_LACKS_AUTO_PTR=1 to your cmake command?
A new clean build failed again with that cmake flag
But:
I just noticed that the AUR pkgbuild for ace was version 6.5.10, and that 6.5.11 was released just last week. I updated that ACE build to 6.5.11 and now azerothcore completes building as expected.
Sorry! It was a downstream issue. Thanks for your time
We should add a FAQ or Troubleshooting section in the wiki with these error and solution
@Zebouski awesome! Thanks for letting us know
Most helpful comment
A new clean build failed again with that cmake flag
But:
I just noticed that the AUR pkgbuild for ace was version 6.5.10, and that 6.5.11 was released just last week. I updated that ACE build to 6.5.11 and now azerothcore completes building as expected.
Sorry! It was a downstream issue. Thanks for your time