Infintilenewbie
03-22-2002, 12:49 PM
After reading all the FAQ's, installing 3.0.1 rpms, compiling qt-2.3.2.
I have this as my setup.
Mandrake 8.2
Compiled /usr/local/qt-2.3.2 with -thread - worked no errors.
Installed compiler:
gcc-c++-2.96-0.76mdk
gcc3.0-cpp-3.0.1-1mdk
gcc3.0-3.0.1-1mdk
gcc-2.96-0.76mdk
gcc3.0-c++-3.0.1-1mdk
gcc-cpp-2.96-0.76mdk
libgcc3.0-3.0.1-1mdk
lrwxrwxrwx 1 root root 21 Mar 20 06:47 gcc -> /etc/alternatives/gcc*
-rwxr-xr-x 1 root root 86040 Feb 21 16:42 gcc-2.96*
lrwxrwxrwx 1 root root 9 Mar 22 10:44 gcc3 -> gcc-3.0.1*
-rwxr-xr-x 1 root root 75548 Aug 21 2001 gcc-3.0.1*
-rwxr-xr-x 1 root root 23 Aug 21 2001 gcc3-version*
I have pcaps installed, those parts appear fine.
Everything appears to be compiling, till the linking. I get this:
TOP:
Making all in maps
make[2]: Entering directory `/usr/src/RPM/BUILD/showeq-4.0/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/RPM/BUILD/showeq-4.0/maps'
Making all in src
make[2]: Entering directory `/usr/src/RPM/BUILD/showeq-4.0/src'
make all-am
make[3]: Entering directory `/usr/src/RPM/BUILD/showeq-4.0/src'
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++3 -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt-2.3.2/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share//showeq\" -DLOGDIR=\"/usr/local/share//showeq\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -c -o main.o
`test -f main.cpp || echo './'`main.cpp
source='spawn.cpp' object='spawn.o' libtool=no \
depfile='.deps/spawn.Po' tmpdepfile='.deps/spawn.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
IT looks good till this point:
###############################
g++3 -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt-2.3.2/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share//showeq\" -DLOGDIR=\"/usr/local/share//showeq\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -c -o gdbmconv.o `test -f gdbmconv.cpp || echo './'`gdbmconv.cpp
/bin/sh ../libtool --mode=link g++3 -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -o showeq main.o spawn.o spawnshell.o spawnlist.o spellshell.o spelllist.o preferences.o m_preferences.o vpacket.o editor.o filter.o m_spawnshell.o m_spawnlist.o m_spellshell.o m_spelllist.o m_editor.o packet.o m_packet.o interface.o m_interface.o compass.o m_compass.o map.o m_map.o util.o experiencelog.o m_experiencelog.o msgdlg.o m_msgdlg.o player.o m_player.o decode.o m_decode.o skilllist.o m_skilllist.o statlist.o m_statlist.o filtermgr.o m_filtermgr.o mapcore.o category.o m_category.o compassframe.o m_compassframe.o group.o
m_group.o itemdb.o gdbmconv.o -L/usr/local/qt-2.3.2/lib -lqt-mt -lpthread -rpath /usr/local/qt-2.3.2/lib -rpath /usr/X11R6/lib -lEQ -lgdbm -lz -lpcap
g++3 -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -o showeq main.o spawn.o spawnshell.o spawnlist.o spellshell.o spelllist.o preferences.o m_preferences.o vpacket.o editor.o filter.o m_spawnshell.o m_spawnlist.o m_spellshell.o m_spelllist.o m_editor.o packet.o m_packet.o interface.o m_interface.o compass.o m_compass.o map.o m_map.o util.o experiencelog.o m_experiencelog.o msgdlg.o m_msgdlg.o player.o m_player.o decode.o m_decode.o skilllist.o m_skilllist.o statlist.o m_statlist.o filtermgr.o m_filtermgr.o mapcore.o category.o m_category.o compassframe.o m_compassframe.o group.o m_group.o itemdb.o gdbmconv.o -L/usr/local/qt-2.3.2/lib -lqt-mt -lpthread -lEQ /usr/local/lib/libgdbm.so -lz -lpcap -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/qt-2.3.2/lib -Wl,--rpath -Wl,/usr/X11R6/lib
main.o: In function `main':
/usr/src/RPM/BUILD/showeq-4.0/src/main.cpp:174: undefined reference to `QString::QString(char
const*)'
main.o: In function `main':
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:643: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:643: undefined reference to `QString::shared_null'
main.o: In function `main':
/usr/src/RPM/BUILD/showeq-4.0/src/main.cpp:184: undefined reference to `QString::operator=(char const*)'
main.o: In function `main':
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::latin1() const'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::latin1() const'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::latin1() const'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
Etc... continued for every module it appears it tried to link.
I'm stumped, I've tried 3.0.4 gcc, I've tried qt3.x, this current build is on a very clean mandrake 8.2 install, all disks reformated.
CVS is from a couple days ago?
Any ideas?
thanks!
I have this as my setup.
Mandrake 8.2
Compiled /usr/local/qt-2.3.2 with -thread - worked no errors.
Installed compiler:
gcc-c++-2.96-0.76mdk
gcc3.0-cpp-3.0.1-1mdk
gcc3.0-3.0.1-1mdk
gcc-2.96-0.76mdk
gcc3.0-c++-3.0.1-1mdk
gcc-cpp-2.96-0.76mdk
libgcc3.0-3.0.1-1mdk
lrwxrwxrwx 1 root root 21 Mar 20 06:47 gcc -> /etc/alternatives/gcc*
-rwxr-xr-x 1 root root 86040 Feb 21 16:42 gcc-2.96*
lrwxrwxrwx 1 root root 9 Mar 22 10:44 gcc3 -> gcc-3.0.1*
-rwxr-xr-x 1 root root 75548 Aug 21 2001 gcc-3.0.1*
-rwxr-xr-x 1 root root 23 Aug 21 2001 gcc3-version*
I have pcaps installed, those parts appear fine.
Everything appears to be compiling, till the linking. I get this:
TOP:
Making all in maps
make[2]: Entering directory `/usr/src/RPM/BUILD/showeq-4.0/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/RPM/BUILD/showeq-4.0/maps'
Making all in src
make[2]: Entering directory `/usr/src/RPM/BUILD/showeq-4.0/src'
make all-am
make[3]: Entering directory `/usr/src/RPM/BUILD/showeq-4.0/src'
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++3 -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt-2.3.2/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share//showeq\" -DLOGDIR=\"/usr/local/share//showeq\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -c -o main.o
`test -f main.cpp || echo './'`main.cpp
source='spawn.cpp' object='spawn.o' libtool=no \
depfile='.deps/spawn.Po' tmpdepfile='.deps/spawn.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
IT looks good till this point:
###############################
g++3 -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/qt-2.3.2/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share//showeq\" -DLOGDIR=\"/usr/local/share//showeq\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -c -o gdbmconv.o `test -f gdbmconv.cpp || echo './'`gdbmconv.cpp
/bin/sh ../libtool --mode=link g++3 -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -o showeq main.o spawn.o spawnshell.o spawnlist.o spellshell.o spelllist.o preferences.o m_preferences.o vpacket.o editor.o filter.o m_spawnshell.o m_spawnlist.o m_spellshell.o m_spelllist.o m_editor.o packet.o m_packet.o interface.o m_interface.o compass.o m_compass.o map.o m_map.o util.o experiencelog.o m_experiencelog.o msgdlg.o m_msgdlg.o player.o m_player.o decode.o m_decode.o skilllist.o m_skilllist.o statlist.o m_statlist.o filtermgr.o m_filtermgr.o mapcore.o category.o m_category.o compassframe.o m_compassframe.o group.o
m_group.o itemdb.o gdbmconv.o -L/usr/local/qt-2.3.2/lib -lqt-mt -lpthread -rpath /usr/local/qt-2.3.2/lib -rpath /usr/X11R6/lib -lEQ -lgdbm -lz -lpcap
g++3 -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -o showeq main.o spawn.o spawnshell.o spawnlist.o spellshell.o spelllist.o preferences.o m_preferences.o vpacket.o editor.o filter.o m_spawnshell.o m_spawnlist.o m_spellshell.o m_spelllist.o m_editor.o packet.o m_packet.o interface.o m_interface.o compass.o m_compass.o map.o m_map.o util.o experiencelog.o m_experiencelog.o msgdlg.o m_msgdlg.o player.o m_player.o decode.o m_decode.o skilllist.o m_skilllist.o statlist.o m_statlist.o filtermgr.o m_filtermgr.o mapcore.o category.o m_category.o compassframe.o m_compassframe.o group.o m_group.o itemdb.o gdbmconv.o -L/usr/local/qt-2.3.2/lib -lqt-mt -lpthread -lEQ /usr/local/lib/libgdbm.so -lz -lpcap -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/qt-2.3.2/lib -Wl,--rpath -Wl,/usr/X11R6/lib
main.o: In function `main':
/usr/src/RPM/BUILD/showeq-4.0/src/main.cpp:174: undefined reference to `QString::QString(char
const*)'
main.o: In function `main':
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:643: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:643: undefined reference to `QString::shared_null'
main.o: In function `main':
/usr/src/RPM/BUILD/showeq-4.0/src/main.cpp:184: undefined reference to `QString::operator=(char const*)'
main.o: In function `main':
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::latin1() const'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::latin1() const'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::QString(char const*)'
/usr/local/qt-2.3.2/include/qstring.h:511: undefined reference to `QString::latin1() const'
/usr/local/qt-2.3.2/include/qstring.h:650: undefined reference to `QString::shared_null'
/usr/local/qt-2.3.2/include/qstring.h:652: undefined reference to `QStringData::deleteSelf()'
Etc... continued for every module it appears it tried to link.
I'm stumped, I've tried 3.0.4 gcc, I've tried qt3.x, this current build is on a very clean mandrake 8.2 install, all disks reformated.
CVS is from a couple days ago?
Any ideas?
thanks!