Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, March 2002
QT3 compile trouble


Message 1 in thread

Hi,

I've just tried to compile QT-3.0.3 on my machine, but it fails :(
The error is as follows:

gmake[4]: Wchodzę katalog `/usr/local/qt-x11-free-3.0.2/tools/designer/uic'
test -d ../../../bin/ || mkdir -p ../../../bin/
g++  -o ../../../bin/uic .obj/release/main.o .obj/release/uic.o 
.obj/release/form.o .obj/release/object.o .obj/release/subclassing.o 
.obj/release/embed.o .obj/release/widgetdatabase.o .obj/release/domtool.o 
.obj/release/parser.o   -Wl,-rpath,/usr/local/qt/lib -L/usr/local/qt/lib 
-L/usr/X11R6/lib -L/usr/X11R6/lib -lqt -lGLU -lGL -lXmu -lICE -lSM -ldl 
-lXext -lX11 -lm -lXinerama -lXrender
/usr/local/qt/lib/libqt.so: undefined reference to `pthread_getspecific'
/usr/local/qt/lib/libqt.so: undefined reference to `pthread_key_create'
/usr/local/qt/lib/libqt.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
gmake[4]: *** [../../../bin/uic] Błąd 1
gmake[4]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2/tools/designer/uic'
gmake[3]: *** [sub-uic] Błąd 2
gmake[3]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2/tools/designer'
gmake[2]: *** [sub-designer] Błąd 2
gmake[2]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2/tools'
gmake[1]: *** [sub-tools] Błąd 2
gmake[1]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2'
gmake: *** [init] Błąd 2

root@arista [/usr/local/qt]#> gcc --version
2.95.3

root@arista [/usr/local/qt]#> ldd -V
/lib/ld.so: version 1.9.9

root@arista [/usr/local/qt]#> ls -al /lib/libc.so.6
lrwxrwxrwx   1 root     root           13 Oct 20 21:56 /lib/libc.so.6 -> 
libc-2.2.2.so*

root@arista [/usr/local/qt]#> uname -a
Linux arista 2.4.18-rc2-ac1 #2 śro lut 20 19:31:33 CET 2002 i686 unknown

Distro: Slackware Linux, around 7.2.

Thanks in advance for any help.
-- 
 [ signature omitted ] 

Message 2 in thread

It looks like you are missing pthreads.  Do you have /usr/include/pthread.h?  
If not, might be time to install it.

On Monday 11 March 2002 2:49 pm, Tomek Jarzynka wrote:
> Hi,
>
> I've just tried to compile QT-3.0.3 on my machine, but it fails :(
> The error is as follows:
>
> gmake[4]: Wchodzę katalog `/usr/local/qt-x11-free-3.0.2/tools/designer/uic'
> test -d ../../../bin/ || mkdir -p ../../../bin/
> g++  -o ../../../bin/uic .obj/release/main.o .obj/release/uic.o
> .obj/release/form.o .obj/release/object.o .obj/release/subclassing.o
> .obj/release/embed.o .obj/release/widgetdatabase.o .obj/release/domtool.o
> .obj/release/parser.o   -Wl,-rpath,/usr/local/qt/lib -L/usr/local/qt/lib
> -L/usr/X11R6/lib -L/usr/X11R6/lib -lqt -lGLU -lGL -lXmu -lICE -lSM -ldl
> -lXext -lX11 -lm -lXinerama -lXrender
> /usr/local/qt/lib/libqt.so: undefined reference to `pthread_getspecific'
> /usr/local/qt/lib/libqt.so: undefined reference to `pthread_key_create'
> /usr/local/qt/lib/libqt.so: undefined reference to `pthread_setspecific'
> collect2: ld returned 1 exit status
> gmake[4]: *** [../../../bin/uic] Błąd 1
> gmake[4]: Opuszczam katalog
> `/usr/local/qt-x11-free-3.0.2/tools/designer/uic' gmake[3]: *** [sub-uic]
> Błąd 2
> gmake[3]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2/tools/designer'
> gmake[2]: *** [sub-designer] Błąd 2
> gmake[2]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2/tools'
> gmake[1]: *** [sub-tools] Błąd 2
> gmake[1]: Opuszczam katalog `/usr/local/qt-x11-free-3.0.2'
> gmake: *** [init] Błąd 2
>
> root@arista [/usr/local/qt]#> gcc --version
> 2.95.3
>
> root@arista [/usr/local/qt]#> ldd -V
> /lib/ld.so: version 1.9.9
>
> root@arista [/usr/local/qt]#> ls -al /lib/libc.so.6
> lrwxrwxrwx   1 root     root           13 Oct 20 21:56 /lib/libc.so.6 ->
> libc-2.2.2.so*
>
> root@arista [/usr/local/qt]#> uname -a
> Linux arista 2.4.18-rc2-ac1 #2 śro lut 20 19:31:33 CET 2002 i686 unknown
>
> Distro: Slackware Linux, around 7.2.
>
> Thanks in advance for any help.


Message 3 in thread

On Tuesday 12 March 2002 07:58, you wrote:
> On Monday 11 March 2002 23:00, you wrote:
> > It looks like you are missing pthreads.  Do you have
> > /usr/include/pthread.h? If not, might be time to install it.
>
> /* Linuxthreads - a simple clone()-based implementation of Posix        */
> /* threads for Linux.                                                   */
> /* Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr)              */
> /*                                                                      */
>
> Maybe there's a newer version?

However, the unreferenced functions are declared extern. Could you grep
through your header files and see if they're implemented elsewhere? Not
in my case.

-- 
 [ signature omitted ]