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

Compile error on Debian 12.5 / Ubuntu 23.04 #65

Open
BtcAutoNode opened this issue Mar 20, 2024 · 0 comments
Open

Compile error on Debian 12.5 / Ubuntu 23.04 #65

BtcAutoNode opened this issue Mar 20, 2024 · 0 comments

Comments

@BtcAutoNode
Copy link

Hi,

in Debian 12 or Ubuntu 23.04 I get compile errors:
grafik


...
Generated plug app
==> bitcoinex
Compiling 14 files (.ex)
warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:188:34

warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:198:43

warning: ^^^ is deprecated. It is typically used as xor but it has the wrong precedence, use Bitwise.bxor/2 instead
lib/bech32.ex:201:18

warning: use Bitwise is deprecated. import Bitwise instead
lib/bech32.ex:8: Bitcoinex.Bech32

warning: function binary_slice/2 is unused
lib/base58.ex:126

== Compilation error in file lib/base58.ex ==
** (CompileError) lib/base58.ex:126: imported Kernel.binary_slice/2 conflicts with local function

could not compile dependency :bitcoinex, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile bitcoinex", update it with "mix deps.update bitcoinex" or clean it with "mix deps.clean bitcoinex"


As a workaround I changed the file bitfeed/server/bitcoinex/lib/base58.ex and deleted these lines at the end of the file:
125 @SPEC binary_slice(binary, Range.t()) :: binary
126 defp binary_slice(data, range) do
127 data
128 |> :binary.bin_to_list()
129 |> Enum.slice(range)
130 |> :binary.list_to_bin()
131 end

Then it compiles. Not sure if it is needed for something or not (as the warning says 'unused'). App still seem to work.

regards

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

1 participant