j2969719 / doublecmd-plugins

Additions for Double Commander (third-party)
100 stars 24 forks source link

bit7z.wcx failed to build #36

Closed spvkgn closed 4 months ago

spvkgn commented 4 months ago

Can't build with Bit7z 4.0.7 on ubuntu 22.04

# make -j2
g++ -shared -fPIC -Wl,--no-as-needed -std=c++17 -o '../bit7z.wcx' plugin.cpp -L third_party/bit7z/lib/x64 -lbit7z64 -I../../../sdk -Ithird_party/bit7z/include `pkg-config --cflags --libs glib-2.0` -D'PLUGNAME="bit7z.wcx"' -D'PLUGTARGET="default"' || echo bit7z.wcx >> ../../../dist/.build_fail.lst
g++ -shared -fPIC -Wl,--no-as-needed -std=c++17 -o '../auto_bit7z.wcx' plugin.cpp -DBIT7Z_AUTO_FORMAT -L third_party/bit7z/lib/x64 -lbit7z64 -I../../../sdk -Ithird_party/bit7z/include -D'PLUGNAME="auto_bit7z.wcx"' -D'PLUGTARGET="auto"' || echo auto_bit7z.wcx >> ../../../dist/.build_fail.lst
/usr/bin/ld: /tmp/cczdoc10.o: in function `CloseArchive':
plugin.cpp:(.text+0x1c88): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/bin/ld: third_party/bit7z/lib/x64/libbit7z64.a(bitarchiveeditor.cpp.o): warning: relocation against `_ZNSt8__detail9_Map_baseIjSt4pairIKjSt10unique_ptrIN5bit7z16GenericInputItemESt14default_deleteIS5_EEESaIS9_ENS_10_Select1stESt8equal_toIjESt4hashIjENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOj' in read-only section `.text'
/usr/bin/ld: third_party/bit7z/lib/x64/libbit7z64.a(bit7zlibrary.cpp.o): relocation R_X86_64_PC32 against symbol `_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10error_codeESaIS8_EED1Ev' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
/usr/bin/ld: /tmp/ccfzwO7L.o: in function `CloseArchive':
plugin.cpp:(.text+0x1def): warning: the use of `tempnam' is dangerous, better use `mkstemp'
/usr/bin/ld: third_party/bit7z/lib/x64/libbit7z64.a(bitarchiveeditor.cpp.o): warning: relocation against `_ZNSt8__detail9_Map_baseIjSt4pairIKjSt10unique_ptrIN5bit7z16GenericInputItemESt14default_deleteIS5_EEESaIS9_ENS_10_Select1stESt8equal_toIjESt4hashIjENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOj' in read-only section `.text'
/usr/bin/ld: third_party/bit7z/lib/x64/libbit7z64.a(bit7zlibrary.cpp.o): relocation R_X86_64_PC32 against symbol `_ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10error_codeESaIS8_EED1Ev' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status