Subject: 1.5_ALPHA2, C++ shared lib: Undefined symbol "" error
To: None <>
From: Ingolf Koch <>
List: tech-toolchain
Date: 08/28/2000 00:38:57

since some weeks before the netbsd-1-5 branch, I keep
trying to build KDE (from pkgsrc/x11/kde) on my sparc.
The kdebase package always fails to configure with the
following error message in config.log:

    configure:4120: checking for KDE libraries installed
    configure:4123: /bin/sh ./libtool --silent --mode=link
        g++ -o conftest -O2 -I/usr/pkg/include -mv8 -O2
        -I/usr/pkg/include -mv8 -O2 -I/usr/X11R6/qt1/include
        -I/usr/X11R6/include   -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
        -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib
        -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
        -L/usr/X11R6/lib -L/usr/X11R6/qt1/lib -Wl,-R/usr/pkg/lib
        -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib
        conftest.C  -lkdecore -lqt -lXext -lX11  -rpath /usr/X11R6/lib
        -rpath /usr/X11R6/qt1/lib -rpath /usr/lib  1>&5
    /usr/X11R6/lib/ warning: reference to compatibility
        setlocale(); include <locale.h> for correct reference
    /usr/X11R6/lib/ Undefined symbol "" (reloc type =
        12, symnum = 4)

If I link with libkdecore.a, the same error ("Undefined symbol") is
reported for /usr/X11R6/qt1/lib/ If I additionally use
libqt.a, everything works.

Both and are shared libraries made from C++
code. Or is this a pic/PIC issue?


Ingolf Koch     ICQ#60829470     Beste Kneipe in Jena-Ost
PGP: 0x7B3B5661  213C 828E 0C92 16B5  05D0 4D5B A324 EC04