ports -- compile error: /usr/local/lib/libkdesu.so: undefined reference to `unlockpt'

Jez Hancock jez.hancock at munk.nu
Fri May 9 04:29:40 PDT 2003

On Fri, May 09, 2003 at 01:41:37AM -0500, Philip M. Gollucci wrote:
> I've seen this on /usr/ports/java/jdk14, /usr/ports/deskutils/kdepim3, 
> /usr/ports/graphics/gimp-devel
> /bin/sh ../../libtool --silent --mode=link --tag=CXX c++  -Wnon-virtual-dtor 
> o-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -
> ite-strings -DNDEBUG -DNO_DEBUG -O2 -O -pipe -mcpu=pentiumpro -fno-exceptions
> no-check-new    -o kabc2mutt -L/usr/X11R6/lib -pthread -L/usr/local/lib  -L/u
> local/lib -R /usr/local/lib -R /usr/X11R6/lib -R /usr/X11R6/lib -R /usr/local
> b main.o -lkabc -lkdecore -Wl,-export-dynamic -L/usr/local/lib -L/usr/X11R6/l
> -ljpeg  -L/usr/X11R6/lib
> /usr/local/lib/libkdesu.so: undefined reference to `unlockpt'
> /usr/local/lib/libkdesu.so: undefined reference to `grantpt'
> gmake[3]: *** [kabc2mutt] Error 1
Long shot but...

You might want to check that the ports make system isnt' isn't using a
different version of libkdesu.so than it thinks it is - this can happen
if you somehow manage to get a version of the lib installed in a
location that overrides the lib in /usr/local/lib/.

Try this:

ldconfig -r | grep libkde

and see if there are any other refs to it other than the one in



More information about the freebsd-questions mailing list