KDE Wont compile. Please help

KDE Wont compile. Please help

Post by Keith Stropu » Mon, 03 Apr 2000 05:00:00



Hello.  Excuse the length of this post, I have a bad habit of giving
unneccessarily large amounts of information when I have a problem...

I recently tried to upgrade to Xfree86 3.3.6, and due to me being retarded,
I destroyed my old installation.  And while trying to fix that, I destroyed
my KDE installation.  Well, all I could do was obliterate Xfree and KDE from
my drive and start over.  I got Xfree 3.3.6 installed and working without
any trouble.  But now I got problems getting KDE to compile.

I got all the source files (kdesupport, kdebase, kdelibs, etc...) for kde
1.1.2.  I then extracted them and began to compile and install them.  First
kdesupport configured, built, and installed without a single error.  kdelibs
configured, build, and installed also without error.  But partway through
configuring kdebase, I get this:

checking for KDE libraries installed... yes
configure:  error:  configure could not run a little KDE program to test the
environment.
Since it had compiled before, it must be a strange problem on your system.
Look at config.log for details.  If you are not able to fix this, look st
http://www.kde.org/faq/installation.html or any kde.org mirror.
(If you're using an egcs version on Linux, you may update binutils!)

Well... configure.log tells me nothing, there is no installation.html on
kde.org, and I have no idea what the hell that line about binutils means, I
think they left a word out of that sentence or something...

I was able to compile KDE1.1.2 the same way before without any problems, the
only thing that has changed since then is I have upgraded from Linux 2.2.10
to 2.2.14, and I upgraded to GCC 2.45.blah blah something I forgot... Oh
yeah, and obviously since then I mutilated my Xfree install...

So can anyone help?  I would appreciate it very much..
Thanks in advance...

-Keith Stropus

 
 
 

KDE Wont compile. Please help

Post by David Faur » Tue, 04 Apr 2000 04:00:00



> Hello.  Excuse the length of this post, I have a bad habit of giving
> unneccessarily large amounts of information when I have a problem...

> I recently tried to upgrade to Xfree86 3.3.6, and due to me being retarded,
> I destroyed my old installation.  And while trying to fix that, I destroyed
> my KDE installation.  Well, all I could do was obliterate Xfree and KDE from
> my drive and start over.  I got Xfree 3.3.6 installed and working without
> any trouble.  But now I got problems getting KDE to compile.

> I got all the source files (kdesupport, kdebase, kdelibs, etc...) for kde
> 1.1.2.  I then extracted them and began to compile and install them.  First
> kdesupport configured, built, and installed without a single error.  kdelibs
> configured, build, and installed also without error.

You installed kdelibs, right ?

Quote:> But partway through configuring kdebase, I get this:

> checking for KDE libraries installed... yes
> configure:  error:  configure could not run a little KDE program to test the
> environment.
> Since it had compiled before, it must be a strange problem on your system.
> Look at config.log for details.  If you are not able to fix this, look st
> http://www.kde.org/faq/installation.html or any kde.org mirror.
> (If you're using an egcs version on Linux, you may update binutils!)

> Well... configure.log tells me nothing

Well, config.log ALWAYS tells you the problem - not necessarily in a
readable way though :)
Please send the last 20 lines of it (i.e. up to the first error going up
from the end of the file).

Quote:> there is no installation.html on kde.org,

Indeed. I didn't know that this was in the error message - it's not
anymore, in any case.
It should probably point to http://www.kde.org/compilationfaq.html,
though
I doubt this would help in this particular case.

Quote:> and I have no idea what the hell that line about binutils means, I
> think they left a word out of that sentence or something...

And that's a very old problem anyway. Although it may be yours ;-)

Quote:> I was able to compile KDE1.1.2 the same way before without any problems, the
> only thing that has changed since then I upgraded to GCC 2.45.blah blah something
> I forgot...

gcc 2.95.x you mean ?
You may be missing libstdc++, or an uptodate binutils (yes, the message
may be right
after all) etc. But only config.log can tell you (or me).

--
David Faure




 
 
 

KDE Wont compile. Please help

Post by Keith Stropu » Tue, 04 Apr 2000 04:00:00




>> I got all the source files (kdesupport, kdebase, kdelibs, etc...) for kde
>> 1.1.2.  I then extracted them and began to compile and install them.
First
>> kdesupport configured, built, and installed without a single error.
kdelibs
>> configured, build, and installed also without error.

>You installed kdelibs, right ?

Umm... yeah... you do ./configure, make, and make install, and its
installed, right?  OK, I did that... first to kdesupport, then to kdelibs...
no errors, no problems...

Quote:>> But partway through configuring kdebase, I get this:

>> checking for KDE libraries installed... yes
>> configure:  error:  configure could not run a little KDE program to test
the
>> environment.
>> Since it had compiled before, it must be a strange problem on your
system.
>> Look at config.log for details.  If you are not able to fix this, look st
>> http://www.kde.org/faq/installation.html or any kde.org mirror.
>> (If you're using an egcs version on Linux, you may update binutils!)

>> Well... configure.log tells me nothing

>Well, config.log ALWAYS tells you the problem - not necessarily in a
>readable way though :)

Thats what I meant, it's meaningless to me... but I guess someone who knows
whats going on would be able to decipher it.  Sorry...

Quote:>Please send the last 20 lines of it (i.e. up to the first error going up
>from the end of the file).

Alrighty, heres the last 20 or so lines of config.log:

configure:3486: checking if Qt compiles without flags
configure:3529: g++ -o
onftest -O2 -Wall -I/usr/local/qt/include  -L/usr/X11/lib
conftest.C -lqt -lXext -lX11  1>&5
/usr/local/i686-pc-linux-gnulibc1/bin/ld: warning: libc.so.6, needed by
/usr/X11/lib/libXext.so, may conflict with libc.so.5
configure:3581: checking for moc
configure:3671: checking for extra includes
configure:3699: checking for extra libs
configure:3730: checking for rpath
configure:3760: checking for bool
configure:3780: g++ -c -O2 -Wall  conftest.C 1>&5
configure: In function `int main()':
configure:3776: warning: unused variable `bool aBool'
configure:3805: checking for KDE
configure:3988: checking for KDE paths
configure:4059: checking for KDE headers installed
configure:4092: g++ -c -O2 -Wall -I/opt/kde/include -I/usr/local/qt/include
conftest.C
configure:4120: checking for KDE libraries installed
configure:4123: /bin/sh ./libtool --silent --mode=link g++ -o
conftest -O2 -Wall -I/opt/kde/include -I/usr/local/qt/include    -s -L/opt/k
de/lib  -L/usr/X11/lib conftest.C  -lkdecore -lqt -lXext -lX11  -rpath
/opt/kde/lib -rpath /usr/X11/lib  1>&5
/usr/local/i686-pc-linux-gnulibc1/bin/ld: warning: libc.so.6, needed by
/usr/X11/lib/libXext.so, may conflict with libc.so.5

Quote:>> I was able to compile KDE1.1.2 the same way before without any problems,
the
>> only thing that has changed since then I upgraded to GCC 2.45.blah blah
something
>> I forgot...
>gcc 2.95.x you mean ?

Yeah, thats it, sory... hehe 2.45 would have been a downgrade for me, I had
2.7.2

Quote:>You may be missing libstdc++, or an uptodate binutils (yes, the message
>may be right
>after all) etc. But only config.log can tell you (or me).

Yeah, I got the latest version of binutils and installed it... but configure
still says the same thing...
So where can I find this libstdc++?

Thanks for the help
-Keith Stropus

 
 
 

KDE Wont compile. Please help

Post by David Faur » Wed, 05 Apr 2000 04:00:00




> >You installed kdelibs, right ?

> Umm... yeah... you do ./configure, make, and make install, and its
> installed, right?

Yes.

Quote:> >Well, config.log ALWAYS tells you the problem - not necessarily in a
> >readable way though :)

