2010-02-10 07:36:58 SocketCAN/iproute2 error (svn r9438)
Jeppe Ledet-Pedersen (DENMARK)
Message: 85908
Hi
I'm trying to compile a kernel to try out the new SocketCAN implementation on my BF537-STAMP. I have downloaded uclinux-dist-trunk-svn.src.tar.bz2 and the compiled svn snapshots of the toolchain. I have followed the SocketCAN guide on the bfin_can wiki page.
However, when I try to compile I get the following error:
In file included from iplink.c:18:
../include/dlfcn.h:7:24: error: dlfcn.h: No such file or directory
iplink.c: In function ‘get_link_kind’:
iplink.c:105: warning: implicit declaration of function ‘dlopen’
iplink.c:105: error: ‘RTLD_LAZY’ undeclared (first use in this function)
iplink.c:105: error: (Each undeclared identifier is reported only once
iplink.c:105: error: for each function it appears in.)
iplink.c:105: warning: assignment makes pointer from integer without a cast
iplink.c:110: warning: assignment makes pointer from integer without a cast
iplink.c:117: warning: implicit declaration of function ‘dlsym’
iplink.c:117: warning: assignment makes pointer from integer without a cast
It seems to be the same issue as this one: blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=5656 but as I read it, it should be patched?
I have attached my .config (bf537-stamp.config)
Can you give me a push in the right direction?
Thank you
/Jeppe
bf537-stamp.config
QuoteReplyEditDelete
2010-02-10 07:48:06 Re: SocketCAN/iproute2 error (svn r9438)
Mike Frysinger (UNITED STATES)
Message: 85909
can support should be inetgrated into trunk already, so you shouldnt need to apply any patches
otherwise, you can use FDPIC instead of FLAT
QuoteReplyEditDelete
2010-02-10 07:57:20 Re: SocketCAN/iproute2 error (svn r9438)
Jeppe Ledet-Pedersen (DENMARK)
Message: 85910
Hi Mike. I didn't apply the patch as I understood that it was already merged into trunk. So I guess I'll try FDPIC. How do I do this and will it have any 'side effects'? Thank you for your quick reply
/Jeppe
QuoteReplyEditDelete
2010-02-10 08:00:30 Re: SocketCAN/iproute2 error (svn r9438)
Jeppe Ledet-Pedersen (DENMARK)
Message: 85911
I guess the 'Binary Format' option in menuconfig was a good place to look...
QuoteReplyEditDelete
2010-02-10 08:26:36 Re: SocketCAN/iproute2 error (svn r9438)
Jeppe Ledet-Pedersen (DENMARK)
Message: 85912
It compiles now, thanks mike. I did get an error because romfs/usr/bin/cansend could not be created, but I just touched the file and everything appeared to work.
QuoteReplyEditDelete
2010-02-10 16:29:31 Re: SocketCAN/iproute2 error (svn r9438)
Mike Frysinger (UNITED STATES)
Message: 85927
i fixed building of iproute2 as FLAT, but i have no idea what error you're talking about with cansend. you'd have to post a log snippet.
QuoteReplyEditDelete
2010-02-11 02:56:10 Re: SocketCAN/iproute2 error (svn r9438)
Jeppe Ledet-Pedersen (DENMARK)
Message: 85941
Good to hear. This is the error it got with cansend:
make[2]: Entering directory `/home/bexus/uclinux-dist-trunk-svn-9438/user/canutils'
romfs-inst.sh can-utils-rel-2.0.0-pre7/cansend /usr/bin/cansend
cp: cannot create regular file `/home/bexus/uclinux-dist-trunk-svn-9438/romfs/usr/bin/cansend': No such file or directory
make[2]: *** [romfs] Error 1
make[2]: Leaving directory `/home/bexus/uclinux-dist-trunk-svn-9438/user/canutils'
make[1]: *** [romfs] Error 2
make[1]: Leaving directory `/home/bexus/uclinux-dist-trunk-svn-9438/user'
make: *** [romfs.subdirs] Error 1
QuoteReplyEditDelete
2010-02-11 03:34:04 Re: SocketCAN/iproute2 error (svn r9438)
Mike Frysinger (UNITED STATES)
Message: 85972
that error is now fixed in svn trunk as well
QuoteReplyEditDelete
2010-02-11 03:40:19 Re: SocketCAN/iproute2 error (svn r9438)
Jeppe Ledet-Pedersen (DENMARK)
Message: 85973
Great