[milters] Archive

Lists Index Date Thread Search

Article: 248
From: Quentin Campbell
Date: 2010-01-19 07:57:04 -0500
Subject: RE: Re: Is this the right place for a question about a

>-----Original Message-----
>From: milters@milter.info [mailto:milters@milter.info] On Behalf Of
>Anthony Howe
>Sent: 19 January 2010 11:52
>To: milters@milter.info
>Subject: [milters] Re: Is this the right place for a question about a
>WIMP problem?
>
>On 19/01/2010 10:17, Quentin Campbell whispered from the shadows...:
>> Jan 19 08:16:04 cheviotdb sendmail[30065]: o0J8G4ss030064:
>to=3D"|/usr/loca=
>> l/sbin/wimp list-name=3Dwimp-test", ctladdr=3D<wimp-
>test@cheviotdb.ncl.ac.u=
>> k> (8/0), delay=3D00:00:00, xdelay=3D00:00:00, mailer=3Dprog,
>pri=3D31630, =
>> dsn=3D4.0.0, stat=3DDeferred: prog mailer (/usr/sbin/smrsh) exited
>with EX_=
>> TEMPFAIL
>
>wimp 0.1.9 ?
>
>Why you using smrsh? I don't use this, nor did I recommend it in my
>setup.

See  Steve's reply.

>
>What are the file permissions for:
>
>/usr/local/sbin/wimp

[root@cheviotdb mail]# ls -l /usr/local/sbin/wimp
-r-xr-xr-x 1 root daemon 187240 Jan 18 14:38 /usr/local/sbin/wimp

>
>/var/wimp

[root@cheviotdb mail]# ls -ld /var/wimp
drwxr-x--- 4 root daemon 4096 Jan 18 12:31 /var/wimp

>
>/var/wimp/wimp-test

[root@cheviotdb mail]# ls -ld /var/wimp/wimp-test
drwxrwx--- 3 root daemon 4096 Jan 19 08:06 /var/wimp/wimp-test

>
>There are only a handful of explicit EX_TEMPFAIL in wimp.c, which should
>write error message to stderr (+verbose writes to stderr, but won't help
>in this case) that would appear in the NDR.
>
>>  wimp-test:      "|/usr/local/sbin/wimp list-name=3Dwimp-test"
>
>Looks fine.
>
>> I am running WIMP on a 64-bit CentOS 5.3 box. The sendmail.cf file
>uses /us=
>> r/sbin/smrsh as the 'prog' mailer. I thus have in /etc/smrsh
>
>Libsnert 1.73.4 should auto detect 64-bit CPU, but just in case build
>libsnert with --enable-64bit. What does uname -m return? Did the compile
>commands (CFLAGS) have -m64?

Yes, it compiled with the -m64 flag. I scripted the 'configure' and 'make' commands and have appended the 279 lines of output from these to this message.

>
>> I suspect I have missed something simple in my setup but cannot see it
>myself!
>
>Or it might be I forgot to document something, but can't see what. The
>install.sh should setup the file perms and initial test dir, etc.

There is no 'install.sh' mentioned. I guess you mean the 'sudo make install'? I built libsnert and wimp as instructed in http://www.snertsoft.com/sendmail/wimp/.

>
>--
>Anthony C Howe            Skype: SirWumpus                  SnertSoft
>+33 6 11 89 73 78       Twitter: SirWumpus      BarricadeMX & Milters
>http://snert.com/      http://nanozen.info/     http://snertsoft.com/

--- start build log
[root@cheviotdb wimp]# cat con*log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by wimp configure 0.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = cheviotdb.ncl.ac.uk
uname -m = x86_64
uname -r = 2.6.18-128.el5
uname -s = Linux
uname -v = #1 SMP Wed Jan 21 10:41:14 EST 2009

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/iss/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1381: checking for md5sum
configure:1397: found /usr/bin/md5sum
configure:1407: result: md5sum
configure:1551: checking for autoconf-2.61
configure:1580: result: no
configure:1631: checking for autoconf-2.59
configure:1660: result: no
configure:1711: checking for autoconf
configure:1738: result: true
configure:1999: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by wimp config.status 0.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on cheviotdb.ncl.ac.uk

config.status:670: creating MANIFEST.TXT
config.status:670: creating makefile
config.status:670: creating install.sh
config.status:670: creating doc/manual.shtml
config.status:670: creating src/makefile
config.status:670: creating src/config.h.in
config.status:773: creating src/config.h
configure:3045: result:   Platform.......: Linux gcc
configure:3047: result:   CFLAGS.........:  -I/local/org/sqlite/include -D_REENTRANT -O2 -Wall -m64 -I${top_srcdir}/../../include 
configure:3049: result:   LDFLAGS........:  -L/local/org/sqlite/lib -m64 -L${top_srcdir}/../../lib 
configure:3051: result:   LIBS...........:  -lsnert -lpthread -ldl  -lrt  

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_AUTOCONF=true
ac_cv_prog_ac_ct_MD5SUM=md5sum

## ----------------- ##
## Output variables. ##
## ----------------- ##

