[milters] Archive

Lists Index Date Thread Search

Article: 3834
From: G1OGY \(Dave\)
Date: 2014-01-25 13:05:15 -0500
Subject: Maybe i's because I is not WIMP?

Hello List

Linux host:
Have had milter-spamc and milter-null running, built against libsnert
1.73.17 (which appears to be current) since Christmas 2011.  The lib and
both milters were built on this machine - probable version at that time:
CentOS 5.7

Currently having problems compiling WIMP against the same instance of
libsnert; first without a rebuild of the lib and subsequently having
successfully rebuilt the library on the present state of the machine:

***************************************************************
Build 17 DONE
***************************************************************

$ cat /etc/redhat-release
CentOS release 5.10 (Final)

$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)
Copyright (C) 2006 Free Software Foundation, Inc.


Just to probe my kit I built milter-clamc without issue (against today's
rebuild of libsnert):

***************************************************************
Build 20 DONE
***************************************************************

I post the build result from WIMP below.  Apart from certain early warnings,
it would appear that the WIMP code takes great exception to certain parts of
libsnert. I'd be grateful should anyone have any advice as to the likely
cause: code ~vs~ platform|compiler.

Many thanks
-Dave

Note:  my libsnert is configured with: --without-sqlite3


>>>

...wimp]$ ./configure
platform is... Linux
checking for md5sum... md5sum
checking for autoconf-2.61... no
checking for autoconf-2.59... no
checking for autoconf... autoconf

wimp/0.1.24
Copyright 2009, 2012 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: WARNING:  install.sh.in seems to ignore the --datarootdir
setting
config.status: creating doc/manual.shtml
config.status: creating examples/wimp-sort.sh
config.status: creating src/makefile
config.status: creating archive/config
config.status: creating src/config.h.in
config.status: creating src/config.h

wimp/0.1.24
Copyright 2009, 2012 by SnertSoft. All rights reserved.

  Platform.......: Linux gcc
  CFLAGS.........:  -I/usr/include/db4 -D_REENTRANT -O2 -Wall
-I${top_srcdir}/../../include
  LDFLAGS........:  -L${top_srcdir}/../../lib
  LIBS...........:  -lsnert -lpthread -ldl
  run-user.......: root
  run-group......: daemon

...wimp]$ make build
make[1]: Entering directory
`/usr/src/SOURCES/snertsoft/com/snert/src/wimp/src'

***************************************************************
==> /usr/src/SOURCES/snertsoft/com/snert/src/wimp/src
***************************************************************

gcc -I/usr/include/db4 -D_REENTRANT -O2 -Wall -I../../../include  -c
IntFile.c
gcc -I/usr/include/db4 -D_REENTRANT -O2 -Wall -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
gcc -D_VERSION_STRING='"'0'.'1'.'`cat BUILD_ID.TXT`'"' -I/usr/include/db4
-D_REENTRANT -O2 -Wall -I../../../include  -D_BUILT="\"`date +'%a, %d %b %Y
%H:%M:%S %z'`\"" -c wimp.c
wimp.c:2619: warning: assignment makes pointer from integer without a cast
gcc -L../../../lib  -o wimp IntFile.o KeyFile.o wimp.o -lsnert -lpthread
-ldl
../../../lib/libsnert.a(socket2.o): In function `socketReadLine2':
socket2.c:(.text+0xf51): undefined reference to `clock_gettime'
socket2.c:(.text+0x10e5): undefined reference to `clock_gettime'
../../../lib/libsnert.a(pdq.o): In function `pdqPoll':
pdq.c:(.text+0x35e4): undefined reference to `clock_gettime'
pdq.c:(.text+0x37be): undefined reference to `clock_gettime'
../../../lib/libsnert.a(pdq.o): In function `pdq_wait':
pdq.c:(.text+0x3c37): undefined reference to `clock_gettime'
../../../lib/libsnert.a(pdq.o):pdq.c:(.text+0x3cd1): more undefined
references to `clock_gettime' follow
collect2: ld returned 1 exit status
make[1]: *** [wimp] Error 1
make[1]: Leaving directory
`/usr/src/SOURCES/snertsoft/com/snert/src/wimp/src'
make: *** [build] Error 2
...wimp]$


<<<

--
Dave Gilligan, G1OGY
_______________________________________

United Kingdom.  JO01GR
WWW: <www.g1ogy.com> <www.m1cro.org.uk>
GSM: +44 (0)7764 784627




Lists Index Date Thread Search