A NOTE has been added to this issue.
======================================================================
http://dbmail.org/mantis/view.php?id=560
======================================================================
Reported By: enp
Assigned To: aaron
======================================================================
Project: DBMail
Issue ID: 560
Category: General
Reproducibility: always
Severity: major
Priority: normal
Status: feedback
target:
======================================================================
Date Submitted: 02-Apr-07 07:36 CEST
Last Modified: 05-May-07 21:34 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
----------------------------------------------------------------------
enp - 05-Apr-07 08:41
----------------------------------------------------------------------
Simple sed test:
$ cat test.sed
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
"" \
$ sed -f test.sed
sed: file test.sed line 3: unknown command: `"'
Are the same sed scripts must be generated or something wrong was happen
during generation?
----------------------------------------------------------------------
enp - 05-Apr-07 08:50
----------------------------------------------------------------------
Is it possible to add configure parameter to turn off creating sqllite
tables on startup as temporary solution?
----------------------------------------------------------------------
aaron - 01-May-07 23:45
----------------------------------------------------------------------
No luck reproducing this bug, sorry!
----------------------------------------------------------------------
enp - 02-May-07 06:23
----------------------------------------------------------------------
I can give you shell access to virtual server on which this bug is
reproducable. Can this help?
----------------------------------------------------------------------
aaron - 02-May-07 06:27
----------------------------------------------------------------------
Sure, please contact me directly: aaron at serendipity dot cx. Thanks!
----------------------------------------------------------------------
aaron - 05-May-07 21:34
----------------------------------------------------------------------
Reproduceable error on any system with autoconf 2.59.
I'm using autoconf 2.61, and probably Paul is, too.
I'm looking into changing the sed invocation to work with the older
autoconf, but it might just be easier to upgrade the systems in question.
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
05-Apr-07 08:41 enp Note Added: 0002009
05-Apr-07 08:50 enp Note Added: 0002010
01-May-07 23:45 aaron Status new => resolved
01-May-07 23:45 aaron Resolution open => unable to
reproduce
01-May-07 23:45 aaron Assigned To => aaron
01-May-07 23:45 aaron Note Added: 0002120
02-May-07 06:23 enp Status resolved => feedback
02-May-07 06:23 enp Resolution unable to reproduce =>
reopened
02-May-07 06:23 enp Note Added: 0002129
02-May-07 06:27 aaron Note Added: 0002130
05-May-07 21:34 aaron Note Added: 0002135
======================================================================
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev