Announcement

Collapse
No announcement yet.

Error when compiling Libnet project

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

  • Radion
    started a topic Error when compiling Libnet project

    Error when compiling Libnet project

    Hi All!
    I developped a new project using LIBNET (project create in Linux SDK 2.0.0.0 VMware Image). LIBNET it is used regular, a part of an image. When I compile my project, the following error stands out:
    ERROR: reloc type R_68K_32 is not supported for PIC.
    What does it mean and how to rectify the given error?

  • ColinH
    replied
    Originally posted by Mark View Post
    Doesn't stop my XPort Pro from restarting when someone tries to load a webpage though...
    Same here. Did you find out what the problem is?

    Leave a comment:


  • Mark
    replied
    If you want to cross compile something like thttpd, without invoking the -fPIC flag for the entire compilation process, you can modify the Makefile.in files. Config uses these to generate the Makefiles.

    Having tried to compile thttpd, one realises that its the code in cgi-src and extras that are having problems. I modified <install_dir>/linux/user/thttpd/cgi-src/Makefile.in and <install_dir>/linux/user/thttpd/extras/Makefile.in.

    Doesn't stop my XPort Pro from restarting when someone tries to load a webpage though...

    Leave a comment:


  • f15h
    replied
    Using -fPIC might solve this problem

    Hi Everybody,

    I had a lot of this relocation problems - and in my case (libshout,libogg,libvorbis,libcp,...)
    I consequently compiled all my libraries with an addtional -fPIC Flag (i used it for both CFLAGS and LDFLAGS)

    Note that the whole buildsystem of the Linux SDK is using the -fPIC Flag. I noticed that you can't mix -fPIC and Non-fPIC Libraries. For example when you are compiling an application with libcp from the SDK (for the gpios) and you add another Library - it will only work if the additional Library is also compiled with -fPIC.

    Leave a comment:


  • zellerm
    replied
    Hi All!

    I'am getting the same error.
    Do you have a solution for it ?

    Best regards,
    Michael

    Leave a comment:


  • marben
    replied
    same problem as xadas compiling mysql. Any solutions? I'd like to add a mysql client

    Leave a comment:


  • cjmicro33
    replied
    Im running into the same issue trying to use libcurl.

    Code:
    configure:25055: ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE -o conftest -O2 -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall   -DEMBED -fno-dwarf2-cfi-asm -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__  -I/home/lantronix/linuxsdk20002/linux/lib/libssl/include/openssl -I/home/lantronix/linuxsdk20002/linux/lib/libssl/include -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-elf2flt -Wl,-move-rodata -msep-data -L/home/lantronix/linuxsdk20002/linux/lib/libssl/lib conftest.c -lssl  -lcrypto  >&5
    ERROR: reloc type R_68K_32 is not supported for PIC
    **snip**
    ERROR: reloc type R_68K_32 is not supported for PIC
    10344 bad relocs
    One of the main reasons I purchased the xport pro was ssl support but I've been unable to build libcurl with libssl so right now I can't really do anything with it (I think libssl was even commented out of a makefile??). Tech support told me to post my questions here so hopefully someone from Lantronix can explain this error and how I can build libssl and libcurl for my application. Im using the VMWare image.

    Leave a comment:


  • Xadas
    replied
    hi,

    i have the same problem when i try to compile mysql / innodb

    here my logfile

    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by configure, which was
    generated by GNU Autoconf 2.53. Invocation command line was

    $ .././innobase/configure --host=m68k-uclinux-linux

    ## --------- ##
    ## Platform. ##
    ## --------- ##

    hostname = lantronix-desktop
    uname -m = i686
    uname -r = 2.6.32-24-generic
    uname -s = Linux
    uname -v = #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /home/lantronix/linuxsdk/toolchains/freescale-coldfire-4.4/bin/
    PATH: /home/lantronix/linuxsdk/linux/tools/
    PATH: /home/lantronix/linuxsdk/host/usr/sbin
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games
    PATH: /home/lantronix/linuxsdk/linux/tools


    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##

    configure:1232: checking build system type
    configure:1245: error: /bin/sh .././innobase/../config.sub ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    48 bad relocs
    i686-pc-linux failed

    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##

    ac_cv_build=
    ac_cv_build_alias='ERROR: reloc type R_68K_32 is not supported for PIC
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value='ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE'
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-O3 -DDBUG_OFF -Os -g -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED

    -fno-dwarf2-cfi-asm -msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ '
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value='-Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-elf2flt -Wl,-move-rodata -msep-data -

    rdynamic'
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=set
    ac_cv_env_host_alias_value=m68k-uclinux-linux
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=

    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##

    #define PACKAGE_NAME ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""
    #define PACKAGE_STRING ""
    #define PACKAGE_BUGREPORT ""

    configure: exit 1

    Leave a comment:


  • dingsquare
    replied
    ERROR: reloc type R_68K_32 is not supported for PIC

    Can someone from Lantronix please explain ERROR: reloc type R_68K_32 is not supported for PIC

    I am seeing the error when I build thttpd from the Linux SDK 2.0.0.0

    make[6]: Entering directory `/home/hansens1/ding-devel/ding-src/innovativeEnergies_2_0_0_0/linux/user/thttpd/build/cgi-src'
    ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE -Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,-elf2flt -Wl,-move-rodata -msep-data redirect.o -lcrypt -o redirect
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC
    ERROR: reloc type R_68K_32 is not supported for PIC

    Leave a comment:

Working...
X