PDA

View Full Version : SighCan't compile qt-2.3.2 / mandrake 8.0



darumd
01-22-2002, 02:02 AM
I am following Fryfrog's intructions to the letter but get an error out during the make of qt-2.3.2

Here is the error I get and have no clue how to fix...seems to have something to do with the friggin printer.

Kernel/qt_x11.h:65:22: X11/Xlib.h: No such file or directory
Kernel/qt_x11.h:71:23: X11/Xutil.h: No such file or directory
Kernel/qt_x11.h:72:21: x11/Xos.h: No such file or directory
Kernel/qt_x11.h:73:23: X11/Xatom.h: No such file or directory
Kernel/qt_x11.h:84:34: X11/extension/shape.h: No such file or directory
kernel/qpsprinter.cpp: In method 'USHORT
kernel/qpsprinter.cpp:3328: warning: 'ULONG offset' might be used uninitialized in this function

then some other stuff :)

Kernel/qpsprinter.cpp.5194: warning 'char**font_path' might be used uninitialized in this function
make[3]: *** [kernel/qpsprinter.o] Effor 1
make[3]: Leaving directory '/usr/lib/qt-2.3.2/src
make[2]: *** [src-mt] error 2
make[2]: Leaving directory '/usr/lib/qt-2.3.2'
make[1]: *** [src-mt] Error 2
make[1]: Leaving directory '/usr/lib/qt-2.3.2'
make: *** [init] error 2

anyone know what is wrong? Am I missing an rpm or a setting or something?
been battling the qt-2.3.2 install for 3 days now.
Any help would be appreciated.

fryfrog
01-22-2002, 02:53 AM
okay, i am running mandrake and don't have access to a redhat 7.2 box at the moment, but mdk and rh are VERY similar so maybe this will help you.

do the following few things and then post what they say... update your slocate database, then slocate each of the files it says don't exist. see where they are. you can see the following where they are in mdk, and then i ran an rpm -qf on each file. rpm -qf will tell you what package they belong to. so imho, it looks like you are missing your XFree86-4.1.0-devel rpms. let me check and see if its on the required lists already :)



slocate -u &
slocate Xlib.h




[root@mystique qt-2.3.2]# slocate Xlib.h
/usr/X11R6/include/X11/Xlib.h
[root@mystique qt-2.3.2]# slocate Xutil.h
/usr/X11R6/include/X11/Xutil.h
[root@mystique qt-2.3.2]# slocate Xos.h
/usr/X11R6/include/X11/Xos.h
[root@mystique qt-2.3.2]# slocate Xatom.h
/usr/X11R6/include/X11/Xatom.h
[root@mystique qt-2.3.2]# slocate shape.h
/usr/X11R6/include/X11/extensions/shape.h
[root@mystique qt-2.3.2]# rpm -qf /usr/X11R6/include/X11/extensions/shape.h
XFree86-devel-4.1.0-17mdk
[root@mystique qt-2.3.2]# rpm -qf /usr/X11R6/include/X11/Xatom.h
XFree86-devel-4.1.0-17mdk
[root@mystique qt-2.3.2]# rpm -qf /usr/X11R6/include/X11/Xos.h
XFree86-devel-4.1.0-17mdk
[root@mystique qt-2.3.2]# rpm -qf /usr/X11R6/include/X11/Xutil.h
XFree86-devel-4.1.0-17mdk
[root@mystique qt-2.3.2]# rpm -qf /usr/X11R6/include/X11/Xlib.h
XFree86-devel-4.1.0-17mdk


**update: i went back and checked... yes, XFree86-devel DOES show up as a required list on the rh 7.2 guide, but NOT on the mdk 8.1 guide. i'll be updateing it shortly. (as soon as someone unlocks it!)

fryfrog
01-22-2002, 03:03 AM
also, please note that your topic says "mandrake 8.0" and my guide is for 8.1. i don't know if it will make a difference, but i have this weird freakish nature that forces me to use the latest available version that i can :)

**also note that i only figured out you were using mandrake AFTER i thought you were using redhat 7.2 :)

anway, installing XFree86-devel-4.1.0-17mdk.rpm should fix your problem :)

darumd
01-22-2002, 10:10 PM
that fixed it. Thanks a lot.

now I am having issues with cvs of all things.

I installed cvs-1.11.1-6mdk.i586.rpm

but when I try to cvs into sourceforge to get the latest version of showeq i get this.

cvs: error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory


So I tried to reload cvs and I get this

[root@home rpm]# rpm -Uhv cvs-1.11.1-6mdk.i586.rpm
error: failed dependencies:
libcom_err.so.3 is needed by cvs-1.11.1-6mdk
libgssapi_krb5.so.2 is needed by cvs-1.11.1-6mdk
libk5crypto.so.3 is needed by cvs-1.11.1-6mdk
libkrb5.so.3 is needed by cvs-1.11.1-6mdk


I looked to see if I was missing one of the required RPMs and it looks like I have them all. I am not sure what RPM or lib those 4 files are a part of and not sure how to find out.
I am sure it is something I missed.

is there another way besides cvs pserver to get seq 4 ?

any help is much appreciated.
Thanks

fryfrog
01-22-2002, 11:04 PM
if you are using mandrake 8.x, you should be able to use the system software tools that come with it to install rpms. these tools will not only find the broken dependencies, they will tell you about them and ask that you install them.

[root@mystique showeq]# slocate libcom_err.so.3
/usr/lib/libcom_err.so.3.0
/usr/lib/libcom_err.so.3
[root@mystique showeq]# rpm -qf /usr/lib/libcom_err.so.3
krb5-libs-1.2.2-15.1mdk

