EQjunkie
12-22-2001, 05:00 PM
I know everyone is probably sick of dealing with QT compile errors, but this one is stumping me. Any help would be appreciated.
Downloaded 2.3.2 from troll, set the QTDIR, LD_LIBRARY_PATH, and PATH to the appropriate directory, ran configure with the -thread -no-g++-exceptions, etc, as suggested. This is the error I'm getting, looks like right after it builds the shared library:
make[3]: Leaving directory `/usr/local/qt-2.3.2/src'
cd examples/guithreads;make 'QT_THREAD_SUFFIX=mt' 'QT_LFLAGS_MT=$(SYSCONF_LFLAGS_THREAD) $(SYSCONF_LIBS_THREAD' 'QT_CXX_MT=$(SYSCONF_CXXFLAGS_THREAD) -DQT_THREAD_SUPPORT' 'QT_C_MT=$(SYSCONF_CFLAGS_THREAD) -DQT_THREAD_SUPPORT'
make[3]: Entering directory `/usr/local/qt-2.3.2/examples/guithreads'
g++ -L/usr/local/qt/lib -Wl,-rpath,/usr/local/qt/lib -lpthread -o ./guithreads/main.o -lqt-mt
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlerror'
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlclose'
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlopen'
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[3]: *** [guithreads] Error 1
make[3]: Leaving directory `/usr/local/qt-2.3.2/examples/guithreads'
make[2]: *** [src-mt] Error 2
make[2]: Leaving directory `/usr/local/qt-2.3.2'
make[1]: *** [src-mt] Error 2
make[1]: Leaving directory `/usr/local/qt-2.3.2'
make: *** [init] Error 2
---
Relevant information:
/usr/local/qt is a symbolic link to /usr/local/qt-2.3.2
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.1/specs
Configured with ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.1 20011127 (Red Hat Linux Rawhide 3.1-0.10)
# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.1/specs
Configured with ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.1 20011127 (Red Hat Linux Rawhide 3.1-0.10)
RPMS:
automake-1.5-1
autoconf-2.52-5
binutils-2.11.92.0.12-7
glibc-common-2.2.4-20
glibc-2.2.4-20
glibc-devel-2.2.4-20
compat-glibc-6.2-2.1.3.2
libgcc-3.1-0.10
gcc-3.1-0.10
gcc-c++-3.1-0.10
libstdc++-3.1-0.10
libstdc++-2.96-81
libstdc++-devel-3.1-0.10
compat-libstdc++-6.2-2.9.0.14
zlib-devel-1.1.3-24
zlib-1.1.3-24
---
Any help would be appreciated.
Downloaded 2.3.2 from troll, set the QTDIR, LD_LIBRARY_PATH, and PATH to the appropriate directory, ran configure with the -thread -no-g++-exceptions, etc, as suggested. This is the error I'm getting, looks like right after it builds the shared library:
make[3]: Leaving directory `/usr/local/qt-2.3.2/src'
cd examples/guithreads;make 'QT_THREAD_SUFFIX=mt' 'QT_LFLAGS_MT=$(SYSCONF_LFLAGS_THREAD) $(SYSCONF_LIBS_THREAD' 'QT_CXX_MT=$(SYSCONF_CXXFLAGS_THREAD) -DQT_THREAD_SUPPORT' 'QT_C_MT=$(SYSCONF_CFLAGS_THREAD) -DQT_THREAD_SUPPORT'
make[3]: Entering directory `/usr/local/qt-2.3.2/examples/guithreads'
g++ -L/usr/local/qt/lib -Wl,-rpath,/usr/local/qt/lib -lpthread -o ./guithreads/main.o -lqt-mt
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlerror'
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlclose'
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlopen'
/usr/local/qt/lib/libqt-mt.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[3]: *** [guithreads] Error 1
make[3]: Leaving directory `/usr/local/qt-2.3.2/examples/guithreads'
make[2]: *** [src-mt] Error 2
make[2]: Leaving directory `/usr/local/qt-2.3.2'
make[1]: *** [src-mt] Error 2
make[1]: Leaving directory `/usr/local/qt-2.3.2'
make: *** [init] Error 2
---
Relevant information:
/usr/local/qt is a symbolic link to /usr/local/qt-2.3.2
# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.1/specs
Configured with ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.1 20011127 (Red Hat Linux Rawhide 3.1-0.10)
# g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.1/specs
Configured with ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib
Thread model: posix
gcc version 3.1 20011127 (Red Hat Linux Rawhide 3.1-0.10)
RPMS:
automake-1.5-1
autoconf-2.52-5
binutils-2.11.92.0.12-7
glibc-common-2.2.4-20
glibc-2.2.4-20
glibc-devel-2.2.4-20
compat-glibc-6.2-2.1.3.2
libgcc-3.1-0.10
gcc-3.1-0.10
gcc-c++-3.1-0.10
libstdc++-3.1-0.10
libstdc++-2.96-81
libstdc++-devel-3.1-0.10
compat-libstdc++-6.2-2.9.0.14
zlib-devel-1.1.3-24
zlib-1.1.3-24
---
Any help would be appreciated.