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

Building warnings on openSUSE Tumbleweed #108

Closed
Eiji7 opened this issue Aug 24, 2019 · 3 comments
Closed

Building warnings on openSUSE Tumbleweed #108

Eiji7 opened this issue Aug 24, 2019 · 3 comments

Comments

@Eiji7
Copy link

Eiji7 commented Aug 24, 2019

Hey, I just set up latest Erlang, but found 2 problems …

libopenssl-devel vs openssl-devel

WARNING: It appears a required development package 'openssl-devel' is not installed.

which comes from ~/.asdf/plugins/erlang/kerl (lines 370-388):

_rpm_is_installed() {
    rpm --quiet -q "$1" >/dev/null 2>&1
}

_check_rpm() {
    required='
openssl-devel
make
automake
autoconf
ncurses-devel
gcc
'
    for pkg in $required; do
        if ! _rpm_is_installed "$pkg"; then
            echo "WARNING: It appears a required development package '$pkg' is not installed."
        fi
    done
}

Let me show you my output:

$ rpm -q openssl-devel
pakiet openssl-devel nie jest zainstalowany
# message in Polish that such package is not installed
$ rpm -q libopenssl-devel
libopenssl-devel-1.1.1c-1.1.noarch

For some distributions there might be different package names which is really confusing for developers, but also such warning is really confusing to end-users.

The odbc application

APPLICATIONS DISABLED (See: /home/…/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.7/otp_build_22.0.7.log)
 * odbc           : ODBC library - link check failed

Log file:

…
checking for odbc in standard locations... no
checking if we can add -Werror=return-type to CFLAGS (via CFLAGS)... yes
configure: creating ./config.status
config.status: creating c_src/x86_64-unknown-linux-gnu/Makefile
configure: WARNING: No odbc library found skipping odbc
configure: WARNING: "ODBC library - header check failed"
configure: WARNING: "ODBC library - link check failed"
…

The problem here is that I have installed all required packages i.e. libiodbc3, libltdl-devel (provided by libtool package) and unixODBC. Most probably I have missed something, but I was looking for it and of course tried to google it, but there are not much results for openSUSE.

@Stratus3D
Copy link
Member

That code you found that looks for openssl-devel is in https://github.com/kerl/kerl. asdf-erlang uses kerl underneath. It looks like it just checks for a list of packages, so it may take some work to get it working on OpenSUSE. I'm sure they would welcome the contribution over there though.

As for odbc, I'm not sure why it didn't find it. Did you install the equivalent of unixodbc-dev for your system?

@Eiji7
Copy link
Author

Eiji7 commented Aug 26, 2019

@Stratus3D Thanks for your reply! I'm recompiling Erlang now, but I can already see that odbc is not in list of disabled applications. The problem was that in YaST Software Manager I have unchecked option: Show -devel packages F7 and I simply did not saw it. 😄

I will create an issue on project you have linked, so this one could be closed.

@Eiji7 Eiji7 closed this as completed Aug 26, 2019
@oshanz
Copy link

oshanz commented Jul 15, 2021

kerl/kerl#323

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