I'm posting the wrapper file to see if anyone can see if there is something 
wrong there.

/Goran

AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis

SRCDIR    = src
LDFLAGS += -L$(prefix)/usr/lib
CPPFLAGS += -I$(prefix)/usr/include

CFLAGS := `echo $(CFLAGS)|sed 's/-Wshadow//'`
CFLAGS   += -I$(prefix)/usr/include

INSTMODE  = 0755
INSTOWNER = root
INSTGROUP = root

INST_PROG = $(AXIS_TOP_DIR)/tools/build/bin/$(shell echo $(INSTALL)|sed 's/^ 
*//')

test:
        @echo "CC:     $(CC)"
        @echo "CFLAGS: $(CFLAGS)"
        @echo "LD: $(LD)"
        @echo "LDFLAGS: $(LDFLAGS)"
        @echo "INSTALL: $(INSTALL)"
        @echo "INST_PROG: $(INST_PROG)"
        @echo "RANLIB: $(RANLIB)"

$(SRCDIR)/Makefile:
        cd $(SRCDIR) && \
        ./configure \
                --target=$(AXIS_BUILDTYPE) \
                --host=$(AXIS_BUILDTYPE) \
                --prefix=/usr \
                --with-ar="$(AR)" \
                --with-cc="$(CC)" \
                --with-cflags="$(CFLAGS)" \
                --with-ld="$(LD)" \
                --with-ldflags="$(LDFLAGS)" \
                --with-install-prefix=$(prefix) \
                --disable-applications \
                --disable-debugging \
                --disable-embedded-perl \
                --disable-manuals \
                --disable-mibs \
                --disable-mib-loading \
                --disable-scripts \
                --disable-snmpv1 \
                --enable-mini-agent \
                --enable-reentrant \
                --enable-shared \
                --with-default-snmp-version=3 \
                --with-endianness=little \
                --with-logfile="/var/log/snmpd.log" \
                --with-openssl=$(prefix) \
                --with-mib-modules="mibII ip-mib tcp-mib" \
                --with-persistent-directory="/var/net-snmp" \
                --without-perl-modules \
                --without-root-access \
                --without-rpm \
                STRIP="$(STRIP)" \
                INSTALL="$(INST_PROG)" RM="$(RM)"


-----Original Message-----
From:   Thomas Anders [mailto:[EMAIL PROTECTED]
Sent:   Wed 1/9/2008 12:04 AM
To:     Göran Hillebrink
Cc:     net-snmp-users@lists.sourceforge.net
Subject:        Re: Fail to install libraries on target!

Göran Hillebrink wrote:

> I'm trying to cross compile net-snmp 5.4 for cris on a Gentoo 2007.0 system. 
> make works fine but when I do make install I run into problem. libnetsnmp 
> ends up in usr/lib but not libnetsnmpagent, libnetsnmphelpers and 
> libnetsnmpmibs. libnetsnmpagent wants to be relink. 
[...]
> Why is libnetsnmpagent.la relinked but not libnetsnmp? 

Because the other libraries *depend* on libnetsnmp and you platform
requires these libraries to be relinked against libnetsnmp *after* the
latter has been installed at its final destination.

I'd suggest trying with 5.4.1 instead which comes with some library
layering fixes as well as an updated libtool (1.5.24 instead of 1.5.22).


+Thomas






-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to