PDA

Bekijk de volledige versie : Problems compiling enhanced-ctorrent



fireflash
22-10-2006, 00:21
Thanks to the handy Broadcom documentation Asus kept in the firmware source packs, I was able to add the sources for enchanced-ctorrent and get the whole setup to compile it when compiling the rest of the firmware. Unfortunately, it's not goig so well, and I'm hoping someone more knowledgable might be able to shed some light on the subject. Here's the output from the compiler:


[ ! -f ctorrent-dnh2.1/Makefile ] || make -C ctorrent-dnh2.1
make[2]: Entering directory `/root/WL700g/nasoc/src/apps/ctorrent-dnh2.1'
make all-am
make[3]: Entering directory `/root/WL700g/nasoc/src/apps/ctorrent-dnh2.1'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT bencode.o -MD -MP -MF ".deps/bencode.Tpo" -c -o bencode.o bencode.cpp; \
then mv -f ".deps/bencode.Tpo" ".deps/bencode.Po"; else rm -f ".deps/bencode.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT bitfield.o -MD -MP -MF ".deps/bitfield.Tpo" -c -o bitfield.o bitfield.cpp; \
then mv -f ".deps/bitfield.Tpo" ".deps/bitfield.Po"; else rm -f ".deps/bitfield.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT btconfig.o -MD -MP -MF ".deps/btconfig.Tpo" -c -o btconfig.o btconfig.cpp; \
then mv -f ".deps/btconfig.Tpo" ".deps/btconfig.Po"; else rm -f ".deps/btconfig.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT btcontent.o -MD -MP -MF ".deps/btcontent.Tpo" -c -o btcontent.o btcontent.cpp; \
then mv -f ".deps/btcontent.Tpo" ".deps/btcontent.Po"; else rm -f ".deps/btcontent.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT btfiles.o -MD -MP -MF ".deps/btfiles.Tpo" -c -o btfiles.o btfiles.cpp; \
then mv -f ".deps/btfiles.Tpo" ".deps/btfiles.Po"; else rm -f ".deps/btfiles.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT btrequest.o -MD -MP -MF ".deps/btrequest.Tpo" -c -o btrequest.o btrequest.cpp; \
then mv -f ".deps/btrequest.Tpo" ".deps/btrequest.Po"; else rm -f ".deps/btrequest.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT btstream.o -MD -MP -MF ".deps/btstream.Tpo" -c -o btstream.o btstream.cpp; \
then mv -f ".deps/btstream.Tpo" ".deps/btstream.Po"; else rm -f ".deps/btstream.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT bufio.o -MD -MP -MF ".deps/bufio.Tpo" -c -o bufio.o bufio.cpp; \
then mv -f ".deps/bufio.Tpo" ".deps/bufio.Po"; else rm -f ".deps/bufio.Tpo"; exit 1; fiif g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT connect_nonb.o -MD -MP -MF ".deps/connect_nonb.Tpo" -c -o connect_nonb.o connect_nonb.cpp; \
then mv -f ".deps/connect_nonb.Tpo" ".deps/connect_nonb.Po"; else rm -f ".deps/connect_nonb.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT ctcs.o -MD -MP -MF ".deps/ctcs.Tpo" -c -o ctcs.o ctcs.cpp; \
then mv -f ".deps/ctcs.Tpo" ".deps/ctcs.Po"; else rm -f ".deps/ctcs.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT ctorrent.o -MD -MP -MF ".deps/ctorrent.Tpo" -c -o ctorrent.o ctorrent.cpp; \
then mv -f ".deps/ctorrent.Tpo" ".deps/ctorrent.Po"; else rm -f ".deps/ctorrent.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT downloader.o -MD -MP -MF ".deps/downloader.Tpo" -c -o downloader.o downloader.cpp; \
then mv -f ".deps/downloader.Tpo" ".deps/downloader.Po"; else rm -f ".deps/downloader.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT httpencode.o -MD -MP -MF ".deps/httpencode.Tpo" -c -o httpencode.o httpencode.cpp; \
then mv -f ".deps/httpencode.Tpo" ".deps/httpencode.Po"; else rm -f ".deps/httpencode.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT iplist.o -MD -MP -MF ".deps/iplist.Tpo" -c -o iplist.o iplist.cpp; \
then mv -f ".deps/iplist.Tpo" ".deps/iplist.Po"; else rm -f ".deps/iplist.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT peer.o -MD -MP -MF ".deps/peer.Tpo" -c -o peer.o peer.cpp; \
then mv -f ".deps/peer.Tpo" ".deps/peer.Po"; else rm -f ".deps/peer.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT peerlist.o -MD -MP -MF ".deps/peerlist.Tpo" -c -o peerlist.o peerlist.cpp; \
then mv -f ".deps/peerlist.Tpo" ".deps/peerlist.Po"; else rm -f ".deps/peerlist.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rate.o -MD -MP -MF ".deps/rate.Tpo" -c -o rate.o rate.cpp; \
then mv -f ".deps/rate.Tpo" ".deps/rate.Po"; else rm -f ".deps/rate.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT setnonblock.o -MD -MP -MF ".deps/setnonblock.Tpo" -c -o setnonblock.o setnonblock.cpp; \
then mv -f ".deps/setnonblock.Tpo" ".deps/setnonblock.Po"; else rm -f ".deps/setnonblock.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT sigint.o -MD -MP -MF ".deps/sigint.Tpo" -c -o sigint.o sigint.cpp; \
then mv -f ".deps/sigint.Tpo" ".deps/sigint.Po"; else rm -f ".deps/sigint.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT tracker.o -MD -MP -MF ".deps/tracker.Tpo" -c -o tracker.o tracker.cpp; \
then mv -f ".deps/tracker.Tpo" ".deps/tracker.Po"; else rm -f ".deps/tracker.Tpo"; exit 1; fi
if mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT sha1.o -MD -MP -MF ".deps/sha1.Tpo" -c -o sha1.o sha1.c; \
then mv -f ".deps/sha1.Tpo" ".deps/sha1.Po"; else rm -f ".deps/sha1.Tpo"; exit 1; fi
g++ -g -O2 -o ctorrent bencode.o bitfield.o btconfig.o btcontent.o btfiles.o btrequest.o btstream.o bufio.o connect_nonb.o ctcs.o ctorrent.o downloader.o httpencode.o iplist.o peer.o peerlist.o rate.o setnonblock.o sigint.o tracker.o sha1.o
/usr/bin/ld: sha1.o: Relocations in generic ELF (EM: 8)
sha1.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [ctorrent] Error 1
make[3]: Leaving directory `/root/WL700g/nasoc/src/apps/ctorrent-dnh2.1'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/WL700g/nasoc/src/apps/ctorrent-dnh2.1'
make[1]: *** [ctorrent-dnh2.1] Error 2
make[1]: Leaving directory `/root/WL700g/nasoc/src/apps'
make: *** [rebuild] Error 2


I have successfully compiled the firmware before, and even got Vi compiled into busybox. I'm sure it's something related to the whole cross-plateform compiling thing, but being the beginner that I am, I dunno where to start.

Gregoire.Favre
26-10-2006, 23:42
Why not directly working to port openwrt on this router ?
That way we'll get a real OS :)

fireflash
27-10-2006, 00:52
Why not directly working to port openwrt on this router ?
That way we'll get a real OS :)

Because thats better left to the OpenWRT project and people who know what they're doing. I don't know what I'm doing, I'm just messing around with it seeing what I can break. :) Thankfully I've yet to break it