[framework] getting ruby-lorcon working
Robin Wood
dninja at gmail.com
Fri May 25 07:09:42 CDT 2007
Hi
I'm trying to get the ruby-lorcon stuff working with archlinux but
I've got stuck at the first step.
Running ruby extconf.rb results in an error about not being able to
find the lorcon library. The mkmf.log file contains:
have_library: checking for tx80211_txpacket() in -lorcon...
-------------------- no
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i686-linux -I. -march=i686
-O2 -pipe -fPIC conftest.c -L'/usr/lib' -Wl,-R'/usr/lib' -rdynamic
-Wl,-export-dynamic -lruby-static -lorcon -lpthread -ldl -lcrypt
-lm -lc"
/usr/bin/ld: cannot find -lorcon
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include <tx80211.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void
((*)()))tx80211_txpacket; return 0; }
/* end */
"gcc -o conftest -I. -I/usr/lib/ruby/1.8/i686-linux -I. -march=i686
-O2 -pipe -fPIC conftest.c -L'/usr/lib' -Wl,-R'/usr/lib' -rdynamic
-Wl,-export-dynamic -lruby-static -lorcon -lpthread -ldl -lcrypt
-lm -lc"
conftest.c: In function 't':
conftest.c:5: error: too few arguments to function 'tx80211_txpacket'
checked program was:
/* begin */
1: #include <tx80211.h>
2:
3: /*top*/
4: int main() { return 0; }
5: int t() { tx80211_txpacket(); return 0; }
/* end */
--------------------
I have the the latest lorcon library installed and have a working C
app to prove it works. Everything is installed in the default places
with
/usr/local/lib/liborcon.1a in ld.so.conf and also with this set
LD_LIBRARY_PATH=/usr/local/lib/liborcon.la/
Can anyone help?
Thanks
Robin
More information about the framework
mailing list