NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Unix/Linux
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2006   #1 (permalink)
beakmyn
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
12. root@tty2#make

/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 WRT54G
So, 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.
beakmyn is offline   Reply With Quote
Old 02-15-2006   #2 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
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.
streaker69 is offline   Reply With Quote
Old 02-15-2006   #3 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,805
Quote:
Originally Posted by streaker69
Did you try setting SEC to AUX?
??
?
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish"

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘
beakmyn is offline   Reply With Quote
Old 02-15-2006   #4 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 11,839
Quote:
Originally Posted by beakmyn
??
?
Sorry, really obscure joke about an Apollo Mission.

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.
streaker69 is offline   Reply With Quote
Old 02-15-2006   #5 (permalink)
beakmyn
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.
beakmyn is offline   Reply With Quote
Old 04-06-2006   #6 (permalink)
renderman
Drunken Stumbler
 
renderman's Avatar
 
Join Date: Jun 2002
Location: Anywhere but Utah
Posts: 1,803
I tried the same thing and for the same error. Any solution yet?
renderman is offline   Reply With Quote
Old 04-06-2006   #7 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,805
Quote:
Originally Posted by renderman
I tried the same thing and for the same error. Any solution yet?
Don't remember what program this was but here are the results I was able to make work:

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:
Originally Posted by Dragorn
Newcore doesn't support wrt54 as a source.

If your firmware supports prismX/iwcommands for configuring it, use wrt54prism. Otherwise you're out of luck for now.
My V3 wrt54gs doesn't

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.
beakmyn is offline   Reply With Quote
Old 04-10-2006   #8 (permalink)
beakmyn
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
└──────────────────────────────┘
beakmyn is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 02:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.