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

wrong error message in ./configure #1334

Closed
em92 opened this issue May 8, 2020 · 3 comments · Fixed by #1349
Closed

wrong error message in ./configure #1334

em92 opened this issue May 8, 2020 · 3 comments · Fixed by #1349
Assignees
Milestone

Comments

@em92
Copy link

em92 commented May 8, 2020

Hi!
Trying to compile profanity. I already have compiled libmesode* files in /home/eugene/.local/lib
and libmesode.h in /home/eugene/.local/include.
I run this:

Steps to Reproduce (for bugs)

export libmesode_LIBS="-L/home/eugene/.local/libs -lmesode"  # pay attention to typo in directory. It is "libs", but must be "lib" 
export libmesode_CFLAGS="-I/home/eugene/.local/include"
./configure --prefix=/home/eugene/.local

Expected Behavior

Expecting message like "-lmesode" not found.

Current Behavior

checking for libmesode... yes
checking for ncursesw... yes
checking for wget_wch support in ncursesw... no
configure: error: ncurses does not support wide characters

Possible Solution

Maybe adding extra check when trying to compile this

int main() {
  return 0;
}

config.log attached. There is /usr/bin/ld: cannot find -lmesode

config.log

@DebXWoody
Copy link
Contributor

Did you install libmesode also in your distribution? Will pkg-config --libs libmesode find mesode?

@em92
Copy link
Author

em92 commented May 24, 2020

Did you install libmesode also in your distribution? Will pkg-config --libs libmesode find mesode?

$ pkg-config --libs libmesode
Package libmesode was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmesode.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmesode' found

libmesode.pc existed in my ~/.local/lib/pkgconfig/libmesode.pc but I didn't set PKG_CONFIG_PATH. So I configurated environment variables libmesode_LIBS and libmesode_CFLAGS (see first message, there is a comment about a typo).

Anyway, the problem is that error message says "There is a problem with wget_wch" but in fact it just didn't find libmesode with incorrect settings. So I spent time searching solution how to fix problem with wget_wch meanwhile everything was fine with it.

pasis added a commit that referenced this issue May 31, 2020
After the library is found by pkg-config, try to build a simple program
to check the installation. The motivation of this check is that the
chance that users manually install libstrophe/libmesode is higher than
for other libs.

Fixes #1334.
@pasis
Copy link
Member

pasis commented May 31, 2020

I've added additional check that a simple program builds with libstrophe/libmesode. This check makes sense for libstrophe, since the library is not common for all Linux/*nix distributions and users need to install it manually.

But please don't ask to do this for every library that is present in most distributions :).

@jubalh jubalh added this to the 0.9.0 milestone Jun 1, 2020
jubalh added a commit that referenced this issue Jun 3, 2020
@jubalh jubalh self-assigned this Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants