[milters] Archive

Lists Index Date Thread Search

Article: 1857
From: Rob McMahon
Date: 2008-04-16 12:31:21 -0400
Subject: Issues with libsnert-1.66.951

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Building on Solaris 10, x86, with cc: Sun C 5.8 Patch 121016-07 2007/10/03.

The first problem was, at least when building --without-sqlite3, 
tools/sqlargs fails to compile with

cc  -I/usr/local/BerkeleyDB/include/. -D_REENTRANT -I./../../include -O  
-L/usr/local/BerkeleyDB/lib -L./../../lib -osqlargs sqlargs.c -lsnert  
-lresolv -lsocket -lnsl -lrt -ldl
"sqlargs.c", line 504: undefined symbol: SHELL
"sqlargs.c", line 504: warning: improper pointer/integer combination: arg #3
"sqlargs.c", line 505: undefined symbol: SHELL_C_OPTION
"sqlargs.c", line 505: warning: improper pointer/integer combination: arg #3
"sqlargs.c", line 514: undefined symbol: SHELL
"sqlargs.c", line 514: warning: improper pointer/integer combination: arg #1
cc: acomp failed for sqlargs.c

The second problem was, having worked around this one, lib/type/kvmap 
failed to link with:

cc  -I/usr/local/BerkeleyDB/include/. -D_REENTRANT -I../../../include 
-O  -L/usr/local/BerkeleyDB/lib -L../../../lib -okvmap kvmap.c kvm.o 
-lsnert  -lresolv -lsocket -lnsl -lrt -ldl -ldb-4.5  -lpthread -lrt
ld: fatal: symbol `main' is multiply-defined:
    (file kvmap.o type=FUNC; file ../../../lib/libsnert.a(smtp2.o) 
type=FUNC);
ld: fatal: symbol `__fsr_init_value' is multiply-defined:
    (file kvmap.o type=NOTY; file ../../../lib/libsnert.a(smtp2.o) 
type=NOTY);
ld: fatal: symbol `main' is multiply-defined:
    (file kvmap.o type=FUNC; file ../../../lib/libsnert.a(parsePath.o) 
type=FUNC);
ld: fatal: symbol `__fsr_init_value' is multiply-defined:
    (file kvmap.o type=NOTY; file ../../../lib/libsnert.a(parsePath.o) 
type=NOTY);
ld: fatal: File processing errors. No output written to kvmap

The build that worked for me in the end was:

env CC=cc CFLAGS='-O' ./configure --without-sqlite3 
--with-db=/usr/local/BerkeleyDB
make -k CC='cc -UTEST'
cd crc
make Luhn
cd ..
make -k CC='cc -UTEST'
cd net
make ipinclient
cd ..
make -k CC='cc -UTEST'
cd mail
make parsePath
cd ..
make -k CC='cc -UTEST'
touch ../tools/sqlargs
make -k CC='cc -UTEST'

I'm sure there's a neater way, but I hope this helps someone out there.

Cheers,

Rob

-- 
E-Mail:	Rob.McMahon@warwick.ac.uk		PHONE:  +44 24 7652 3037
Rob McMahon, IT Services, Warwick University, Coventry, CV4 7AL, England


Lists Index Date Thread Search