LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
255 stars 76 forks source link

HELP: Not able to setup the project in ubuntu system #449

Closed Saurabh9678 closed 5 months ago

Saurabh9678 commented 7 months ago

Describe the bug I have cloned the project in my system and after reading the readme, i have runned the ./autogen.sh script in root directory and then runned the ./configure, after I do make in the root, I am getting some errors and not able to fix it. It will be a great help if someone could help me to setup the project.

Error This is the error i am getting

*** Warning: Linking the shared library libtape-file.la against the
*** static library ../../../../messages/libtape_generic_file_dat.a is not portable!
libtool: link: rm -fr  .libs/libtape-file.so
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libtape_file_la-filedebug_tc.o .libs/libtape_file_la-filedebug_conf_tc.o .libs/libtape_file_la-ibm_tape.o   -Wl,-rpath -Wl,/media/saurabh/4A6C7F486C7F2E37/Surabhi -Wl,-rpath -Wl,Media/Code/ltfs-2.4.6.1-10511/src/libltfs/.libs -lfuse -luuid -lxml2 -licuuc -licudata -L/usr/lib/x86_64-linux-gnu -lnetsnmpmibs -lsensors -lpci -lnetsnmpagent -lwrap -lnetsnmp -lm -lssl -lcrypto ../../../../messages/libtape_generic_file_dat.a ../../../libltfs/.libs/libltfs.so -lrt -lpthread  -g -O2 -flto=auto -flto=auto -fstack-protector-strong -g -O2 -flto=auto -flto=auto -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-Bsymbolic-functions -flto=auto -flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-E -Wl,-Bsymbolic-functions -flto=auto -flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now   -pthread -Wl,-soname -Wl,libtape-file.so -o .libs/libtape-file.so
make[3]: *** [Makefile:467: libtape-file.la] Error 1
make[3]: Leaving directory '/media/saurabh/4A6C7F486C7F2E37/Surabhi Media/Code/ltfs-2.4.6.1-10511/src/tape_drivers/generic/file'
make[2]: *** [Makefile:696: all-recursive] Error 1
make[2]: Leaving directory '/media/saurabh/4A6C7F486C7F2E37/Surabhi Media/Code/ltfs-2.4.6.1-10511/src'
make[1]: *** [Makefile:523: all-recursive] Error 1
make[1]: Leaving directory '/media/saurabh/4A6C7F486C7F2E37/Surabhi Media/Code/ltfs-2.4.6.1-10511'
make: *** [Makefile:429: all] Error 2
piste-jp commented 7 months ago

It looks linker reported an error.

Please check the error reason by

  1. cd /media/saurabh/4A6C7F486C7F2E37/Surabhi Media/Code/ltfs-2.4.6.1-10511/src/tape_drivers/generic/file
  2. gcc -shared -fPIC -DPIC .libs/libtape_file_la-filedebug_tc.o .libs/libtape_file_la-filedebug_conf_tc.o .libs/libtape_file_la-ibm_tape.o -Wl,-rpath -Wl,/media/saurabh/4A6C7F486C7F2E37/Surabhi -Wl,-rpath -Wl,Media/Code/ltfs-2.4.6.1-10511/src/libltfs/.libs -lfuse -luuid -lxml2 -licuuc -licudata -L/usr/lib/x86_64-linux-gnu -lnetsnmpmibs -lsensors -lpci -lnetsnmpagent -lwrap -lnetsnmp -lm -lssl -lcrypto ../../../../messages/libtape_generic_file_dat.a ../../../libltfs/.libs/libltfs.so -lrt -lpthread -g -O2 -flto=auto -flto=auto -fstack-protector-strong -g -O2 -flto=auto -flto=auto -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-Bsymbolic-functions -flto=auto -flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-E -Wl,-Bsymbolic-functions -flto=auto -flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now -pthread -Wl,-soname -Wl,libtape-file.so -o .libs/libtape-file.so
Saurabh9678 commented 7 months ago
saurabh@saurabh:/media/saurabh/4A6C7F486C7F2E37/Surabhi Media/Code/ltfs-2.4.6.1-10511$ cd /media/saurabh/4A6C7F486C7F2E37/Surabhi\ Media/Code/ltfs-2.4.6.1-10511/src/tape_drivers/generic/file
saurabh@saurabh:/media/saurabh/4A6C7F486C7F2E37/Surabhi Media/Code/ltfs-2.4.6.1-10511/src/tape_drivers/generic/file$ gcc -shared  -fPIC -DPIC  .libs/libtape_file_la-filedebug_tc.o .libs/libtape_file_la-filedebug_conf_tc.o .libs/libtape_file_la-ibm_tape.o   -Wl,-rpath -Wl,/media/saurabh/4A6C7F486C7F2E37/Surabhi -Wl,-rpath -Wl,Media/Code/ltfs-2.4.6.1-10511/src/libltfs/.libs -lfuse -luuid -lxml2 -licuuc -licudata -L/usr/lib/x86_64-linux-gnu -lnetsnmpmibs -lsensors -lpci -lnetsnmpagent -lwrap -lnetsnmp -lm -lssl -lcrypto ../../../../messages/libtape_generic_file_dat.a ../../../libltfs/.libs/libltfs.so -lrt -lpthread  -g -O2 -flto=auto -flto=auto -fstack-protector-strong -g -O2 -flto=auto -flto=auto -fstack-protector-strong -g -O2 -O0 -ggdb -Wl,--no-undefined -Wl,--as-needed -pthread -Wl,-Bsymbolic-functions -flto=auto -flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-E -Wl,-Bsymbolic-functions -flto=auto -flto=auto -Wl,-z -Wl,relro -Wl,-z -Wl,now   -pthread -Wl,-soname -Wl,libtape-file.so -o .libs/libtape-file.so
/usr/bin/ld: cannot open output file .libs/libtape-file.so: No such file or directory
collect2: error: ld returned 1 exit status

got this after running the commands, can you guide?

piste-jp commented 6 months ago

See the error message. It looks something wrong... Check .lib/ is existed first.

/usr/bin/ld: cannot open output file .libs/libtape-file.so: No such file or directory
piste-jp commented 5 months ago

Close this because there is no activity long time.

Please feel free to reopen if something new is found.