Joe, the second patch did not apply for me. See the attached typescript. I have not yet built a port debug version, could you hint me how to do that, too? Thanks for all your help -Christoph Sold Joe Clarke wrote: >Jordan, here is another patch which replaces the two I sent earlier. This >should fix not only the core dump problems, but the realloc/free warnings >as well. This code only gets called when no atalkd.conf file exists. If >you or Christoph could test this code, and let me know if it works, I will >add it to the port. I've tested things here, and it works for me, >and passes the A and Z malloc tests. Thanks. > >Joe > >On Wed, 12 Sep 2001, Jordan Hubbard wrote: > >>Progress! For the record, here's what I was getting on a RELENG_4 box >>(as of this morning) when netatalk attempted to start up from >>/usr/local/etc/rc.d/netatalk.sh: >> >>katalkd in realloc(): warning: chunk is already free. >>atalkd in free(): warning: chunk is already free. >>AppleTalk not up! Check your syslog for the reason. Child died. >>Sep 12 16:56:44 freebsd /kernel: pid 280 (atalkd), uid 0: exited on signal 11 (core >dumped) >>Sep 12 16:56:44 freebsd atalkd: difaddr(0.0): Can't assign requested address >>nbp_rgstr: Network is unreachable >>Can't register freebsd:netatalk@* >>nbp_rgstr: Network is unreachable >>Can't register freebsd:Workstation@* >>Sep 12 16:56:45 freebsd afpd[286]: Can't register freebsd:AFPServer@* >> >>I then checked /usr/local/etc/atalkd.conf and saw that it was all >>simply commented out examples. I have only one interface, rl0, and >>according to the comments it should have been auto-discovered, but just >>on a lark I tried adding it to atalkd.conf to see if it had any >>effect. It did! All the core dumps have gone away. >> >>Now I'm on to my second problem. I've put /usr (just that, on a line >>by itself) into /usr/local/etc/AppleVolumes.default and "usr" (but >>with no leading slash) shows up in the volumes menu when I go to mount >>it over AFP under MacOS X. If I then select this, the server disconnects >>immediately and I get: >> >>afpd[pid]: dsi_stream_read(0): No such file or directory >> >>On the FreeBSD machine's console. Could it be because it's exporting >>"usr" vs "/usr"? If so, why would it do that when I used "/usr" in >>the AppleVolumes.default file? >>
Script started on Thu Sep 13 16:01:16 2001 potzblix# make clean ===> Cleaning for autoconf-2.13_1 ===> Cleaning for gettext-0.10.35 ===> Cleaning for gmake-3.79.1 ===> Cleaning for libtool-1.3.4_2 ===> Cleaning for m4-1.4 ===> Cleaning for netatalk-1.5p7_1 potzblix# make extract patch ===> Extracting for netatalk-1.5p7_1 >> Checksum OK for netatalk-1.5pre7.tar.gz. ===> netatalk-1.5p7_1 depends on executable: gmake - found ===> netatalk-1.5p7_1 depends on executable: autoconf - found ===> netatalk-1.5p7_1 depends on executable: libtool - found ===> Patching for netatalk-1.5p7_1 ===> Applying FreeBSD patches for netatalk-1.5p7_1 potzblix# cd work/netatalk-1.5pre7/ potzblix# cp ../../patch-getiface . potzblix# patch < patch-getiface Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- libatalk/util/getiface.c.orig Thu Sep 13 00:28:21 2001 |+++ libatalk/util/getiface.c Thu Sep 13 00:28:30 2001 -------------------------- Patching file libatalk/util/getiface.c using Plan A... Hunk #1 failed at 43. Hunk #2 failed at 53. Hunk #3 failed at 91. Hunk #4 failed at 104. Hunk #5 failed at 119. Hunk #6 failed at 134. 6 out of 6 hunks failed--saving rejects to libatalk/util/getiface.c.rej done potzblix# exit Script done on Thu Sep 13 16:02:11 2001