Subject: Re: [netatalk-admins] make of netatalk failed
From: Stefan Barth (065927493-0004@t-online.de)
Date: Fri Mar 06 1998 - 06:55:48 EST
Hi!
First of all, a big THANK YOU to the people who write and continuously
improve great software such as netatalk!
The following is for the benefit of folks like me, who need to be told
step-by-step what to do.
> Recently, when I tried to compile netatalk-1.4b2.0a18.2, make failed with
> the error:
> unix.c:63: sys/quota.h : No such file or directory.
> I have commented out DESDIR=/usr/local in the Makefile before issuing
> make. I have also edited sys/linux/Makefile, changing the line
> #-DNEED_QUOTACTL_WRAPPER to "DNEED_QUOTACTL_WRAPPER=", but I still get
> the same error.
> Where have I gone wrong? The only quota.h file I can see is in
> /usr/src/linux/include/linux/quota.h
I´ve had the same problem and followed this thread with great interest.
I´m not a programmer and find even the READMEs quite difficult at times.
Today the patched netatalk (netatalk-1.4b2+asun2.0a18.2.tar) finally
compiled and is running on my machine - the dancing icons are gone, too!
So here´s exactly what I did:
Makefile in the root directory of netatalk:
---snip---
# Location of the DES library and include files. Comment this out if you
# don't want Randnum Exchange and 2-Way Randnum Exchange as allowable
UAMs
# for afpd. We expect libdes.a in $DESDIR/lib and des.h in
$DESDIR/include.
# DESDIR=/usr/local
# Location of the tcp wrapper library and include files. Comment this
out
# if you don't want tcp wrapper support. having tcp wrapper support is
# highly recommended.
TCPWRAPDIR=/usr
# Location of PAM support library and include files. Comment this out
# if you don't want to enable PAM support
# PAMDIR=/usr
---snip---
(At first errors came from a missing des.h file and missing
pam-something-or-other files)
Makefile in sys/linux:
# Linux specific defines, passed to subdirectories.
#-DNEED_QUOTACTL_WRAPPER
DEFS= -DNEED_QUOTACTL_WRAPPER
OPTOPTS= -O5 -fomit-frame-pointer -fsigned-char -Wunused
-Wuninitialized
#OPTOPTS= -g -fsigned-char
CC= gcc
INSTALL= install
# if you aren't using pam and are using glibc, you'll need to add
-lcrypt
AFPLIBS=
ADDLIBS=
---snip---
(If using glibc, I imagine you´d need to put AFPLIBS= -lcrypt)
Makefile in etc/afpd:
---snip---
CFLAGS= ${DEFS} ${AFSDEFS} ${KRBDEFS} ${DESDEFS} ${OPTOPTS} ${INCPATH} \
${PAMDEFS} -DAPPLCNAME -DCRLF -DSHADOWPW # -DDOWNCASE
---snip---
(This enables shadow password support, which I need here. Without, I
could only log into the linux server as guest)
Hope this helps!
Stefan Barth
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:31:21 EST