From owner-freebsd-small Fri Sep 11 05:23:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA24355 for freebsd-small-outgoing; Fri, 11 Sep 1998 05:23:07 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from lily.ezo.net (lily.ezo.net [206.102.130.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA24348 for ; Fri, 11 Sep 1998 05:23:05 -0700 (PDT) (envelope-from jflowers@ezo.net) Received: from violet.ezo.net (violet.ezo.net [206.102.130.133]) by lily.ezo.net (8.8.7/8.8.7) with SMTP id IAA06150; Fri, 11 Sep 1998 08:20:42 -0400 (EDT) From: "Jim Flowers" To: "Andrzej Bialecki" Cc: Subject: Re: PicoBSD & 2.2.7 Date: Fri, 11 Sep 1998 08:23:49 -0400 Message-ID: <01bddd7f$0792fae0$858266ce@violet.ezo.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sounds like someone is listening to you. 2.2.7 is furnished with ucd-snmp-3.5 which (when configured) produces a Makefile that contains (among possibly others) ----------- # Shared library commands (or not) SHLIB_CFLAGS=-fpic -shared SHLIB_EXTENSION=so SHLIB_LDCONFIG_CMD= SHLIB_LD_CMD=ld -Bshareable -o CC_RUNTIME_ARG= ... CFLAGS=-O -Dfreebsd2 -shared ------------- When I remove the -fpic and -shared flags make generates masses of Undefined symbol errors (_close, _sysctl, _ioctl, ...). Rather than edit each .c file to add the includes my solution was to backup to the root level and edit the Makefile there to remove the --enable-shared argument and make reinstall the whole thing. Now everything is static including snmplib.a. --------- #CONFIGURE_ARGS= --enable-shared CONFIGURE_ARGS= -------- Hope the bugfix on 0.4 is progressing nicely. Jim -----Original Message----- From: Andrzej Bialecki To: Jim Flowers Cc: freebsd-small@FreeBSD.ORG Date: Friday, September 11, 1998 1:53 AM Subject: Re: PicoBSD & 2.2.7 >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... > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message