Re: wtmp logging.
Bob Luckin <[email protected]> Wed, 17 Nov 2004 12:49:00 -0600
| Newsgroups | gmane.network.ftp.wuftpd.devel |
|---|---|
| Message-ID | <[email protected]> |
Clarification : I think most of the email about this was on the wuftpd questions list, not the developers list. After running build (or configure), check the config.h file it should have created. If SVR4 and SOLARIS2 are not defined in this file, you're seeing the problem. A correct use of build should see them defined, but configure is known not to set them correctly on some folks' systems. With these set in config.h, you may not need any patch. Here's a chunk of an old email of mine I found which may make add some background clearer :- > I have number of emails in my archive of people reporting that configure on > Solaris is not setting the SVR4 macro for compilation. This causes problems > with wtmpx and also ls_long and ls_short default settings. And I think > others may have reported additional flakiness which went away when they used > build (I vaguely remember one person also reporting that SOLARIS2 was not > being set either). > > I also have seen others swear that everything seems fine for them under > Solaris after compiling using configure. > > I'm not sure if this variance is because configure behaves differently for > some reason (perhaps depending on what OS patches have been installed, or > whether the compiler is Sun's cc or gcc) - or if configure has been patched > to fix the problem, and some people are installing with an unpatched version > (perhaps it was changed between 2.6.0 and 2.6.1 ?). > > So it seems you pays your money and you takes your choice. But "build" > generally seems safer under Solaris at the moment. Good luck ! Cheers, Bob On Wed, Nov 17, 2004 at 12:40:17PM -0600, Bob Luckin wrote: > The configure option is dodgy under Solaris 2 - it does not always set some > of the needed compiler macros correctly; there should be some emails about > this in the archive (probably 2003 or earlier). I _think_ that wtmp > logging not working correctly may be one of the results of this... > > Cheers, Bob > > On Wed, Nov 17, 2004 at 04:32:43PM +0000, Andrew Hardy wrote: > > > > Thanks for help. > > > > I have tried the suggested patch and I get this > > > > machine> patch logwtmp.c < thePatch > > Looks like a unified context diff. > > I can't seem to find a patch in there anywhere. > > > > I'm sure I've copied the patch correctly, perhaps this patch will not work > > from wu-2.6.1? Or am I doing something else wrong. > > > > BTW: > > > > Why does the web page say: > > > > "...Then use the build script (not configure) to build on Solaris..." > > > > Building wu-ftpd is incorporated into our build process and executes > > configure to generate the Makefile(s) then executes the make. > > > > Thanks, > > > > Andrew H. > > > > > > > > > > > > > > |---------+----------------------------> > > | | Ian Willis | > > | | <[email protected]| > > | | om> | > > | | Sent by: | > > | | owner-wuftpd-dev@| > > | | wu-ftpd.org | > > | | | > > | | | > > | | 17/11/2004 15:59 | > > | | | > > |---------+----------------------------> > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > | | > > | To: [email protected] | > > | cc: [email protected] | > > | Subject: Re: wtmp logging. | > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > > > > > > > > > Solaris 8 uses /var/adm/wtmpx instead of /var/adm/wtmp, try the patch from: > > > > http://www.landfield.com/wu-ftpd/mail-archive/wuftpd-dev/2002/Sep/0006.html > > > > Ian > > > > | From: "Andrew Hardy" <[email protected]> > > | Subject: wtmp logging. > > | To: [email protected] > > | Date: Wed, 17 Nov 2004 15:28:27 +0000 > > | > > | We have Solaris as follows: > > | > > | Machine hardware: sun4u > > | OS version: 5.8 > > | Processor type: sparc > > | Hardware: SUNW,Ultra-4 > > | > > | We are running wu-ftp version Version wu-2.6.1(1). > > | > > | It seems wtmp_logging is not supported, but at various times including > > | logout we get a sys log message saying the file cannot be found. > > | > > | ftpd.c has static int wtmp_logging hard coded to 1. Before we change > > this > > | static, add a #define or generally hack around with the code, can any one > > | tell me what is the proper and safe way to indicate to the software not > > to > > | imnplement wtm logging ? > > | > > | Many thanks, > > | > > | Andrew H. > > > > > > > > > -- > Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C" -- Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C"