Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Saurabh9678 opened this issue Apr 23, 2024 · 3 comments
Open

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

Saurabh9678 opened this issue Apr 23, 2024 · 3 comments
Labels

Comments

@Saurabh9678
Copy link

Saurabh9678 commented Apr 23, 2024

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-ibm
Copy link
Member

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
Copy link
Author

Saurabh9678 commented Apr 26, 2024

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-ibm
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants