Announcement

Collapse
No announcement yet.

Unable to compile libupnp, libsysfs and some others

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to compile libupnp, libsysfs and some others

    Hello,

    Trying to compile some custom softwares for XPort Pro, I could notice that libupnp, libsysfs can't be compile using Lantronix SDK. It's the same for libnfc which is a library I added.

    Here there are steps to reproduce that failure:
    • On Debian based system (KUbuntu 9.10), I had installed Lantronix's Linux SDK.
    • Source build environment (. env_m68k-uclinux)
    • Replace "echo -e" by "/bin/echo -e" in linux/config/setconfig, to prevent dash (default shell) to internally interpret `echo' - see DASH(1) (maybe this should be fixed in future release ?)
    • Run "make menuconfig", it will launch "uClinux Distribution v4.0 Configuration"

    Code:
    ** "Vendor/Product Selection  --->"
     ** "Lantronix Products  --->"
      ** "(X) XPort_Pro"
     ** "Configuration Profile  --->"
      ** "(X) DEFAULT"
    ** "Kernel/Library/Defaults Selection  --->"
     ** "[*] Customize Application/Library Settings"
    • Now exiting (and saving) "uClinux Distribution v4.0 Configuration", it will launch "uClinux Distribution v4.0 Configuration" with customizeable applications list.

    Code:
    ** "Library Configuration  --->"
     ** "[*] Build libupnp"
    • Exit and save again.
    • Run "make" will fail with
      Code:
      m68k-uclinux-gcc: ../bin/libthreadutil.so: No such file or directory
      m68k-uclinux-gcc: ../bin/libixml.so: No such file or directory
      make[6]: *** [all] Erreur 1
      make[6]: quittant le r?pertoire ? /linux/lib/libupnp/upnp/src ?


    When I try to compile libsysfs, I obtain this error :
    Code:
    ../lib/.libs/libsysfs.so: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    make[7]: *** [systool] Erreur 1
    make[7]: quittant le r?pertoire ?/linux/lib/sysfsutils/build/cmd ?
    And finally for libnfc, it returns :
    Code:
     ../../src/lib/.libs/libnfc.so: file not recognized: File format not recognized
    collect2: ld returned 1 exit status
    make[8]: *** [nfc-anticol] Erreur 1
    make[8]: quittant le r?pertoire ? /linux/lib/libnfc/build/src/examples ?
    I hope these bug reports can help to improve this interesting product: XPort Pro.

    --
    Audrey
    Last edited by auddia; 02-24-2010, 04:41 PM.

  • #2
    These issues appear to be related to the use of shared libraries. Unfortunately, we do not support shared libraries as of version 1.0.0.6 of the SDK. This is due to the complexities surrounding the use of shared libraries on a CPU without a MMU (Memory Management Unit). The XPort Pro and MatchPort AR are based on a MMU-less architecture. We plan on adding limited shared library support in the next release. For now it is necessary to statically link libraries.

    Matt
    Last edited by mdavison; 02-24-2010, 07:27 PM.

    Comment


    • #3
      Still problems in SDK 2.0.0.0

      Having mostly the same installation as auddia.
      Ubuntu 10.04, . env_m68k_uclinux, linked /bin/sh to /bin/bash.

      Code:
      ** "Vendor/Product Selection  --->"
       ** "Lantronix Products  --->"
        ** "(X) XPort_Pro"
       ** "Configuration Profile  --->"
        ** "(X) DEFAULT"
      ** "Kernel/Library/Defaults Selection  --->"
       ** "[*] Customize Application/Library Settings"
      And selecting libupnp from libraries.
      Code:
      ** "Library Configuration  --->"
       ** "[*] Build libupnp"
      Run "make" will fail with
      Code:
      ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE -Wall  -shared -Wl,-soname,libixml.so  obj/ixml.o       obj/node.o obj/ixmlparser.o obj/ixmlmembuf.o obj/nodeList.o obj/element.o    obj/attr.o obj/document.o obj/namedNodeMap.o  -o obj/libixml.so 
      /home/hanaborg/lantronix/toolchains/freescale-coldfire-4.4/m68k-uclinux/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 00000000
      m68k-uclinux-strip obj/libixml.so
      m68k-uclinux-strip:obj/libixml.so: File format not recognized
      make[7]: *** [obj/libixml.so] Error 1
      make[7]: Leaving directory `/home/hanaborg/lantronix/linux/lib/libupnp/ixml/src'
      make[6]: *** [all] Error 2
      Any help will be appreciated. Thanks in advance.

      - Hanaborg

      Comment


      • #4
        I have the same problem, when enable net-snmp :
        Also I check the option Build Static.

        ../snmplib/.libs/libnetsnmp.so: file not recognized: File format not recognized

        Is there something I can do ?
        Thank you

        Comment

        Working...
        X