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

sracat: Adjust Makefile. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wwood
Copy link

@wwood wwood commented Jun 22, 2021

HI @jgans I was able to get it to work after adding this small change. For reasons I don't understand, -ldl had to be specified last, otherwise I got errors like this

c++  -o sracat   sracat.o -lm -lz -ldl -lpthread -L/home/ben/e/sracat-dev/lib64 -lncbi-ngs-c++ -lncbi-ngs -lngs-c++ -lncbi-vdb-static
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o): in function `KDyldLoad.isra.0':
sysdll.c:(.text+0x76): undefined reference to `dlopen'
/usr/bin/ld: sysdll.c:(.text+0x91): undefined reference to `dlsym'
/usr/bin/ld: sysdll.c:(.text+0xb1): undefined reference to `dlsym'
/usr/bin/ld: sysdll.c:(.text+0xd6): undefined reference to `dlsym'
/usr/bin/ld: sysdll.c:(.text+0x106): undefined reference to `dlsym'
/usr/bin/ld: sysdll.c:(.text+0x12b): undefined reference to `dlsym'
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o):sysdll.c:(.text+0x15e): more undefined references to `dlsym' follow
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o): in function `KDyldLoad.isra.0':
sysdll.c:(.text+0x191): undefined reference to `dlerror'
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o): in function `KDyldHomeDirectory':
sysdll.c:(.text+0x718): undefined reference to `dladdr'
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o): in function `KDylibRelease':
sysdll.c:(.text+0xe49): undefined reference to `dlclose'
/usr/bin/ld: sysdll.c:(.text+0xe69): undefined reference to `dlerror'
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o): in function `KSymAddrRelease':
sysdll.c:(.text+0x1421): undefined reference to `dlclose'
/usr/bin/ld: sysdll.c:(.text+0x1434): undefined reference to `dlerror'
/usr/bin/ld: /home/ben/e/sracat-dev/lib64/libncbi-vdb-static.a(kfs-sysdll.pic.o): in function `KDylibSymbol':
sysdll.c:(.text+0x14e5): undefined reference to `dlsym'
/usr/bin/ld: sysdll.c:(.text+0x14ed): undefined reference to `dlerror'
collect2: error: ld returned 1 exit status
make: *** [Makefile:33: sracat] Error 1

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

Successfully merging this pull request may close these issues.

1 participant