Problems compiling qt-1.44 on iMac LinuxPPC-R4

Problems compiling qt-1.44 on iMac LinuxPPC-R4

Post by MC Hamme » Tue, 01 Jun 1999 04:00:00



Hi,

I installed Linux PPC on my iMac. Now I tried to install qt-1.44. But
the compilation failed. It links the qt-1.44 shared lib successfully.
But compiling any qt - program fails, because of nonreferenced function
calls:

Following warning is written while compiling the shared library:

g++ -c -I/usr/local/qt/include -I/usr/X11R6/include -pipe -O2
-fno-strength-reduce -O2 -fno-strength-reduce -fPIC  -o
kernel/qapplication_x11.o kernel/qapplication_x11.cpp
kernel/qapplication_x11.cpp: In function `bool
qt_set_socket_handler(int, int, class QObject *, bool)':
kernel/qapplication_x11.cpp:1638: warning: implicit declaration of
function `int __FD_ZERO(...)'
kernel/qapplication_x11.cpp:1664: warning: implicit declaration of
function `int __FD_SET(...)'
kernel/qapplication_x11.cpp:1676: warning: implicit declaration of
function `int __FD_CLR(...)'
kernel/qapplication_x11.cpp: In function `int sn_activate()':
kernel/qapplication_x11.cpp:1715: warning: implicit declaration of
function `int __FD_ISSET(...)'

But the library was made successfully.

But when the tutorials are compiled following error occurs:

make[2]: Entering directory `/opt/qt/tutorial/t1'
g++ -L/usr/local/qt/lib -L/usr/X11R6/lib  -o t1 main.o  -lqt -lX11
-lXext
/usr/local/qt/lib/libqt.so: undefined reference to `__FD_SET'
/usr/local/qt/lib/libqt.so: undefined reference to `__FD_ZERO'
/usr/local/qt/lib/libqt.so: undefined reference to `__FD_CLR'
/usr/local/qt/lib/libqt.so: undefined reference to `__FD_ISSET'
collect2: ld returned 1 exit status
make[2]: *** [t1] Error 1
make[2]: Leaving directory `/opt/qt/tutorial/t1'
make[1]: *** [t1] Error 2
make[1]: Leaving directory `/opt/qt/tutorial'
make: *** [tutorial] Error 2

Hmmm I read the FAQ on you page and disabled the optimizations. But the
error and warning still happend...

What is the problem ????

I am using:

egcs-2.91.57
binutils-2.9.1

Is there a solution ...

cu MC

 
 
 

Problems compiling qt-1.44 on iMac LinuxPPC-R4

Post by N.P.Ro.. » Sat, 05 Jun 1999 04:00:00



> Hi,
> I installed Linux PPC on my iMac. Now I tried to install qt-1.44. But
> the compilation failed. It links the qt-1.44 shared lib successfully.
> But compiling any qt - program fails, because of nonreferenced function
> calls:
> Following warning is written while compiling the shared library:
> g++ -c -I/usr/local/qt/include -I/usr/X11R6/include -pipe -O2
> -fno-strength-reduce -O2 -fno-strength-reduce -fPIC  -o
> kernel/qapplication_x11.o kernel/qapplication_x11.cpp
> kernel/qapplication_x11.cpp: In function `bool
> qt_set_socket_handler(int, int, class QObject *, bool)':
> kernel/qapplication_x11.cpp:1638: warning: implicit declaration of
> function `int __FD_ZERO(...)'
> kernel/qapplication_x11.cpp:1664: warning: implicit declaration of
> function `int __FD_SET(...)'
> kernel/qapplication_x11.cpp:1676: warning: implicit declaration of
> function `int __FD_CLR(...)'
> kernel/qapplication_x11.cpp: In function `int sn_activate()':
> kernel/qapplication_x11.cpp:1715: warning: implicit declaration of
> function `int __FD_ISSET(...)'
> But the library was made successfully.
> But when the tutorials are compiled following error occurs:

These errors are logical. They are the consequence of the warnings
above. qt uses a file which it cannot find. It warns you, but doesn't
bother. Only when using the tutorial you have to use __FD_SET etc.

Now for the hard part: how to get rid of the warnings.
As they seem to happen in one file only, try this hack:
in the file qapplication_x11.cpp (somewhere in a folder named kernel)
include before the first #include statement the following:
#include <sys/select.h>
and try compiling qt again.

- Show quoted text -

> egcs-2.91.57
> binutils-2.9.1
> Is there a solution ...
> cu MC



 
 
 

1. QT-1.3 vs. QT-1.44 for compiling games

I'm attempting to compile kpacman from source downloaded from rpmfind.net. I
have RedHat 6.2 installed on a Sun SparcStation 20. The configure script is
complaining it can't find qt-1.3 headers and libraries. I have installed
qt-2.1and qt-1.44 (which is described as being for backward compatability.)

I've tried linking, copying and renaming, but I still can't create a make
file. I'm not a c programmer, and I haven't been able to decipher the
configure script. Could some please help me? Thanks, John Zbesko

2. Problem remote mounting CD in 2.3

3. Compiling qt-1.44 under Linux-Mandrake 7.0

4. Fujitsu M2513 640M problem on SCO OSR5.0.2

5. Problems with LinuxPPC r4 on iMAC

6. AfterStep and Wharf sizing at 800x600

7. right way to upgrade qt-1.42->qt1.44 ?

8. Gurus!! Plz. help with FIND command

9. Upgrading glibc on LinuxPPC R4 on a iMac Rev.B

10. Epson 440 Printer with linuxppc/R4 on an iMac?

11. LinuxPPC Inc. Shipping R4 not R4.1??

12. LibC6 and QT 1-44

13. LinuxPPC-R4 will not install on a stock G3 with UltraWide SCSI ?