A NOTE has been added to this issue. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=560 
====================================================================== 
Reported By:                enp
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   560
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             02-Apr-07 07:36 CEST
Last Modified:              05-Apr-07 08:22 CEST
====================================================================== 
Summary:                    Empty makefile after autoreconf -fisv and
./configure --with-sqlite
Description: 
I found very strange bug after using autoreconf -fisv and ./configure
--with-sqlite:

[EMAIL PROTECTED] ~]$ tar -zxf dbmail-2.2.4.tar.gz

[EMAIL PROTECTED] ~]$ cd dbmail-2.2.4

[EMAIL PROTECTED] dbmail-2.2.4]$ autoreconf -fisv
autoreconf-default: Entering directory `.'
autoreconf-default: configure.in: not using Gettext
autoreconf-default: running: aclocal --force
autoreconf-default: configure.in: tracing
autoreconf-default: running: libtoolize --force
Putting files in AC_CONFIG_AUX_DIR, `buildtools'.
autoreconf-default: running: /usr/bin/autoconf-2.5 --force
autoreconf-default: running: /usr/bin/autoheader-2.5 --force
autoreconf-default: running: automake --add-missing --force-missing
autoreconf-default: Leaving directory `.'

[EMAIL PROTECTED] dbmail-2.2.4]$ ./configure --with-sqlite

This is dbmail's GNU configure script.
It's going to run a bunch of strange tests to hopefully
make your compile work without much twiddling.

checking for a BSD-compatible install... /bin/install -c
....
config.status: creating dbmail.h
sed: file /usr/src/tmp/cs.ImzjQ28668/subs-3.sed line 19: unknown option to
`s'
....
sed: file /usr/src/tmp/cs.ImzjQ28668/subs-21.sed line 3: unknown command:
`"'
config.status: creating config.h
config.status: executing depfiles commands

DM_LOGDIR:     /var/log
DM_CONFDIR:    /etc
DM_STATEDIR:   /var/run
USE_DM_GETOPT:
CFLAGS:        -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
 -I/usr/include/gmime-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -W -Wall -Wpointer-arith
-Wstrict-prototypes
GLIB:          -lglib-2.0
GMIME:         -lgmime-2.0 -lz -lnsl -lgobject-2.0 -lglib-2.0
MYSQL:
PGSQL:
SQLITE:        -lsqlite3
SIEVE:
LDAP:
SHARED:        yes
STATIC:        no
CHECK:         no
SOCKETS:       -lresolv

[EMAIL PROTECTED] dbmail-2.2.4]$ ls -l Makefile
-rw-r--r-- 1 builder builder 0 Apr  1 13:51 Makefile

So, makefile generated with sqlite is empty. All works fine with mysql or
postgresql. All works fine without autoreconf -fisv. 
====================================================================== 

---------------------------------------------------------------------- 
 paul - 02-Apr-07 09:22  
---------------------------------------------------------------------- 
It the sed script that escapes and includes the
sql/sqlite/create_tables.sqlite in dbmail.h that is giving you trouble
here. Please take a look at acinclude.m4 around line 160 where it reads:

      SQLITECREATE=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"
\\\\/'  
             sql/sqlite/create_tables.sqlite`

Perhaps there's something amiss with the sed version you use, the shell
under which you run the configure command, or the current working
directory is not the root of the dbmail source tree. 

---------------------------------------------------------------------- 
 enp - 02-Apr-07 09:43  
---------------------------------------------------------------------- 
`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\" \\\\/' works on build
server without any error :( 

---------------------------------------------------------------------- 
 enp - 05-Apr-07 08:20  
---------------------------------------------------------------------- 
Which sed version is used for dbmail configure?

After some debugging I see that reason for error:

sed: file /usr/src/tmp/cs.ToSJY31771/subs-3.sed line 19: unknown option to
`s'

is this string in /usr/src/tmp/cs.ToSJY31771/subs-3.sed:

s,@SQLITECREATE@,"-- Copyright (C) 2005 Internet Connection, Inc.\n" \

The reason for error:

sed: file /usr/src/tmp/cs.ToSJY31771/subs-4.sed line 3: unknown command:
`"'

is this string in /usr/src/tmp/cs.ToSJY31771/subs-4.sed:

"CREATE TABLE dbmail_users (\n" \

What's wrong in this strings? 

---------------------------------------------------------------------- 
 enp - 05-Apr-07 08:22  
---------------------------------------------------------------------- 
My sed version is 4.1.5 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-Apr-07 07:36 enp            New Issue                                    
02-Apr-07 09:22 paul           Note Added: 0002000                          
02-Apr-07 09:43 enp            Note Added: 0002001                          
05-Apr-07 08:20 enp            Note Added: 0002007                          
05-Apr-07 08:22 enp            Note Added: 0002008                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to