From owner-freebsd-small Thu Sep 10 22:55:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA13603 for freebsd-small-outgoing; Thu, 10 Sep 1998 22:55:59 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from korin.warman.org.pl (korin.nask.waw.pl [148.81.160.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA13558 for ; Thu, 10 Sep 1998 22:55:21 -0700 (PDT) (envelope-from abial@nask.pl) Received: from localhost (abial@localhost) by korin.warman.org.pl (8.9.1/8.8.5) with SMTP id HAA15204; Fri, 11 Sep 1998 07:59:50 +0200 (CEST) X-Authentication-Warning: korin.warman.org.pl: abial owned process doing -bs Date: Fri, 11 Sep 1998 07:59:50 +0200 (CEST) From: Andrzej Bialecki X-Sender: abial@korin.warman.org.pl To: Jim Flowers cc: freebsd-small@FreeBSD.ORG Subject: Re: PicoBSD & 2.2.7 In-Reply-To: <01bddcfe$4d188b60$858266ce@violet.ezo.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -------------------- ++-------++ ------------------------------------- ||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