Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 1998 08:23:49 -0400
From:      "Jim Flowers" <jflowers@ezo.net>
To:        "Andrzej Bialecki" <abial@nask.pl>
Cc:        <freebsd-small@FreeBSD.ORG>
Subject:   Re: PicoBSD & 2.2.7
Message-ID:  <01bddd7f$0792fae0$858266ce@violet.ezo.net>

next in thread | raw e-mail | index | archive | help
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 <abial@nask.pl>
To: Jim Flowers <jflowers@ezo.net>
Cc: freebsd-small@FreeBSD.ORG <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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01bddd7f$0792fae0$858266ce>