Subject: Re: crunching ipf
To: NetBSD current-users <current-users@netbsd.org>
From: Chris Tribo <ctribo@dtcc.edu>
List: current-users
Date: 04/03/2006 16:10:50
On Mar 30, 2006, at 4:03 PM, David Laight wrote:

> On Mon, Mar 27, 2006 at 08:14:10PM -0500, Chris Tribo wrote:
>> Has anyone managed to successfully crunch ipfilter and tools? I'm
>> getting undefined references to "use_inet6" and opts in "libipf.a".
>
> It should be possible to use the 'keepsymbols' directive, probably:
>
> special ipf keepsymbols opts use_inet6

Doesn't seem to work with multiple programs :(

ipnat.cro:(.data+0x0): multiple definition of `use_inet6'
ipf.cro:(.data+0x8): first defined here
*** Error code 1


Next up is syslogd. Do I need to make something like libhack.o to  
define these syms and add it to libs? Nothing in /lib or /usr/lib  
seems to define these. The only thread I found about this suggested a  
newer version of tcpwrappers or to compile consumers without libwrap.

/usr/lib/libwrap.a(options.o): In function `process_options':
options.c:(.text+0x68a): undefined reference to `deny_severity'
options.c:(.text+0x8a7): undefined reference to `deny_severity'
options.c:(.text+0x8ac): undefined reference to `allow_severity'
*** Error code 1

# nm /usr/lib/libwrap.a | grep severity
          U deny_severity
          U allow_severity
          U deny_severity