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

not compiling because of DB_CSS to DB_CCS change #26

Open
mcshane opened this issue Jul 25, 2020 · 4 comments
Open

not compiling because of DB_CSS to DB_CCS change #26

mcshane opened this issue Jul 25, 2020 · 4 comments

Comments

@mcshane
Copy link

mcshane commented Jul 25, 2020

DB_CSS was changed to DB_CCS in 917f6f1, but was not updated in dex2DB.c. Does not compile currently.

index 22f965d..76ab8c5 100644
--- a/dex2DB.c
+++ b/dex2DB.c
@@ -647,7 +647,7 @@ int main(int argc, char *argv[])
                 offset += clen;

                 if (pwell == s->well)
-                  { prec[pcnt].flags |= DB_CSS;
+                  { prec[pcnt].flags |= DB_CCS;
                     pcnt += 1;
                     if (pcnt >= pmax)
                       { pmax = ((int) (pcnt*1.2)) + 100;
@@ -843,7 +843,7 @@ int main(int argc, char *argv[])
                 offset += clen;

                 if (pwell == rec->well)
-                  { prec[pcnt].flags |= DB_CSS;
+                  { prec[pcnt].flags |= DB_CCS;
                     pcnt += 1;
                     if (pcnt >= pmax)
                       { pmax = ((int) (pcnt*1.2)) + 100;
@thegenemyers
Copy link
Owner

thegenemyers commented Jul 26, 2020 via email

@mcshane
Copy link
Author

mcshane commented Jul 27, 2020

Thanks @thegenemyers. Note DEXTRACTOR here also needs updating with the same fix. Not just in DASCRUBBER.

Sorry, I kind of dropped off with the palindrome adapters thing. Yes, would be good to restart that a work again. Will send an email.

@blaiseli
Copy link

blaiseli commented Jul 8, 2022

I have a related compilation failure with the version cloned from github yesterday:

dex2DB.c: In function ‘main’:
dex2DB.c:650:41: error: ‘DB_CSS’ undeclared (first use in this function); did you mean ‘DB_CCS’?
  650 |                   { prec[pcnt].flags |= DB_CSS;
      |                                         ^~~~~~
      |                                         DB_CCS
dex2DB.c:650:41: note: each undeclared identifier is reported only once for each function it appears in
make: *** [Makefile:36: dex2DB] Error 1

As a side note, on my debian-based linux, I had to patch the Makefile so that hdf5 is correctly found.
I added the following two variables:

PATH_HDF5_INCLUDE = /usr/include/hdf5/serial
PATH_HDF5_LIB = /usr/lib/x86_64-linux-gnu/hdf5/serial

And then replaced every occurrence of $(PATH_HDF5)/include and $(PATH_HDF5)/lib with $(PATH_HDF5_INCLUDE) and $(PATH_HDF5_LIB) respectively.

@thegenemyers
Copy link
Owner

thegenemyers commented Jul 8, 2022 via email

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

No branches or pull requests

3 participants