Menu

compiling fails on Ubuntu 11.10 for OpenWrt

Help
Othmar
2012-01-10
2012-12-14
  • Othmar

    Othmar - 2012-01-10

    Hi,

    after I upgraded my Ubuntu to 11.10 I failed when recompiling linknx-0.0.1.28 for OpenWrt Backfire 10.3.1.  The same feed file worked fine on Ubuntu 11.4. I suspect it's because with Ubuntu 11.10 kernel has changed to 3.0.0. I also had to use a patch I found to get eibd (bcusdk) successfully compiled for Backfire 10.3.1.
    On the other hand compiling linknx-0.0.1.28 for Ubuntu worked fine, so only crosscompiling fails.

    Has anyone come across this and found a solution or some idea to look for? I'd like to build a new version for OpenWrt anytime on recent Ubuntu.

    BTW: it complains intensively about errors in file include/c++/4.3.3/bits/char_traits.h and others when compiling linknx.cpp

    Regards, Othmar

     
  • Othmar

    Othmar - 2012-01-11

    Hi,

    after some more investigations I found that the configure script uses /usr/include for conf testing which is unsafe for cross-compilation. So some tests now fail. When I rename /usr/include then linknx compiles successfully for OpenWrt.

    Now I wonder how can I fix linknx files to make the configure script to not use /usr/include when cross-compiling? This is just far beyond my horizon.

    Regards, Othmar

     
  • Othmar

    Othmar - 2012-01-13

    Hi,

    I now solved the problem. I needed to update the Makefile of libesmtp because libesmtp-config would make configure use /usr/include in CFLAGS, messing up host header files and target header files when compiling linknx. Probably didn't matter earlier because both Ubuntu 11.04 and OpenWrt were both on kernel 2.26 with possibly similar header files, but now with Ubuntu 11.10 on kernel 3.0 this obviously changed.

    Regards, Othmar

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.