ARCHIVE='${AR} rc ${LIB} $$obj'
AUTOCONF='true'
CC='gcc'
CC_E='-o '
CC_O='-o'
CFLAGS=' -I/local/org/sqlite/include -D_REENTRANT -O2 -Wall -m64 -I${top_srcdir}/../../include '
COMPILE='${CC} ${CFLAGS} ${CC_O} $*$O -c $<'
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
HAVE_LIB_IPHLPAPI=''
HAVE_LIB_PTHREAD='-lpthread'
HAVE_LIB_RT='-lrt'
HAVE_LIB_WS2_32=''
LDFLAGS=' -L/local/org/sqlite/lib -m64 -L${top_srcdir}/../../lib '
LIBEXT='a'
LIBOBJS=''
LIBS=' -lsnert -lpthread -ldl  -lrt  '
LTLIBOBJS=''
MD5SUM='md5sum'
OBJEXT='o'
PACKAGE_BUGREPORT='Anthony Howe <achowe@snert.com>'
PACKAGE_NAME='wimp'
PACKAGE_STRING='wimp 0.1'
PACKAGE_TARNAME='wimp'
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SHELL='/bin/sh'
TAR_I='-T'
ac_ct_AUTOCONF='true'
ac_ct_MD5SUM='md5sum'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
enable_list_root='/var/wimp'
enable_run_group='daemon'
enable_run_user='root'
exec_prefix='${prefix}'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
package_build='9'
package_copyright='Copyright 2009, 2010 by SnertSoft. All rights reserved.'
package_major='0'
package_minor='1'
package_string='wimp 0.1.9'
package_version='0.1.9'
platform='Linux'
prefix='/usr/local'
program_transform_name='s,x,x,'
rel_incdir='../../include'
rel_libdir='../../lib'
rel_tardir='../../../..'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "Anthony Howe <achowe@snert.com>"
#define PACKAGE_NAME "wimp"
#define PACKAGE_STRING "wimp 0.1"
#define PACKAGE_TARNAME "wimp"
#define PACKAGE_VERSION "0.1"
#define RUN_AS_GROUP "daemon"
#define RUN_AS_USER "root"
#define _AUTHOR "Anthony Howe <achowe@snert.com>"
#define _BUILD 9
#define _BUILT "Mon, 18 Jan 2010 09:01:26 +0000"
#define _CONFIGURE "./configure"
#define _COPYRIGHT "Copyright 2009, 2010 by SnertSoft. All rights reserved."
#define _MAJOR 0
#define _MINOR 1
#define _NAME "wimp"
#define _PLATFORM "Linux"
#define _PLATFORM "Linux"
#define _STRING "wimp 0.1.9"
#define _VERSION "0.1.9"

configure: exit 0
Script started on Mon 18 Jan 2010 09:01:08 GMT
[root@cheviotdb wimp]# ./configure
platform is... Linux
checking for md5sum... md5sum
checking for autoconf-2.61... no
checking for autoconf-2.59... no
checking for autoconf... true

wimp/0.1.9
Copyright 2009, 2010 by SnertSoft. All rights reserved.


Generating files...

configure: creating ./config.status
config.status: creating MANIFEST.TXT
config.status: creating makefile
config.status: creating install.sh
config.status: creating doc/manual.shtml
config.status: creating src/makefile
config.status: creating src/config.h.in
config.status: creating src/config.h

wimp/0.1.9
Copyright 2009, 2010 by SnertSoft. All rights reserved.

  Platform.......: Linux gcc
  CFLAGS.........:  -I/local/org/sqlite/include -D_REENTRANT -O2 -Wall -m64 -I${top_srcdir}/../../include 
  LDFLAGS........:  -L/local/org/sqlite/lib -m64 -L${top_srcdir}/../../lib 
  LIBS...........:  -lsnert -lpthread -ldl  -lrt  

[root@cheviotdb wimp]# make build
make[1]: Entering directory `/local/com/snert/src/wimp/src'

***************************************************************
==> /local/com/snert/src/wimp/src
***************************************************************

gcc -I/local/org/sqlite/include -D_REENTRANT -O2 -Wall -m64 -I../../../include  -c IntFile.c
gcc -I/local/org/sqlite/include -D_REENTRANT -O2 -Wall -m64 -I../../../include  -c KeyFile.c
In file included from KeyFile.c:14:
../../../include/com/snert/lib/version.h:60:1: warning: "NDEBUG" redefined
KeyFile.c:8:1: warning: this is the location of the previous definition
KeyFile.c: In function âKeyFileUpdateListâ:
KeyFile.c:82: warning: âdiffâ may be used uninitialized in this function
gcc -D_VERSION_STRING='"'0'.'1'.'`cat BUILD_ID.TXT`'"' -I/local/org/sqlite/include -D_REENTRANT -O2 -Wall -m64 -I../../../include  -c wimp.c
gcc -L/local/org/sqlite/lib -m64 -L../../../lib  -o wimp IntFile.o KeyFile.o wimp.o -lsnert -lpthread -ldl  -lrt  

***************************************************************
Build wimp 0.1.9 DONE
***************************************************************

make[1]: Leaving directory `/local/com/snert/src/wimp/src'
[root@cheviotdb wimp]# sudo make install
make[1]: Entering directory `/local/com/snert/src/wimp/src'

***************************************************************
==> /local/com/snert/src/wimp/src
***************************************************************


***************************************************************
Build wimp 0.1.9 DONE
***************************************************************

make[1]: Leaving directory `/local/com/snert/src/wimp/src'

***************************************************************

Installing... /usr/local/sbin/wimp
Creating..... /var/wimp
Installing... /var/wimp/test/config
Creating..... /usr/local/share/doc/wimp
Installing... /usr/local/share/doc/wimp
install: cannot stat `FILE.TXT': No such file or directory
install: cannot stat `VERSION.TXT': No such file or directory

***************************************************************

Remember to review the sample configuration files above with
your current configuration as existing options sometimes are
deleted or renamed, and new ones added between revisions.

***************************************************************

[root@cheviotdb wimp]# exit

Script done on Mon 18 Jan 2010 09:04:25 GMT
--- end build log

Lists Index Date Thread Search