This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
qmail compilation
- To: cygwin at cygwin dot com
- Subject: qmail compilation
- From: "=?big5?q?Sam=20C.?=" <hk2good at yahoo dot com dot hk>
- Date: Fri, 20 Jul 2001 18:30:09 +0800 (CST)
Has anyone compiled the qmail in cygwin?
I tried to compile the qmail 1.03, but failed. My
machine is Win98.
What I did :
1. Add the users in /etc/passwd
alias:*:7790:2108::/var/qmail/alias:/bin/true
qmaild:*:7791:2108::/var/qmail:/bin/true
qmaill:*:7792:2108::/var/qmail:/bin/true
qmailp:*:7793:2108::/var/qmail:/bin/true
qmailq:*:7794:2107::/var/qmail:/bin/true
qmailr:*:7795:2107::/var/qmail:/bin/true
qmails:*:7796:2107::/var/qmail:/bin/true
2. Add groups in /etc/group
qmail:*:2107:
nofiles:*:2108:
3. change the qmail-1.03/compile from
exec cc -O2 -c ${1+"$@"}
to
exec gcc -O2 -c ${1+"$@"}
4. change the qmail-1.03/load from
exec cc -s -o "$main" "$main".o ${1+"$@"}
to
exec gcc -s -o "$main" "$main".o ${1+"$@"}
5. run
make setup check
Here is the error log generated during step (5) above
:
[.... initial part skipped as there is no error ....]
./compile sig_pause.c
./makelib sig.a sig_alarm.o sig_block.o sig_catch.o \
sig_pause.o sig_pipe.o sig_child.o sig_hup.o
sig_term.o \
sig_bug.o sig_misc.o
( ( ./compile tryflock.c && ./load tryflock )
>/dev/null \
2>&1 \
&& echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h
rm -f tryflock.o tryflock
./compile lock_ex.c
./compile lock_exnb.c
./compile lock_un.c
./makelib lock.a lock_ex.o lock_exnb.o lock_un.o
( ( ./compile trywaitp.c && ./load trywaitp )
>/dev/null \
2>&1 \
&& echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h
rm -f trywaitp.o trywaitp
./compile wait_pid.c
./compile wait_nohang.c
./makelib wait.a wait_pid.o wait_nohang.o
./load auto-str substdio.a error.a str.a
substdio.a(substdo.o.b)(.text+0x32):substdo.c:
undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [auto-str] Error 1
Could anyone help ?
Thanks in advance.
_________________________________________________________
Do You Yahoo!?
建立個人網站 http://geocities.yahoo.com.hk
Build your own website at http://geocities.yahoo.com.hk
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/