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

call of overloaded 'AddTool' function is ambiguous when installing Erlang OTP 24.x versions #7514

Closed
SyedMuhamadYasir opened this issue Jul 26, 2023 · 9 comments
Assignees
Labels
bug Issue is reported as a bug priority:low team:PS Assigned to OTP team PS

Comments

@SyedMuhamadYasir
Copy link

Describe the bug
gen/wxe_wrapper_7.cpp: In function 'void wxToolBar_AddTool_4(WxeApp*, wxeMemEnv*, wxeCommand&)': gen/wxe_wrapper_7.cpp:2342:65: error: call of overloaded 'AddTool(int&, wxString&, wxBitmap&, wxString&, wxItemKind&)' is ambiguous 2342 | wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool(toolId,label,*bitmap,shortHelp,kind); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

image

To Reproduce
simply build Erlang OTP 24 or 24.3.4.13 from source OR through Kerl, doesn't matter and its the same error !

Expected behavior
A smooth Install

Affected versions
OTP 24.0 and also 24.3.4.13

Additional context

@SyedMuhamadYasir SyedMuhamadYasir added the bug Issue is reported as a bug label Jul 26, 2023
@garazdawi
Copy link
Contributor

garazdawi commented Jul 26, 2023

What OS are you building on and what version of c++ do you have?

Edit: And does 25/26 work?

@SyedMuhamadYasir
Copy link
Author

What OS are you building on and what version of c++ do you have?

Edit: And does 25/26 work?

Hi,

I am working on Ubuntu 22.04, i was building from source initially

as for the c++ / g ++ versions 👍

image

I don't want to complicate installation by installing erlang otp 25/26 since i need version 24 only for blockscout ( due to this : https://github.com/SyedMuhamadYasir/oldPolygonDocs/blob/main/additional-features/blockscout.md )

@garazdawi
Copy link
Contributor

You can set KERL_CONFIGURE_DISABLE_APPLICATIONS=wx before running kerl. That will disable wx and should get you up and running.

I don't know much about how wx works, but know that we have had issues in the past where they changed something in an API that made our version no longer compile. What version of wx widgets are you using?

@SyedMuhamadYasir
Copy link
Author

You can set KERL_CONFIGURE_DISABLE_APPLICATIONS=wx before running kerl. That will disable wx and should get you up and running.

I don't know much about how wx works, but know that we have had issues in the past where they changed something in an API that made our version no longer compile. What version of wx widgets are you using?

thank you, i might try that - however, i need to know if blockscout will work without wxwidgets.

as for the version for wxWidgets, i am using wxWidgets-3.2.2.1

@SyedMuhamadYasir
Copy link
Author

SyedMuhamadYasir commented Jul 26, 2023

@garazdawi , so i tried by disabling wx and i got this
image

any advices ?

@garazdawi
Copy link
Contributor

You are building Erlang 24.0 which was released May 2021 on an OS that was released April 2022. Try with latest 24 patch release instead and see if that works for you.

From the error message there seems to be something wrong with crypto, which leads me to think you have openssl 3 installed. OpenSSL 3 was first supported in Erlang 25, so if you insist on using Erlang 24 you will need to install an older openssl version.

@SyedMuhamadYasir
Copy link
Author

SyedMuhamadYasir commented Jul 26, 2023

You are building Erlang 24.0 which was released May 2021 on an OS that was released April 2022. Try with latest 24 patch release instead and see if that works for you.

From the error message there seems to be something wrong with crypto, which leads me to think you have openssl 3 installed. OpenSSL 3 was first supported in Erlang 25, so if you insist on using Erlang 24 you will need to install an older openssl version.

Thank you ! you have been immensely helpful !

Yes i have openssl 3 installed, but i will try an older version of openssl ( which one do you recommend ? )

I tried doing so with the latest Erlang 24 patch (24.3.4.13) and there's another error

i cannot disable wx because Blockscout uses wx - i will install an older version of openssl but i don't see any openssl errors in my latest attempt, only a warning ( please see screenshot below )

image

@garazdawi
Copy link
Contributor

My guess would be that you are using a too new wxwidget version. Try installing an older version and compile with that.

@jhogberg jhogberg added the team:PS Assigned to OTP team PS label Jul 31, 2023
@dgud
Copy link
Contributor

dgud commented Oct 19, 2023

This is fixed in OTP-25, so either upgrade OTP or downgrade to an older wxWidgets.

@dgud dgud closed this as completed Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:low team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

5 participants