This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: TCP Wrappers
- From: Prentis Brooks <prentis at aol dot net>
- To: Charles Wilson <cwilson at ece dot gatech dot edu>
- Cc: cygwin-apps at cygwin dot com
- Date: Wed, 3 Apr 2002 14:54:13 -0500 (EST)
- Subject: Re: TCP Wrappers
wheeee, I am going to have fun this weekend ;)
On Wed, 3 Apr 2002, Charles Wilson wrote:
> Mostly correct. Unfortnately, libwrap is bad. It uses an int
> (allow_severity and deny_severity) that are expected to be defined in
> the application (so, tcpd.h says 'extern int allow_severity').
>
> This is okay in a static lib, but not in a DLL. instead, stuff must be
> changed around so that the library itself defines those variables, and
> exports them to the applications -- AND the applications must NOT
> declare them...which means patches to main() in tcpd, tcpdmatch,
> safe-finger, etc.
>
> And sshd.
>
> --Chuck
>
> Christopher Faylor wrote:
>
> > On Wed, Apr 03, 2002 at 12:37:25PM -0500, Prentis Brooks wrote:
> >
> >>I am willing to look into this, it currently does not use libtool, so I
> >>have a lot of mods to make that happen, if I understood cgf right.
> >>
> >
> > I don't remember saying this.
> >
> > It *should* be as simple as saying
> >
> > gcc -Wl,--export-all-symbols -shared -o foo.dll -Wl,--out-implib,cygfoo.a *.o
> >
> > but I guess it rarely is.
> >
> > (I know the above is probably missing some crucial piece or other, I'm
> > just vaguely showing how it should work.)
> >
> > cgf
> >
>
>
--
Prentis Brooks | prentis@aol.net | 703-265-0914 | AIM: PrentisBrooks
Senior System Administrator - Web Infrastructure & Security
A knight is sworn to valor. His heart knows only virtue. His blade
defends the helpless. His word speaks only truth. His wrath undoes
the wicked. - the old code of Bowen, last of the dragonslayers