![]() |
|
|||||||
| Register | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
What's wrong with my cross-compiling?
Ok, I'm sure with the collective knowledge we can me straightened out on this issue. Dutch is probably getting tired of whining.
I'm attempting to cross-compile and strip kismet_server newcore. Yeah it's real smart to modify files in another user's directory as root I know it's naughty but I do it any way. 1. Startup laptop 2. root@tty2#SVN ... kismet-newcore to /home/user/ 3. root@tty2#cp /home/user/kismet-setup.sh /home/user/kismet-newcore 4. root@tty2#cd /home/user/kismet-newcore 5. root@tty2#chmod 777 kismet-setup.sh 6. root@tty2#cd /home/user/whiterussian/openwrt 7. root@tty2#make menuconfig 8. root@tty2#make 9. root@tty2#cd /home/user/kismet-newcore 10. root@tty2#sh kismet-setup.sh 11. Wait till that's done Code:
Configuration complete: Compiling for: linux-gnu (mipsel) C++ library: uclibc Installing as group: root man pages owned by: man Installing into: /tmp Setuid capable: no Terminal control: none Linux wireless: yes pcap capture: yes pcap source: libpcap-0.9.1-kis WSP100 capture: no Viha capture: no Radiotap Headers: local using local dump code: yes Imagemagick support: no Expat library: no GMP library: no PThread support: yes libz compression: no /home/user/whiterussian/openwrt/staging..../mipsel-linux-uclibc-g++ -Ilibpcap-0.9.1-kis Wall -g -O2 -Os -s -c <filename> . . . all done kismet_server is there and is 7.1MB in size A little big for the WRT54GSo, I scp (secure copy) kismet_server over to my WRT and I try to run it. root@tty2# scp /home/user/kismet-newcore root@192.168.0.255:/tmp/mmc/ Fire up PuTTY root#/tmp/mmc/kismet_server -f /etc/kismet.conf /tmp/mmc/kismet_server: can't load library 'libstdc++.so.6' Now this tells me either the cross-compiler failed and didn't use uclibc kismet-setup.sh Code:
#!/bin/sh clear echo "Setting up Build Environment" export PATH=/home/user/whiterussian/openwrt/staging_dir_mipsel/usr/bin/:/home/user/whiterussian/openwrt/staging_dir_mipsel/bin:$PATH echo $PATH export AR=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar echo $AR export AS=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-as echo $AS export LD=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ld echo $LD export NM=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-nm echo $NM export CC=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc echo $CC export CPP=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-cpp echo $CPP export GCC=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc echo $GCC export CXX=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-g++ echo $CXX export RANLIB=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ranlib echo $RANLIB export CFLAGS="-Os -s" echo $CFLAGS echo "Configuring Kismet" ac_cv_linux_vers=2.6.12 ./configure --with-pcap=linux --host=mipsel-linux --disable-curses --disable-panel --disable-viha --without-ethereal --prefix=/tmp --disable-setuid --disable-pcre --target=mipsel-linux --disable-client What are your thoughts on the matter? Do you see something missing? CONCERNS: in the ./configure line what is the purpose of ac_cv_linux_vers=2.6.12 Is this telling the version of the kernel that is running on the router or the kernel version that's running on my laptop? I assume it's the version of kernel that's running on my laptop.
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ Last edited by beakmyn : 02-15-2006 at 01:49 PM. |
|
|
|
|
|
#2 (permalink) |
|
Psychic Amish Stumbler
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,839
|
Did you try setting SEC to AUX?
![]()
__________________
"One of these days, I'm going to cut you to pieces." If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum. Thank you. |
|
|
|
|
|
#3 (permalink) | |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
Quote:
? ![]()
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ |
|
|
|
|
|
|
#4 (permalink) | |
|
Psychic Amish Stumbler
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,839
|
Quote:
http://collectspace.com/ubb/Forum23/HTML/001831.html
__________________
"One of these days, I'm going to cut you to pieces." If you're offended by this post, please feel free to report it to one of the many helpful moderators of this forum. Thank you. |
|
|
|
|
|
|
#5 (permalink) |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
Deleted all my directories and re-downloaded the buildroot. Gonna try it all over again. Should I put the export statements (minus the "export") in the configure and resulting MakeFile?
Gonna try Crosstool even though I have a feeling it won't work but then again it might. If I do ever get a properly cross-compiled kismet newcore I'll post a zip file so those of you with WRTs can try out the new drone and server. Crosstool wouldn't wouldn't build, poopy. Back to buildroot.
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ Last edited by beakmyn : 05-28-2007 at 03:13 PM. |
|
|
|
|
|
#6 (permalink) |
|
Drunken Stumbler
Join Date: Jun 2002
Location: Anywhere but Utah
Posts: 1,803
|
I tried the same thing and for the same error. Any solution yet?
__________________
Never drink anything larger than your head! Scaramental Wine Taster for the Church Of WiFi Buy our books! "I reject your reality, and substitute my own!" – Adam Savage CoWF WPA Hash Tables |
|
|
|
|
|
#7 (permalink) | ||
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
Quote:
Kismet-newcore - successfully cc using buildroot GPSD 2.10, 2.30, 2.31 - successfully cc using buildroot GPSD 1.10 the stable version wouldn't compile errors with source not buildroot So I got new-core to compile only to find Dragorn has finished the drivers for the WRT Quote:
![]() I will post my buildroot config. Basically it's all the export statements, etc I paste into the console then I just do a normal ./configure, make and it uses the buildroot environment. I haven't had a chance to test my GPSD mipsel binary but I'll post it on my website later so folks can try it out. Maybe I'll package it later but for now it'll be a tar.gz Code:
echo "Kismet Build Environment" export PATH=/home/user/whiterussian/openwrt/staging_dir_mipsel/usr/bin:/home/user/whiterussian/openwrt/staging_dir_mipsel/mipsel-linux-uclibc:/home/user/whiterussian/openwrt/staging_dir_mipsel/bin:$PATH export AR=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar export AS=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-as export LD=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ld export NM=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-nm export CC=mipsel-linux-uclibc-gcc export CPP=mipsel-linux-uclibc-cpp export GCC=mipsel-linux-uclibc-gcc export CXX=mipsel-linux-uclibc-g++ export RANLIB=mipsel-linux-uclibc-ranlib export CFLAGS="-Os -s" echo "Configuring Kismet" export ac_cv_linux_vers=2.4.30 ./configure --with-pcap=linux \ --host=mipsel-linux --disable-curses --disable-panel \ --disable-viha --without-ethereal --prefix=/tmp \ --disable-setuid --disable-pcre --disable-client Code:
echo "GPSD Build Environment" export PATH=/home/user/whiterussian/openwrt/staging_dir_mipsel/usr/bin:/home/user/whiterussian/openwrt/staging_dir_mipsel/mipsel-linux-uclibc:/home/user/whiterussian/openwrt/staging_dir_mipsel/bin:$PATH export AR=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar export AS=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-as export LD=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-ld export NM=/home/user/whiterussian/openwrt/staging_dir_mipsel/bin/mipsel-linux-uclibc-nm export CC=mipsel-linux-uclibc-gcc export CPP=mipsel-linux-uclibc-cpp export GCC=mipsel-linux-uclibc-gcc export CXX=g++-uc export RANLIB=mipsel-linux-uclibc-ranlib export CFLAGS="-Os -s -I/home/user/whiterussian/openwrt/staging_dir_mipsel/usr/include" export CPPFLAGS="-I/home/user/whiterussian/openwrt/staging_dir_mipsel/usr/include" export ac_cv_linux_vers=2.4.30 ./configure --host=mipsel-linux --without-motif --without-athena --without-xpm
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ Last edited by beakmyn : 04-07-2006 at 09:55 AM. |
||
|
|
|
|
|
#8 (permalink) |
|
root\.workspace\.garbage.
Join Date: Aug 2003
Posts: 4,805
|
Addditional Note:
The Makefile will have some wrong pointers to
-I/user/include capital i not number 1 which need to be replaced with -I<buildroot path>/staging_dir_mipsel/usr/include
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish" ┌──────────────────────────────┐ ╞ NS Icons Explained|et hoc genus omne ╡ └──────────────────────────────┘ |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|