Some problem with my Makefile ??<br><br><span style="font-family: courier new,monospace;">OLSRD_PLUGIN =    true</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PLUGIN_NAME =    olsrd_test</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">PLUGIN_VER =    0.1</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TOPDIR = ../..</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">include $(TOPDIR)/Makefile.inc</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">default_target: $(PLUGIN_FULLNAME)</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$(PLUGIN_FULLNAME): $(OBJS) version-script.txt</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc</span><br style="font-family: courier new,monospace;">

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">install:    $(PLUGIN_FULLNAME)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">              $(STRIP) $(PLUGIN_FULLNAME)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">              $(INSTALL_LIB)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">clean:</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        rm -f $(OBJS) $(SRCS:%.c=%.d) $(PLUGIN_FULLNAME)</span><br><br><br>When I try compile occurr some problems:<br><br><b>....<br>....<br><br>mipsel-linux-uclibc/bin/ld: src/test_plugin.o: Relocations in generic ELF (EM: 3)<br>

src/test_plugin.o: could not read symbols: File in wrong format<br>collect2: ld returned 1 exit status<br>make: ** [olsrd_test.so.0.1] Error 1</b><br><br>The plugin is dinamic library for olsrd-0.6. When I use the line: <br>

<br><span style="font-family: courier new,monospace;">$(CC) $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc</span><br style="font-family: garamond,serif;"><br>instead of:<br><br><span style="font-family: courier new,monospace;">mipsel-linux-gcc $(LDFLAGS) -o $(PLUGIN_FULLNAME) $(OBJS) $(LIBS) -lc</span><br>

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

Airton Ishimori<br><br>