[root@mystique showeq]# slocate libgssapi_krb5.so.2
/usr/lib/libgssapi_krb5.so.2.2
/usr/lib/libgssapi_krb5.so.2
[root@mystique showeq]# rpm -qf /usr/lib/libgssapi_krb5.so.2
krb5-libs-1.2.2-15.1mdk

[root@mystique showeq]# slocate libk5crypto.so.3
/usr/lib/libk5crypto.so.3
/usr/lib/libk5crypto.so.3.0
[root@mystique showeq]# rpm -qf /usr/lib/libk5crypto.so.3
krb5-libs-1.2.2-15.1mdk

[root@mystique showeq]# slocate libkrb5.so.3
/usr/lib/libkrb5.so.3
/usr/lib/libkrb5.so.3.0
[root@mystique showeq]# rpm -qf /usr/lib/libkrb5.so.3
krb5-libs-1.2.2-15.1mdk

[root@mystique showeq]# rpm -q --requires cvs
/usr/bin/ssh
/sbin/install-info
/bin/sh
/bin/sh
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
ld-linux.so.2
libc.so.6
libcom_err.so.3
libcrypt.so.1
libgssapi_krb5.so.2
libk5crypto.so.3
libkrb5.so.3
libresolv.so.2
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2.3)
libcrypt.so.1(GLIBC_2.0)

it looks like you are missing "krb5-libs-1.2.2-15.1mdk"

try installing that, then re-installing the cvs rpms.

fryfrog
01-22-2002, 11:11 PM
oh, and to find out what rpm a file is part of you can use rpmfind.net (http://www.rpmfind.net) and just enter the name of the file it needs into the seach box. it will return a list of all distributions rpms, but if you just scroll around until you find the one for "Mandrake" you should be okay.

darumd
01-23-2002, 12:55 AM
Thanks a ton Fryfrog, you are right on with both those suggestions.

I hope my problems help others with same or similar issues.

I now have qt-2.3.2 compiled.
I have showeq4 cvs.
But having issues part way through the make.
Looks like a qtdir issue, but then again, what do I know.

this is new error during showeq make.

libtool: link: warning: library '/usr/lib/libgdbm.la' was moved
libtool: link: warning: library '/usr/lib/libgdbm.la' was moved
g++-3.0.1 -D_REENTRANT -02 bla bla ba. bunch of stuff bunch of file.o stuff

then

-L/usr/lib/qt-2.3.2/lib -lqt-mt -lpthread -lEQ /usr/lib/libgdbm.so -lz -lpcap --rpath /usr/lib/qt-2.3.2/lib --rpath /usr/X11R6/lib
/usr/lib/qt-2.3.2/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[2]: *** [showeq] ERROR 1
make[2]: Leaving directory '/root/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/showeq'
make: *** [all-recursive-am] Error 2


Is this a link error?

once again thanks in advance

Been using seq for a long while now, never had this much trouble before.

fryfrog
01-23-2002, 03:15 AM
are you SURE you are doing "export CC=gcc-3.0.1 ; export CXX=g++-3.0.1 ; export QTDIR=/usr/lib/qt-2.3.2/" right before you are doing your compile?

[root@mystique maps]# slocate libgdbm.la
/usr/lib/libgdbm.la
[root@mystique maps]# slocate libgdbm.so
/usr/lib/libgdbm.so.2.0.0
/usr/lib/libgdbm.so.2
/usr/lib/libgdbm.so
[root@mystique maps]# rpm -qf /usr/lib/libgdbm.la
libgdbm2-devel-1.8.0-18mdk
[root@mystique maps]# rpm -qf /usr/lib/libgdbm.so
libgdbm2-devel-1.8.0-18mdk

both of those files are from the libgdbm2 package, are you sure you have "libgdbm2" and "libgdbm2-devel" installed?

darumd
01-23-2002, 05:09 PM
I do have libgdbm2 and devel installed.
I did the slocate and got same results as fryfrog.
I am doing the exports before the make -f Makefile.dist

The error is not stating that the file is missing, it is stating file not recognized: Is a directory.

(seems it is looking for a file and finding a directory.)
--------------------------------------------
mkdir .libs
libtool: link: warning: library '/usr/lib/libgdbm.la' was moved
libtool: link: warning: library '/usr/lib/libgdbm.la' was moved
g++-3.0.1 -D_REENTRANT -02 bla bla ba. bunch of stuff bunch of file.o stuff

then

-L/usr/lib/qt-2.3.2/lib -lqt-mt -lpthread -lEQ /usr/lib/libgdbm.so -lz -lpcap --rpath /usr/lib/qt-2.3.2/lib --rpath /usr/X11R6/lib
/usr/lib/qt-2.3.2/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[2]: *** [showeq] ERROR 1
make[2]: Leaving directory '/root/showeq/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/showeq'
make: *** [all-recursive-am] Error 2
---------------------------------------------------------------

seems to be looking for something in the wrong place

I did notice that I have qt-2.3.2 in /usr/lib/qt-2.3.2
and in
/usr/local/qt/qt-2.3.2

could this cause confusion?

i just changed my export QTDIR to usr/local/qt/qt-2.3.2 and going to see if that works.

fryfrog
01-23-2002, 11:57 PM
i would definatly recommend REMOVING the QT in /usr/local/qt and making sure that you are pointing to the COMPILED version of qt. it souds like MAYBE it is going to the UNCOMPILED version to try and compile showeq, and perhaps barfing.

if all else fails (and i know this is a PITA) i would try removing ALL your qt-2.3.2 installs (note i did NOT say remove all your qt, cause linux probably wants you to keep its original QT).

then, start over from scratch. if you were missing some rpms while compiling qt, it might cause some issues because qt didn't see the stuff so it didn't compile in support for it... make any sense?