Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 1998 07:59:50 +0200 (CEST)
From:      Andrzej Bialecki <abial@nask.pl>
To:        Jim Flowers <jflowers@ezo.net>
Cc:        freebsd-small@FreeBSD.ORG
Subject:   Re: PicoBSD & 2.2.7
Message-ID:  <Pine.BSF.4.02A.9809110748490.2368-100000@korin.warman.org.pl>
In-Reply-To: <01bddcfe$4d188b60$858266ce@violet.ezo.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Thu, 10 Sep 1998, Jim Flowers wrote:

> I'm having trouble getting a static library for snmplib.a.  The embedded
> instructions in crunch.conf to delete -fpic and -DPIC from snmplib/Makefile
> no longer work as the Makefile now produces a .so file and has a number of

Ah! You're right. This has been changed with the v.3.3.1 of ucd-snmp, and
the above notes are relating to the older version, where the library was
(mistakenly) called libsnmp.a and in fact consisted of relocatable
objects.

But... wait a moment. _Which_ version do you use??? I just looked over the
Makefile in version 3.3.1, and it produces libsnmp.a _only_, no *.so
whatever...

In order to successfully link with the crunch, your libraries need to be
static. That is, you need to compile each object without -fpic -DPIC, and
then make an ar archive with extension *.a. Whatever is in your Makefiles,
you need to tweak them to do just this.

Andrzej Bialecki

--------------------   ++-------++  -------------------------------------
 <abial@nask.pl>       ||PicoBSD||   FreeBSD in your pocket? Go and see:
 Research & Academic   |+-------+|       "Small & Embedded FreeBSD"
 Network in Poland     | |TT~~~| |    http://www.freebsd.org/~picobsd/
--------------------   ~-+==---+-+  -------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9809110748490.2368-100000>