[Olsr-dev] [OFF] mipsel-linux-gcc

Airton Ishimori (spam-protected)
Thu Jul 8 17:33:05 CEST 2010


Some problem with my Makefile ??

OLSRD_PLUGIN =    true
PLUGIN_NAME =    olsrd_test
PLUGIN_VER =    0.1

TOPDIR = ../..
include $(TOPDIR)/Makefile.inc

default_target: $(PLUGIN_FULLNAME)

$(PLUGIN_FULLNAME): $(OBJS) version-script.txt
        mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS)
-lc

install:    $(PLUGIN_FULLNAME)
              $(STRIP) $(PLUGIN_FULLNAME)
              $(INSTALL_LIB)

clean:
        rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME)


When I try compile occurr some problems:

*....
....

mipsel-linux-uclibc/bin/ld: src/test_plugin.o: Relocations in generic ELF
(EM: 3)
src/test_plugin.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: ** [olsrd_test.so.0.1] Error 1*

The plugin is dinamic library for olsrd-0.6. When I use the line:

$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc

instead of:

mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc

It compile, but when I try execute olsrd -f /etc/olsrd.conf some problems
returned how "ELF not executable MIPSEL".
I think that this problems is because of the used compile.


--
Airton Ishimori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20100708/d23795e8/attachment.html>


More information about the Olsr-dev mailing list