Menu

#31 /usr/bin/ld: cannot find -lzstd

next
closed
None
5
2023-03-04
2019-08-17
No

I cant compile Worker 4.0.1 from source. My configure options:
./configure --prefix=/usr --enable-debug --with-x --with-libmagic
Error below:

libtool: link: g++ -g -O2 -std=c++14 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/lua5.2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wall -o worker about.o ajson.o ajson_scan.o argclass.o avfssupport.o basic_actions.o bgcopy_requestmessage.o bookmarkdb.o bookmarkdb_scanner.o bookmarkdbentry.o bookmarkdbfilter.o bookmarkdbproxy.o calendar.o changecolumnsop.o changelabelop.o changelayoutop.o changesymlinkop.o chmodop.o chmodowncore.o chownop.o chtimecore.o chtimeop.o clipboardop.o commandmenuop.o commonprefix.o condparser.o configparser.o configscanner.o configtokens.o copycore.o copyop.o copyopwin.o copyorder.o copystate.o createsymlinkop.o datei.o deeppathstore.o deletecore.o deleteop.o dirbookmarkaddui.o dirbookmarkeditui.o dirbookmarkop.o dirbookmarkssettings.o dirbookmarkui.o dircompareop.o dircomparewin.o dirfiltersettings.o dirsizeop.o dirsortsettings.o dmcacheentrynwc.o dnd.o enterdirop.o enterpathop.o eventqueue.o event_callbacks.o execlass.o exprfilter.o exprfilter_eval.o exprfilter_evalatoms.o exprfilter_parser.o exprfilter_scanner.o externalvdirop.o fileentry.o fileentry_color.o fileentry_customcolor.o fileentry_typecheck.o filelock.o filenameshrinker.o filereq.o fileviewer.o fileviewerbg.o flagreplacer.o flattypelist.o fontreq.o fstabmounttable.o functionproto.o genericdirectoryfilter.o get_files_thread.o getfsentmounttable.o getmntentmounttable.o getmntinfomounttable.o goftpop.o grouphash.o hintdb.o hw_volume.o hw_volume_manager.o import.o informationmode.o intviewop.o kvpstore.o layoutsettings.o lister.o listermode.o luascripting.o magic_db.o makedirop.o menutree.o menutreenode.o menutreeui.o modifytabsop.o mounttable.o mounttable_entry.o mtabmounttable.o nm_filetype_thread.o nmcopyopdir.o nmexternfe.o nmextlist.o nmfilter.o nmrowdata.o nmspecialsourceext.o nooperationop.o normalmode_requests.o normalops.o nwc_dir.o nwc_file.o nwc_fsentry.o nwc_os.o nwc_os_makedirs.o nwc_path.o nwc_virtualdir.o nwcentryselectionstate.o opencontextmenuop.o openworkermenuop.o ownop.o panel.o parentactionop.o partspace.o pathjumpop.o pathjumpui.o pathname_watcher.o pdatei.o pers_kvp.o pers_string_list.o persdeeppathstore.o prefixdb.o prefixdbentry.o prefixpathtree.o processexitaction.o processhandler.o reloadop.o renameop.o resultstore.o run_custom_action.o scriptinginterface.o scriptop.o scrolllisterop.o searchentryop.o searchop.o searchopbg.o searchsettings.o searchthread.o setfilterop.o setsortmodeop.o shortkeyfromlistop.o showdircacheop.o showimagemode.o simplelist.o startprogop.o string_completion.o stringbuf.o stringcomparator.o stringmatcher.o stringmatcher_flexiblematch.o stringmatcher_flexibleregex.o stringmatcher_fnmatch.o switchbuttonbankop.o tablookup.o tabprofilesop.o temporaryfilecache.o textstoragefile.o textviewmode.o timedtext.o togglelistermodeop.o verzeichnis.o view_newest_files_op.o virtualdirmode.o virtualdirmode_config.o virtualdirmode_copy.o virtualdirmode_delete.o virtualdirmode_regcommands.o volumemanagerop.o volumemanagerui.o waitthread.o wc_color.o wcbutton.o wcdoubleshortkey.o wcfiletype.o wchotkey.o wckey.o wconfig.o wconfig_bookmarkcolor.o wconfig_button.o wconfig_buttongrpconf.o wconfig_cachesize.o wconfig_clock.o wconfig_color.o wconfig_colorconf.o wconfig_colordef.o wconfig_dcd.o wconfig_dirsizeconf.o wconfig_expertui.o wconfig_filetype.o wconfig_font.o wconfig_generalconf.o wconfig_hotkey.o wconfig_imexport.o wconfig_lang.o wconfig_layout.o wconfig_lister.o wconfig_listview.o wconfig_mainui.o wconfig_mouse.o wconfig_ownerconf.o wconfig_palette.o wconfig_panel.o wconfig_pathjump_allow.o wconfig_path.o wconfig_start.o wconfig_termconf.o wconfig_time.o wconfig_volman.o wcpath.o worker.o worker_commands.o worker_filefunc.o worker_locale.o worker_shm.o worker_types.o workerinitialsettings.o wpucontext.o -pthread  aguix/libaguix.a -lSM -lICE -lX11 -L/usr/lib /usr/lib/libavfs.so -lz -lbz2 -lpthread -ldl -llzma -lzstd -lm -lmagic -lXft -llua5.2 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lXinerama -pthread
/usr/bin/ld: cannot find -lzstd
collect2: error: ld returned 1 exit status

Discussion

  • QkiZ Monster

    QkiZ Monster - 2019-08-17

    My OS is Ubuntu 19.04

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2019-08-19

    There is no direct dependency for libzstd in Worker but I think AVFS could wrongly inject this dependency. If you have installed AVFS from source, try to recompile this library too. If not, please attach the file config.log so I can check where this lib comes from.

     
  • QkiZ Monster

    QkiZ Monster - 2019-08-21

    config.log in attachment. thanks

     
  • QkiZ Monster

    QkiZ Monster - 2019-08-21

    I installed AVFS from deb repository.

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2019-08-28

    I have setup an ubuntu 19.04 installation to reproduce this issue. Turns out you need to install the package libzstd-dev which is not part of the dependencies of the avfs package. Then it should work as normal.

     
  • QkiZ Monster

    QkiZ Monster - 2019-08-30

    thx, works.

     
  • Ralf Hoffmann

    Ralf Hoffmann - 2019-10-04
    • status: open --> closed
     

Log in to post a comment.