> Thats what I meant, it's meaningless to me... but I guess someone who knows
> whats going on would be able to decipher it.

:)

Quote:> >Please send the last 20 lines of it (i.e. up to the first error going up
> >from the end of the file).

> Alrighty, heres the last 20 or so lines of config.log:

> configure:3486: checking if Qt compiles without flags
> configure:3529: g++ -o
> onftest -O2 -Wall -I/usr/local/qt/include  -L/usr/X11/lib
> conftest.C -lqt -lXext -lX11  1>&5
> /usr/local/i686-pc-linux-gnulibc1/bin/ld: warning: libc.so.6, needed by
> /usr/X11/lib/libXext.so, may conflict with libc.so.5
> configure:3581: checking for moc
> configure:3671: checking for extra includes
> configure:3699: checking for extra libs
> configure:3730: checking for rpath
> configure:3760: checking for bool
> configure:3780: g++ -c -O2 -Wall  conftest.C 1>&5
> configure: In function `int main()':
> configure:3776: warning: unused variable `bool aBool'
> configure:3805: checking for KDE
> configure:3988: checking for KDE paths
> configure:4059: checking for KDE headers installed
> configure:4092: g++ -c -O2 -Wall -I/opt/kde/include -I/usr/local/qt/include
> conftest.C
> configure:4120: checking for KDE libraries installed
> configure:4123: /bin/sh ./libtool --silent --mode=link g++ -o
> conftest -O2 -Wall -I/opt/kde/include -I/usr/local/qt/include    -s -L/opt/k
> de/lib  -L/usr/X11/lib conftest.C  -lkdecore -lqt -lXext -lX11  -rpath
> /opt/kde/lib -rpath /usr/X11/lib  1>&5
> /usr/local/i686-pc-linux-gnulibc1/bin/ld: warning: libc.so.6, needed by
> /usr/X11/lib/libXext.so, may conflict with libc.so.5

