Hello,
I'm trying to compile my own MIB (for an uC-Linux) and I don't know how to
fix the following error:
linux:/net-snmp-5.1.2/agent/mibgroup/fesnmp-lib # make
arm-linux-gcc -o readerObjects readerObjects.o `net-snmp-config
-libs`
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld:
skipping incompatible
/usr/local/lib/libnetsnmp.so when searching for
lnetsnmp
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld:
skipping incompatible
/usr/local/lib/libnetsnmp.a when searching for
-lnetsnmp
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld:
skipping incompatible
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux-uclibc/3.3.3/libnetsnmp.so
when searching for
-lnetsnmp
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux-uclibc/3.3.3/../../../../arm-linux-uclibc/bin/ld:
cannot find -lnetsnmp
collect2: ld returned 1 exit status
make: *** [readerObjects] Error 1
In the directory
/usr/local/LxNETES-3/arm-linux/lib/gcc-lib/arm-linux-uclibc/3.3.3/ there are
the files "libnetsnmp.so.5.1.2" and the two links "libnetsnmp.so.5" and
"libnetsnmp.so".
My Makefile has the following content:
# --------- Makefile ---------
OBJS=readerObjects.o
TARGETS=readerObjects
CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS= `net-snmp-config --libs`
BUILDAGENTLIBS=`net-snmp-config --agent-libs`
# shared library flags (assumes gcc)
DLFLAGS=-fPIC -shared
all: $(TARGETS)
readerObjects: $(OBJS)
$(CC) -o readerObjects $(OBJS) $(BUILDLIBS)
# --------- Makefile ---------
Any suggestions?
Thanks in advance,
Klaus Gürtler
--
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders