[milters] Archive

Lists Index Date Thread Search

Article: 3930
From: Edda
Date: 2015-01-22 05:29:13 -0500
Subject: Problem compiling LibSnert 1.73.17 on Solaris 11

Hello,

I've trouble compiling LibSnert 1.73.17 on Solaris 11.

Output from configure:

LibSnert/1.73.17
Copyright 1996, 2010 by Anthony Howe. All rights reserved.

   Platform............: SunOS gcc
   Berkeley DB.........: 5.3 -ldb-5.3
   POSIX Threads.......: yes yes
   SQLite3.............: yes
   Sendmail libmilter..: yes
   Semaphore API.......: POSIX_API
   Shared Memory API...: POSIX_API
   CFLAGS..............: 
-I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I${top_srcdir}/../../include
   LDFLAGS.............: 
-L/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/lib 
-L${top_srcdir}/../../lib
   LIBS................: -lnsl -lsocket -lrt -ldl



"make" ends with the following errors:

[...]
***************************************************************
==> /builder/milter-ahead/milter-ahead-1.11.141/com/snert/src/lib/type
***************************************************************

gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Object.o -c Object.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Data.o -c Data.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Integer.o -c Integer.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Decimal.o -c Decimal.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Hash.o -c Hash.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Vector.o -c Vector.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o queue.o -c queue.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o Text.o -c Text.c
gcc -I/builder/milter-ahead/milter-ahead-1.11.141/org/sqlite/include 
-D_REENTRANT -O2 -Wall -I../../../include -o kvm.o -c kvm.c
kvm.c: In function 'kvm_reopen_db':
kvm.c:1214:20: error: 'DBTXN_ROAR' undeclared (first use in this function)
   rc = db->open(db, DBTXN_ROAR kdb->file, NULL, type, open_mode | 
DB_NOMMAP, 0);
                     ^
kvm.c:1214:20: note: each undeclared identifier is reported only once 
for each function it appears in
kvm.c:1214:31: error: expected ')' before 'kdb'
   rc = db->open(db, DBTXN_ROAR kdb->file, NULL, type, open_mode | 
DB_NOMMAP, 0);
                                ^
kvm.c:1214:31: error: too few arguments to function 'db->open'
kvm.c:1182:12: warning: variable 'open_mode' set but not used 
[-Wunused-but-set-variable]
   int type, open_mode;
             ^
kvm.c:1182:6: warning: variable 'type' set but not used 
[-Wunused-but-set-variable]
   int type, open_mode;
       ^
kvm.c: In function 'kvm_get_db':
kvm.c:1399:35: error: 'DBTXN' undeclared (first use in this function)
    if ((rc = kdb->db->get(kdb->db, DBTXN &k, &v, 0)) == DB_NOTFOUND) {
                                    ^
kvm.c:1399:3: error: too few arguments to function 'kdb->db->get'
    if ((rc = kdb->db->get(kdb->db, DBTXN &k, &v, 0)) == DB_NOTFOUND) {
    ^
kvm.c: In function 'kvm_put_db':
kvm.c:1478:36: error: 'DBTXN' undeclared (first use in this function)
     if ((rc = kdb->db->put(kdb->db, DBTXN &k, &v, 0)) != 0)
                                     ^
kvm.c:1478:4: error: too few arguments to function 'kdb->db->put'
     if ((rc = kdb->db->put(kdb->db, DBTXN &k, &v, 0)) != 0)
     ^
kvm.c: In function 'kvm_remove_db':
kvm.c:1523:34: error: 'DBTXN' undeclared (first use in this function)
     switch (kdb->db->del(kdb->db, DBTXN &k, 0)) {
                                   ^
kvm.c:1523:4: error: too few arguments to function 'kdb->db->del'
     switch (kdb->db->del(kdb->db, DBTXN &k, 0)) {
     ^
kvm.c: In function 'kvm_truncate_db':
kvm.c:1564:39: error: 'DBTXN' undeclared (first use in this function)
     switch (kdb->db->truncate(kdb->db, DBTXN &count, 0)) {
                                        ^
kvm.c:1564:4: error: too few arguments to function 'kdb->db->truncate'
     switch (kdb->db->truncate(kdb->db, DBTXN &count, 0)) {
     ^
kvm.c: In function 'kvm_walk_db':
kvm.c:1650:33: error: 'DBTXN' undeclared (first use in this function)
     if (kdb->db->cursor(kdb->db, DBTXN &cursor, 0) != 0)
                                  ^
kvm.c:1650:4: error: too few arguments to function 'kdb->db->cursor'
     if (kdb->db->cursor(kdb->db, DBTXN &cursor, 0) != 0)
     ^
kvm.c: In function 'kvm_open_sql':
kvm.c:3252:25: warning: argument to 'sizeof' in 'memset' call is the 
same expression as the destination; did you mean to dereference it? 
[-Wsizeof-pointer-memaccess]
   memset(sql, 0 , sizeof (sql));
                          ^
*** Error code 1
make: Fatal error: Command failed for target `kvm.o'
Current working directory 
/builder/milter-ahead/milter-ahead-1.11.141/com/snert/src/lib/type
sh: util:  not found
sh: io:  not found
sh: net:  not found
sh: mail:  not found
sh: sys:  not found
sh: tools:  not found
*** Error code 1
The following command caused the error:
for i in crc object type util io net mail sys tools; do cd $i && make  
build && cd .. ; done
make: Fatal error: Command failed for target `build'


Can you please help?

Best regards,
Edda


Lists Index Date Thread Search