-
-
Notifications
You must be signed in to change notification settings - Fork 23
gzdopen, gzerror, gzread, ... not present in "libz_rs.so"'s cdylib? #370
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
Comments
I think #365 is the version to use, but you'll need to add I ran
along with diff --git a/Makefile b/Makefile
index 359585f..71d6026 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ ARCH_FLAGS= -msse -msse2 -msse3 -mssse3 -msse4.1
MEM_FLAGS= -DSAIS=1
CPPFLAGS+= -DENABLE_PREFETCH -DV17=1 -DMATE_SORT=0 $(MEM_FLAGS)
INCLUDES= -Isrc -Iext/safestringlib/include
-LIBS= -lpthread -lm -lz -L. -lbwa -Lext/safestringlib -lsafestring $(STATIC_GCC)
+LIBS= -lpthread -lm /home/folkertdev/rust/zlib-rs/libz-rs-sys-cdylib/target/release/libz_rs.so -L. -lbwa -Lext/safestringlib -lsafestring $(STATIC_GCC)
OBJS= src/fastmap.o src/bwtindex.o src/utils.o src/memcpy_bwamem.o src/kthread.o \
src/kstring.o src/ksw.o src/bntseq.o src/bwamem.o src/profiling.o src/bandedSWA.o \
src/FMI_search.o src/read_index_ele.o src/bwamem_pair.o src/kswv.o src/bwa.o \ and that does actually compile. Including the library with So, as you can see, the |
Hello @folkertdev, thanks for the suggestions and diff, that PR indeed fixed it!
Well, I'm preparing this repo/GHA for this (benchmarking) purpose, we have been working on bioconda/bioconda-recipes#56407 Right now take it very much with a pinch of salt, because I'm not sure if the I'll keep you posted, but meanwhile, feel free to borrow ideas from my GHA (or run it on a bigger (hosted?) CI runner with at least 60GB of RAM to index a human genome |
Uh oh!
There was an error while loading. Please reload this page.
Writing this with checked out repo on latest HEAD from today (commit 1cd807107f75b0b30fc7bd3ac34569bf75f407b6)
Thanks for offering a dynamic C lib way to substitute old zlib implementations! I'm trying to migrate a bioinformatics program away from it (
bwa-mem2
), but unfortunately, I can't see some of the symbols I need on the resulting shared lib, likegzdopen
?For good measure, I first followed the
cdylib
README.md and tried with a 1-line modification of the minimalzpipe.c
example first:And here's the output from the
bwa-mem2
patched Makefile:... and its corresponding error, so you can see that other symbols aren't public/visible either:
I'm either doing something wrong (PEBKAC) or there's some sort of regression in #335, #49, ...?
I can see some outstanding symbol visibility issues in #34, perhaps it's a known issue ATM?
The same issue is also present in #365
The text was updated successfully, but these errors were encountered: