Installing Finch on OpenBSD without X11

Since my OpenBSD install doesn't use X11 I couldn't use the official Pidgin package and had to install by source instead. To start out, I used the following configure command:

./configure --enable-consoleui --disable-gtkui --without-x --with-python

Which resulted in the following error:

...
checking for initscr in -lncursesw... no
checking for update_panels in -lpanelw... no
checking for initscr in -lncurses... yes
checking for update_panels in -lpanel... no
configure: error:

Finch will not be built. You need to install ncursesw (or ncurses) and its development headers.

Unfortunately, both libpanel and libncurses exist, so clearly something must be going wrong w/ the pidgin configure script. Since I knew it was a problem w/ the detection of libpanel, I decided to go w/ the quick-fix option and simply changed lines 28670-28674 from:

if test $ac_cv_lib_panel_update_panels = yes; then
  GNT_LIBS="$GNT_LIBS -lpanel"
else
  enable_consoleui=no
fi

to:

GNT_LIBS="$GNT_LIBS -lpanel"

So I just forced it to add the panel libs.

Afterwards, there was just one more problem: the GMSGFMT and MSGFMT variables weren't set in 'po/Makefile'. 'msgfmt' is a program that's part of the gettext package, and was installed on my system in '/usr/local/bin/'. Therefore, all I had to do was set GMSGFMT and MSGFMT (lines 47 and 48) in 'po/Makefile' to '/usr/local/bin/msgfmt' and everything compiled smoothly.

Edit: Oh, and use 'gmake' of course instead of 'make'.

FLAVOR=no-x11

You could try talking to the port's maintainer, maybe get them to add a no-x11 flavour.

good point

I just contacted the maintainer and we'll see whether a no-x11 flavor can be added.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.