AppImageLauncher icon indicating copy to clipboard operation
AppImageLauncher copied to clipboard

Error during compilation : desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xa0): multiple definition of `_ZGRN15StringSanitizer13asciiLetters_E_'

Open rique opened this issue 1 year ago • 1 comments

Pre-submit checks

  • [X] I checked for similar issues beforehand, but could not find any, not even closed ones. I could not add my bug report to any existing issue.
  • [X] I am going to take the time to to fill in all the required details. I know that the bug report will be dismissed otherwise.

Describe the bug

Hi, I've been trying to compile AppImageLauncher but unsuccessfully. When I execute :

make libappimage libappimageupdate libappimageupdate-qt

I get the following errors:

/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xa0): multiple definition of `_ZGRN15StringSanitizer13asciiLetters_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x20): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xd8): multiple definition of `_ZGRN15StringSanitizer12asciiDigits_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x58): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/Integrator.cpp.o:(.rodata+0xe2): multiple definition of `_ZGRN15StringSanitizer14pathSafeChars_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x62): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/DesktopEntryEditor.cpp.o:(.rodata+0x20): multiple definition of `_ZGRN15StringSanitizer13asciiLetters_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x20): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/DesktopEntryEditor.cpp.o:(.rodata+0x58): multiple definition of `_ZGRN15StringSanitizer12asciiDigits_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x58): first defined here
/usr/bin/ld: desktop_integration/CMakeFiles/appimage_desktop_integration.dir/integrator/DesktopEntryEditor.cpp.o:(.rodata+0x62): multiple definition of `_ZGRN15StringSanitizer14pathSafeChars_E_'; utils/CMakeFiles/appimage_utils.dir/StringSanitizer.cpp.o:(.rodata+0x62): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/build.make:194: lib/libappimage/src/libappimage/libappimage.so.1.0.3] Error 1
make[2]: *** [CMakeFiles/Makefile2:2012: lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2019: lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/rule] Error 2
make: *** [Makefile:709: libappimage] Error 2

Prior to that I executed the bellow command with no issue

cmake .. -DCMAKE_INSTALL_PREFIX="$PREFIX" -DUSE_SYSTEM_BOOST=true

Attempted build from "stable" branch

Expected behavior

A successful build of libappimage libappimageupdate libappimageupdate-qt

Steps to reproduce the issue

After executing

cmake .. -DCMAKE_INSTALL_PREFIX="$PREFIX" -DUSE_SYSTEM_BOOST=true

execute the following command:

make libappimage libappimageupdate libappimageupdate-qt

Screenshots

Screenshot_20240125_190218

Distribution and desktop environment

OS: Nobara Linux 39 (KDE Plasma) x86_64 Release: Nobara release 39 (Thirty Nine) [Fedora based] Kernel: 6.7.0-204.fsync.fc39.x86_64 Desktop Environment: Plasma 5.27.10 Qt: 5.15.11 KDE Frameworks: 5.113.0 kf5-config: 1.0

Installed AppImageLauncher version

Build from stable branch

List of AppImages you tried

No response

Additional context

No response

rique avatar Jan 25 '24 18:01 rique

I got the same error, although before I got to that point, I had to edit hashlib.cpp and include .

collect2: error: ld returned 1 exit status
make[2]: *** [lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/build.make:194: lib/libappimage/src/libappimage/libappimage.so.1.0.3] Error 1
make[1]: *** [CMakeFiles/Makefile2:2028: lib/libappimage/src/libappimage/CMakeFiles/libappimage.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

OS: Ubuntu 24.04 LTS (Vanilla Gnome) x86_64

ricperry avatar May 04 '24 18:05 ricperry