mc-4.7.4 make error,libslang.so: undefined reference to `tgetnum'

Hi,
I get the following error message with portmaster -ai -> (mc-4.7.4)

Code:
/usr/local/lib/libslang.so: undefined reference to `tgetnum'
/usr/local/lib/libslang.so: undefined reference to `tgetflag'
/usr/local/lib/libslang.so: undefined reference to `tgetent'
/usr/local/lib/libslang.so: undefined reference to `tgetstr'
gmake[3]: *** [mc] Fehler 1
gmake[3]: Leaving directory `/usr/ports/misc/mc/work/mc-4.7.4/src'
gmake[2]: *** [all-recursive] Fehler 1
gmake[2]: Leaving directory `/usr/ports/misc/mc/work/mc-4.7.4/src'
gmake[1]: *** [all-recursive] Fehler 1
gmake[1]: Leaving directory `/usr/ports/misc/mc/work/mc-4.7.4'
gmake: *** [all] Fehler 2

OS = FreeBSD 8.1

What can i do ?

thx

Stefan
 
From /usr/ports/UPDATING:
20090207:
AFFECTS: users of devel/libslang and devel/libslang2
AUTHOR: pgollucci@FreeBSD.org

devel/libslang has been removed in favor of devel/libslang2 after not
being released during last five years. WITH_SLANG2 is no longer a
valid ports KNOB. All ports that depend on devel/libslang should be
recompiled, e.g.:

# portupgrade -o devel/libslang2 devel/libslang

In short, remove libslang and install devel/libslang2.
 
in /usr/ports/misc/mc/Makefile

Code:
87c87
< CONFIGURE_ARGS+=--with-screen=slang
---
> CONFIGURE_ARGS+=--with-screen=slang --with-slang-libs=/usr/local/lib
and compile again :)
 
thx ika256
that is the trick :)

ika256 said:
in /usr/ports/misc/mc/Makefile

Code:
87c87
< CONFIGURE_ARGS+=--with-screen=slang
---
> CONFIGURE_ARGS+=--with-screen=slang --with-slang-libs=/usr/local/lib

and compile again :)
 
Tricks are not solutions, and ignoring /usr/ports/UPDATING will get you into trouble with this and other ports in the long run..
 
Had this same problem

Code:
FreeBSD 8.1-RELEASE #0: Wed Jul 21 06:55:14 CEST 2010
libslang2-2.2.2_1                   =   up-to-date with index

So the issue wasn't with libslang vs libslang2. The patch
Code:
87c87
< CONFIGURE_ARGS+=--with-screen=slang
---
> CONFIGURE_ARGS+=--with-screen=slang --with-slang-libs=/usr/local/lib
Fixed the issue for me. Probably to be added as a patch to the Makefile by the maintainer. Has anyone contacted fjoe on the issue or filed a PR yet?
 
I had libslang2 installed, but mc did
not compile, and deselected libslang by
"make config"... instead. I've not tried
that hack above...
 
Code:
# pkg_info | grep slang
libslang2-2.2.2_1   Routines for rapid alpha-numeric terminal applications deve

DutchDaemon said:
Tricks are not solutions, and ignoring /usr/ports/UPDATING will get you into trouble with this and other ports in the long run..
 
OK, SirDice
i have libslang2 look here:

Code:
# pkg_info | grep slang
libslang2-2.2.2_1   Routines for rapid alpha-numeric terminal applications deve

Do you have another idea, how one can make it better?

DutchDaemon said:
Tricks are not solutions, and ignoring /usr/ports/UPDATING will get you into trouble with this and other ports in the long run..
 
Back
Top