Subject: Re: qmail syncdir problem
To: None <netbsd-users@netbsd.org>
From: rudolf <netbsd@eq.cz>
List: netbsd-users
Date: 06/08/2005 14:11:29
Amitai Schlair wrote:
 > Very strange! It sounds like a problem on your systems, rather than
 > with pkgsrc, since you get that "bad address" error message whether
 > you link with syncdir manually or by using the package.
 >
 > I don't know what the error means. But syncdir is the only qmail
 > option that involves dynamic linking. When you try compiling qmail
 > manually, are you linking with libsyncdir statically or dynamically?

This is how to reach the problem manually:

# tar -xzf qmail-1.03.tar.gz
# cd qmail-1.03
# make compile
# make makelib
# cp /usr/pkgsrc/devel/syncdir/work/syncdir-1.0/syncdir.c ./
# ./compile syncdir.c
# ./makelib libsyncdir.a syncdir.o
# cat ../../../../qmail-patches/qmail-1.03-syncdir.patch
--- qmail-1.03-orig/make-load.sh        Mon Jun 15 13:53:16 1998
+++ qmail-1.03/make-load.sh     Mon Jul 13 01:30:55 1998
@@ -1,2 +1,2 @@
  echo 'main="$1"; shift'
-echo exec "$LD" '-o "$main" "$main".o ${1+"$@"}'
+echo exec "$LD" '-o "$main" "$main".o ${1+"$@"} -L. -lsyncdir'
# gpatch -p1 < ../../../../qmail-patches/qmail-1.03-syncdir.patch
patching file make-load.sh
# make

[...] (passes ok)

# make setup

[...]

cat dot-qmail.9  | sed s}QMAILHOME}"`head -1 conf-qmail`"}g  | sed 
s}BREAK}"`head -1 conf-break`"}g  | sed s}SPAWN}"`head -1 conf-spawn`"}g 
  > dot-qmail.5
nroff -man dot-qmail.5 > dot-qmail.0
nroff -man qmail-command.8 > qmail-command.0
nroff -man tcp-environ.5 > tcp-environ.0
nroff -man maildir.5 > maildir.0
nroff -man mbox.5 > mbox.0
nroff -man addresses.5 > addresses.0
nroff -man envelopes.5 > envelopes.0
nroff -man forgeries.7 > forgeries.0
./install
install: fatal: unable to open current directory: bad address
*** Error code 111

Stop.
make: stopped in /usr/local/src/qmail/qmail/netqmail-1.05/TMP/qmail-1.03


 > Since this looks like a system problem, let's take this to the
 > netbsd-users list. There may be more people who can help there.
 >
 > - Amitai

I don't know, maybe I screwed the system up before I began to work on 
this :)

r.