This can't be the last line... is it ? ... it's just a warning...
Anyway, this is already somewhat of a problem. You have a lib linked
against
libc5, that's not good (when the rest is using libc6).
Do
"ldd $KDEDIR/bin/prog"  where prog is any program you can find there (I
hope there
is at least one), to find whether libc.so.5 is listed.
Or try to remove libc.so.5 and see which packages RPM complain about :-)
(Don't remove it though, just test).

You could check the same thing on a Qt example, btw.
And then on any X app (xterm).
You should finally find which lib needs to be upgraded (or recompiled)
so that it doesn't depend on libc.so.5

Quote:> >> I was able to compile KDE1.1.2 the same way before without any problems, the
> >> only thing that has changed since then I upgraded to GCC [2.95].

Well, seems you upgraded libc too...

But this explains the warning, not really the configure aborting.
Sure there's nothing more in config.log ?

Your initial post said "could not run" and config.log doesn't show
anything
being runned. Can you remove config.cache, and re-run configure with
./configure 2>&1 > configure.output

?

Quote:> So where can I find this libstdc++?

You have it, if kdelibs compiles (stupid me).

--
David Faure



 
 
 

KDE Wont compile. Please help

Post by Keith Stropu » Wed, 05 Apr 2000 04:00:00


Well, after finally living up to the fact that I had been messing with my
linux install for a while now, and probably messed up more than just my libs
(although it may not be apparent yet) I decided to just upgrade to Slackware
7...  Its probably for the best.

Thanks for all your help, I appreciate it... I'll remember what you said in
case this happens again...

-Keith Stropus

PS.  Yep, thats all that was in config.log... Probably why it puzzled me, I
couldn't see where the error was...




>> >You installed kdelibs, right ?

>> Umm... yeah... you do ./configure, make, and make install, and its
>> installed, right?
>Yes.

>> >Well, config.log ALWAYS tells you the problem - not necessarily in a
>> >readable way though :)

>> Thats what I meant, it's meaningless to me... but I guess someone who
knows
>> whats going on would be able to decipher it.
>:)

>> >Please send the last 20 lines of it (i.e. up to the first error going up
>> >from the end of the file).

>> Alrighty, heres the last 20 or so lines of config.log:

>> configure:3486: checking if Qt compiles without flags
>> configure:3529: g++ -o
>> onftest -O2 -Wall -I/usr/local/qt/include  -L/usr/X11/lib
>> conftest.C -lqt -lXext -lX11  1>&5
>> /usr/local/i686-pc-linux-gnulibc1/bin/ld: warning: libc.so.6, needed by
>> /usr/X11/lib/libXext.so, may conflict with libc.so.5
>> configure:3581: checking for moc
>> configure:3671: checking for extra includes
>> configure:3699: checking for extra libs
>> configure:3730: checking for rpath
>> configure:3760: checking for bool
>> configure:3780: g++ -c -O2 -Wall  conftest.C 1>&5
>> configure: In function `int main()':
>> configure:3776: warning: unused variable `bool aBool'
>> configure:3805: checking for KDE
>> configure:3988: checking for KDE paths
>> configure:4059: checking for KDE headers installed
>> configure:4092:

g++ -c -O2 -Wall -I/opt/kde/include -I/usr/local/qt/include
Quote:>> conftest.C
>> configure:4120: checking for KDE libraries installed
>> configure:4123: /bin/sh ./libtool --silent --mode=link g++ -o

conftest -O2 -Wall -I/opt/kde/include -I/usr/local/qt/include    -s -L/opt/k

- Show quoted text -

Quote:>> de/lib  -L/usr/X11/lib conftest.C  -lkdecore -lqt -lXext -lX11  -rpath
>> /opt/kde/lib -rpath /usr/X11/lib  1>&5
>> /usr/local/i686-pc-linux-gnulibc1/bin/ld: warning: libc.so.6, needed by
>> /usr/X11/lib/libXext.so, may conflict with libc.so.5

>This can't be the last line... is it ? ... it's just a warning...
>Anyway, this is already somewhat of a problem. You have a lib linked
>against
>libc5, that's not good (when the rest is using libc6).
>Do
>"ldd $KDEDIR/bin/prog"  where prog is any program you can find there (I
>hope there
>is at least one), to find whether libc.so.5 is listed.
>Or try to remove libc.so.5 and see which packages RPM complain about :-)
>(Don't remove it though, just test).

>You could check the same thing on a Qt example, btw.
>And then on any X app (xterm).
>You should finally find which lib needs to be upgraded (or recompiled)
>so that it doesn't depend on libc.so.5