Subject: [netatalk] ddp failed to attach on Solaris

From: Kip Perkins <[email-masked]>
Date: Thu, 2 Nov 2000 09:50:10 -0600

Good morning, I am running Solaris 8 and trying to get Netatalk up and running.
Everything seems to go fine until the kinstall.
After ececuting kinstall I get the following output:

/usr/ucb/install -c ddp.conf /usr/kernel/drv/ddp.conf
add_drv -m '* 0666 root sys' ddp
Warning: Driver (ddp) successfully added to system but failed to attach

I cannot seem to find any docs on this error. 
Could someone point me to the relevant docs or gurus?

Thanks in advance
-Kip

-- 
Kip Perkins
Systems Administrator
smallbusiness.com, Inc.
615.846.2934 office 615.593.6439 mobile

QUIDQUID LATINE DICTUM SIT, PROFUNDUM VIDITUR
(Whatever is said in Latin appears profound)

---

From: Tim Carlson <[email-masked]>
Date: Thu, 2 Nov 2000 10:06:09 -0700 (MST)

> After ececuting kinstall I get the following output:

Are you using gcc to compile your kernel modules? You have to use Sun's
Workshop C compiler to get 64bit modules.  If you don't have Sun's
compiler, download a precomipled tarball from me. I just built and
installed asun-pre39 on Solaris 8

ftp://ftp.santafe.edu/pub/unix/netatalk/solaris8-TCP.tar.gz

This includes only TCP wrapper support.

Tim

Tim Carlson                                  Voice:    (505) 984-8800x255
Director of Computing: Santa Fe Institute    Fax:      (505) 982-0565
WWW: http://www.santafe.edu/~tim             Email:   [email-masked]

---

From: Kip Perkins <[email-masked]>
Date: Thu, 2 Nov 2000 14:27:10 -0600

Are these errors due to installing Solaris 8 as 64-bit?
I downloaded the tarball that Tim Carlson sent (thanks Tim) but this series
(make - freaked out, make install -did not seem to work, and kinstall-totally
freaked out) seemed to work even less.

The make kinstall seems to be looking for a /dev/ddp but there is none. Should
I just create this file (since I am not sure what this device is) or should make
kinstall or make install create it?

Thanks
-kip

---

From: Tim Carlson <[email-masked]>
Date: Thu, 2 Nov 2000 14:37:21 -0700 (MST)

> Are these errors due to installing Solaris 8 as 64-bit?

Solaris 8 is only 64 bit. You can't install a 32 bit Solaris 8

> freaked out) seemed to work even less.

You don't do the "make". Everything is already built.

make install
make kinstall

Here is a log of me doing this on a Solaris 8 box
chicoria{tim}:/tmp> uname -a
SunOS chicoria 5.8 Generic_108528-02 sun4u sparc SUNW,Ultra-250
chicoria{tim}:/tmp>wget -q ftp://ftp.santafe.edu/pub/unix/netatalk/solaris8-TCP.tar.gz
chicoria{tim}:/tmp> tar zxf solaris8-TCP.tar.gz
chicoria{tim}:/tmp> cd netatalk-1.4b2+asun2.1.4
chicoria{tim}:/tmp> sudo tcsh

[ somewhere in here you need to edit /etc/netconfig and /etc/services
probably with a reboot to redo netconfig.. not sure if that is needed]

chicoria{root}:/tmp/netatalk-1.4b2+asun2.1.4> make install
-snip-
[ some warnings but no real errors]
-snip-

chicoria{root}:/tmp/netatalk-1.4b2+asun2.1.4> make kinstall
Making kinstall for solaris...
make[1]: Entering directory `/tmp/netatalk-1.4b2+asun2.1.4/sys/solaris'
Making kernel for sparc...
make[2]: Entering directory `/tmp/netatalk-1.4b2+asun2.1.4/sys/solaris'
make[2]: `ddp' is up to date.
make[2]: Leaving directory `/tmp/netatalk-1.4b2+asun2.1.4/sys/solaris'
rm -f /etc/rc2.d/S79atalk /etc/rc0.d/K79atalk
if [ x"true" != x ] ; then \
        rm -f /usr/kernel/drv/sparcv9/ddp; \
        rm -f /usr/kernel/strmod/sparcv9/ddp; \
else \
        rm -f /usr/kernel/drv/ddp; \
        rm -f /usr/kernel/strmod/ddp; \
fi
rm -f /usr/kernel/drv/ddp.conf
rem_drv ddp
sync;sync;sync
if [ x"true" != x ]; then \
        /usr/ucb/install -c ddp /usr/kernel/drv/sparcv9/ddp; \
        ln /usr/kernel/drv/sparcv9/ddp /usr/kernel/strmod/sparcv9/ddp; \
else \
        /usr/ucb/install -c ddp /usr/kernel/drv/ddp; \
        ln /usr/kernel/drv/ddp /usr/kernel/strmod/ddp; \
fi
/usr/ucb/install -c ddp.conf /usr/kernel/drv/ddp.conf
add_drv -m '* 0666 root sys' ddp
sync;sync;sync
if [ -f /etc/init.d/atalk ]; then \
        echo "Preserving existing /etc/init.d/atalk settings."; \
else \
sed -e s@:DESTDIR:@/opt/atalk@ -e s@:SBINDIR:@/opt/atalk/sbin@ \
        -e s@:BINDIR:@/opt/atalk/bin@ -e s@:RESDIR:@/opt/atalk/etc@ \
        -e s@:ETCDIR:@/opt/atalk/etc@ -e s@:LIBDIR:@/opt/atalk/lib@ \
        -e s@:INCDIR:@/opt/atalk/include@ \
    < ../../distrib/initscripts/rc.atalk.sysv > /etc/init.d/atalk; \
fi
Preserving existing /etc/init.d/atalk settings.
chmod 744 /etc/init.d/atalk
ln -s ../init.d/atalk /etc/rc2.d/S79atalk
ln -s ../init.d/atalk /etc/rc0.d/K79atalk
make[1]: Leaving directory `/tmp/netatalk-1.4b2+asun2.1.4/sys/solaris'