This forum has been archived. All content is frozen. Please use KDE Discuss instead.

trouble compiling 2.0.3

Tags: None
(comma "," separated)
kevintron
Registered Member
Posts
5
Karma
0

trouble compiling 2.0.3

Thu Oct 12, 2006 11:53 pm
Looks like nobody has built a 2.0.3 install package for Kubuntu Dapper on PowerPC just yet. I'd like to help with that if I can, but I'm a bit of a newbie at compiling from source.

I've managed to get fairly far by searching Google when I hit errors and then installing the necessary dev packages with apt-get, but I've achieved an error that doesn't seem to yield anything helpful even on Google. It happens when I attempt to run make.

Code: Select all
g++: now: no such file or directory.


I have the latest g++ and gcc packages installed, so I'm not sure just what this is trying to tell me. It seems related to a file called libktorrent.la, but I'm not sure exactly how, because that file seems to be present where it should be, and I can't find any references in it to any file called "now".

Before going into too much more detail I should ask the most basic question that comes to mind: Do I need to completely uninstall 2.0.2 before attempting to compile 2.0.3? Could that be the real problem here?

With many thanks,
Kevin
George
Moderator
Posts
5421
Karma
1

Fri Oct 13, 2006 6:17 pm
Compiling a new version when you have an old installed is no problem.

But I have never seen that error before, and I don't have any program named now on my box. Nor can I find any file in the build directories.

But this must be somewhere in some Makefile.
kevintron
Registered Member
Posts
5
Karma
0

Fri Oct 13, 2006 7:05 pm
After trying to run make again, here is some of the output from just before the error message block, with arbitrary line breaks added to shorten the longer lines, and blank lines to set off the part containing the word "now":

Code: Select all
make[3]: Entering directory `/download/ktorrent-2.0.3/libktorrent'
/bin/sh ../libtool --silent --mode=link --tag=CXX
g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts
-Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new
-fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
-fexceptions  -Wl -z

now -o libktorrent.la -rpath /usr/lib -R /usr/lib -R /usr/share/qt3/lib
 
-R /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/share/qt3/lib -L/usr/lib
pluginmanager.lo functions.lo expandablewidget.lo
pluginmanagerprefpage.lo pluginmanagerwidget.lo
pluginmanagerprefpage.moc.lo  ../libktorrent/net/libnet.la
../libktorrent/datachecker/libdatachecker.la
../libktorrent/mse/libmse.la ../libktorrent/migrate/libmigrate.la
../libktorrent/util/libutil.la ../libktorrent/torrent/libtorrent.la
../libktorrent/kademlia/libkademlia.la
../libktorrent/interfaces/libinterfaces.la -lkparts
g++: now: No such file or directory
make[3]: *** [libktorrent.la] Error 1
make[3]: Leaving directory `/download/ktorrent-2.0.3/libktorrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/download/ktorrent-2.0.3/libktorrent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/download/ktorrent-2.0.3'
make: *** [all] Error 2


thanks,
Kevin
imported4-liquidat
Registered Member
Posts
27
Karma
0

Patch for the ppc problem

Fri Oct 13, 2006 10:10 pm
I had the same problem when I tried to compile the package for ppc for Fedora Core.

The following patch solved the problem (at least on the build machines, I wasn't able to test if the package is actually working):
Code: Select all
--- ktorrent-2.0.3/configure.origin   2006-10-13 23:22:00.394480000 +0200
+++ ktorrent-2.0.3/configure   2006-10-13 23:25:33.143776000 +0200
@@ -31299,7 +31299,7 @@
 
 #MIN_CONFIG(3.3)
 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS $USE_EXCEPTIONS $USE_RTTI"
-LDFLAGS="$LDFLAGS -Wl -z now"
+LDFLAGS="$LDFLAGS -Wl,-z,now"
 
 
 # Check whether --enable-largefile or --disable-largefile was given.


Please get this one upstream for the ppc people!
kevintron
Registered Member
Posts
5
Karma
0

Sat Oct 14, 2006 12:32 am
Thanks, liquidat. I'm currently running 2.0.3 after making the change you suggested to the configure file. I don't know why it would make such a big difference to change those two spaces into commas, but at last the wee beastie compiles, installs, and runs successfully.

My method for making the change may not have been exactly proper. I just hand-edited the configure file using kate, then went back to the ./configure step of the instructions.

I hope my confirmation that it worked will help encourage someone with more knowledge to create a usable installer package for PowerPC systems. It will probably be a long time before I learn how to do that.

Thanks again to everyone helping create and improve ktorrent.

Kevin
jdong
Registered Member
Posts
358
Karma
0

Sat Oct 14, 2006 9:28 pm
Ack, ****, just realized the same FTBFS for ppc in Kubuntu Edgy. I'll try to resolve this situation and hopefully I can sneak in a fix into the already frozen tree...
imported4-liquidat
Registered Member
Posts
27
Karma
0

Sat Oct 14, 2006 10:07 pm
Hopefully the fix go upstream for the next version...
George
Moderator
Posts
5421
Karma
1

Sun Oct 15, 2006 11:03 am
liquidat wrote:Hopefully the fix go upstream for the next version...


Those flags have allready been removed, their not portable, and we got the syntax wrong.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar