Skip to content

Dash Core sometimes thinks it's libdashbls #5270

Open

Description

@PastaPastaPasta

image

See above, I think this is due to conflicting defines, and the bls one sometime coming up on top.

Activity

  1. kwvg commented on Mar 31, 2023

    @kwvg
    Collaborator

    Not reproducible on Ubuntu 20.04.5 LTS, built on 6e00fd0, after running git clean -dfx using --disable-ccache

    Dash-Qt RPC console

  2. PastaPastaPasta commented on Apr 3, 2023

    @PastaPastaPasta
    MemberAuthor

    Disabling ccache did resolve the issue.. I may clear my ccache and see what happens in the future

  3. PastaPastaPasta commented on Apr 7, 2023

    @PastaPastaPasta
    MemberAuthor

    Closing now as I can't reproduce locally

  4. knst commented on Apr 18, 2023

    @knst
    Collaborator

    hm.... I see strange warning while compiling core sometime:

    In file included from ./crypto/common.h:9,
                     from ./script/script.h:9,
                     from ./primitives/transaction.h:10,
                     from ./compressor.h:10,
                     from ./coins.h:9,
                     from ./evo/creditpool.h:8:
    ./config/bitcoin-config.h:381: note: this is the location of the previous definition
      381 | #define PACKAGE_BUGREPORT "https://github.com/dashpay/dash/issues"
          | 
    ./dashbls/depends/relic/include/relic_conf.h:497: warning: "PACKAGE_NAME" redefined
      497 | #define PACKAGE_NAME "libdashbls"
          | 
    ./config/bitcoin-config.h:384: note: this is the location of the previous definition
      384 | #define PACKAGE_NAME "Dash Core"
          | 
    ./dashbls/depends/relic/include/relic_conf.h:500: warning: "PACKAGE_STRING" redefined
      500 | #define PACKAGE_STRING "libdashbls 1.2.4"
          | 
    ./config/bitcoin-config.h:387: note: this is the location of the previous definition
      387 | #define PACKAGE_STRING "Dash Core 20.0.0"
          | 
    ./dashbls/depends/relic/include/relic_conf.h:503: warning: "PACKAGE_TARNAME" redefined
      503 | #define PACKAGE_TARNAME "libdashbls"
          | 
    ./config/bitcoin-config.h:390: note: this is the location of the previous definition
      390 | #define PACKAGE_TARNAME "dashcore"
          | 
    ./dashbls/depends/relic/include/relic_conf.h:506: warning: "PACKAGE_URL" redefined
      506 | #define PACKAGE_URL ""
          | 
    ./config/bitcoin-config.h:393: note: this is the location of the previous definition
      393 | #define PACKAGE_URL "https://dash.org/"
          | 
    ./dashbls/depends/relic/include/relic_conf.h:509: warning: "PACKAGE_VERSION" redefined
      509 | #define PACKAGE_VERSION "1.2.4"
          | 
    ./config/bitcoin-config.h:396: note: this is the location of the previous definition
      396 | #define PACKAGE_VERSION "20.0.0"
          | 
    

    I may assume that issue is reproduced for me.
    The last line of src/dashbls/configure.ac is:

    sed -i.old 's/PACKAGE/DASHBLS/g' depends/relic/include/relic_conf.h
    

    and it seems that sometimes it doesn't run or fails somehow.
    Not sure about steps to reproduce it though.

  5. reopened this on Apr 18, 2023
  6. kwvg commented on Apr 18, 2023

    @kwvg
    Collaborator

    Could you paste your build flags if possible?

  7. knst commented on Apr 18, 2023

    @knst
    Collaborator
    ./configure --prefix=$(pwd)/depends/x86_64-pc-linux-gnu --enable-suppress-external-warnings
    

    nothing special atm, but may be it was something specific in the past such as sanitizer, it's an old copy of repo.

  8. knst commented on May 10, 2023

    @knst
    Collaborator

    https://www.oreilly.com/library/view/autotools/9781593272067/ch04s08.html

    Finally, we come to the AC_OUTPUT macro, which expands, within configure, into shell code that generates the config.status script based on the data specified in the previous macro expansions. All other macros must be used before AC_OUTPUT is expanded, or they will be of little value to your generated configure script. (Additional shell script may be placed in configure.ac after AC_OUTPUT, but it will not affect the configuration or file generation performed by config.status.)
    
    Consider adding shell echo or print statements after AC_OUTPUT to tell the user how the build system is configured based on the specified command-line options. You can also use these statements to tell the user about additional useful targets for make
    

    It means that sed that is doing substitution for relic_conf.h is run only once but afterwards is used cached script from config.status and sed is not called again.

  9. added a commit that references this issue on Oct 14, 2026
  10. added a commit that references this issue on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions