From dubois Sat Oct 5 09:59 CDT 1996 Return-Path: Received: by night.primate.wisc.edu; id JAA20848; 8.6.10/41.8; Sat, 5 Oct 1996 09:59:09 -0500 Resent-From: Paul DuBois Received: by night.primate.wisc.edu; id JAA20656; 8.6.10/41.8; Sat, 5 Oct 1996 09:55:00 -0500 Message-Id: <199610051455.JAA20656@night.primate.wisc.edu> Date: Sat, 5 Oct 1996 09:54:59 -0500 From: dubois@primate.wisc.edu (Paul DuBois) To: wesley.craig@umich.edu Cc: netatalk-admins@umich.edu, mklinux-networking@mklinux.apple.com Subject: Re: netatalk 1.4 beta 1 (MkLinux DR2 patches) In-Reply-To: <199610012231.SAA21871@terminator.rs.itd.umich.edu>; from wesley.craig@umich.edu on Oct 1, 1996 18:31:57 -0400 References: <199610012231.SAA21871@terminator.rs.itd.umich.edu> X-Mailer: Mutt 0.46 Mime-Version: 1.0 Resent-Date: Date: Sat, 5 Oct 1996 09:59:09 -0500 Resent-To: junkyard@primate.wisc.edu Content-Length: 3595 Lines: 111 Status: RO Here are some patches to make netatalk-1.4b1 compile under MkLinux DR2. These patches assume you're running the fixed gcc that was released a couple of days ago that includes profiling support. Otherwise the -p option to gcc will result in gcc internal errors and you'll need to remove the -p flag from the .c.o rule in several Makefiles. The fixed gcc is available at http://www.primate.wisc.edu/people/dubois/mklinux/DR2. Note that the patches allow netatalk to be built; it doesn't yet run correctly. Everything starts up correctly, but nbplkup shows only entities located on the local machine. I can't see anything else on my network, and other devices on my network can't see my MkLinux machine. I'm posting these patches in hopes that they'll help someone else get to the point where they can find out what else might need to be done. Patch notes: - some of the changes just add includes for netatalk/endian.h, so that the definition of ntohs() can be found. - the patch to netatalk/endian.h causes inclusion of the MkLinux header file in which ntohs() is defined. - the printcap.c patch silences a couple of compiler complaints about declaring functions non-static, then defining them static. - the linux/Makefile patch adds -fsigned-char because gcc on MkLinux by default treats chars as unsigned, which causes some comparison error warnings a couple of places. For more information on this flag, see: http://www.mklinux.apple.com/DR2/relnotes.html *** ./etc/papd/main.c.orig Tue Oct 1 17:04:58 1996 --- ./etc/papd/main.c Thu Oct 3 01:08:25 1996 *************** *** 24,29 **** --- 24,30 ---- #include #include + #include #include #include #include *** ./etc/papd/printcap.c.orig Fri Aug 5 17:19:15 1994 --- ./etc/papd/printcap.c Thu Oct 3 23:32:18 1996 *************** *** 81,89 **** static FILE *pfp = NULL; /* printcap data base file pointer */ static char *tbuf; static int hopcount; /* detect infinite loops in termcap, init 0 */ ! char *tskip(); char *tgetstr(); ! char *tdecode(); char *getenv(); /* --- 81,89 ---- static FILE *pfp = NULL; /* printcap data base file pointer */ static char *tbuf; static int hopcount; /* detect infinite loops in termcap, init 0 */ ! static char *tskip(); char *tgetstr(); ! static char *tdecode(); char *getenv(); /* *** ./sys/netatalk/endian.h.orig Sun Apr 9 18:14:28 1995 --- ./sys/netatalk/endian.h Wed Oct 2 23:58:22 1996 *************** *** 31,36 **** --- 31,39 ---- #ifdef linux #include #define BYTE_ORDER __BYTE_ORDER + #ifdef PPC + #include + #endif #endif linux # ifndef BYTE_ORDER *** ./sys/linux/Makefile.orig Fri Sep 27 10:39:35 1996 --- ./sys/linux/Makefile Thu Oct 3 23:51:33 1996 *************** *** 1,6 **** # Linux specific defines, passed to subdirectories. DEFS= ! OPTOPTS= -O2 CC= gcc INSTALL= install ADDLIBS= --- 1,6 ---- # Linux specific defines, passed to subdirectories. DEFS= ! OPTOPTS= -O2 -fsigned-char CC= gcc INSTALL= install ADDLIBS= *** ./libatalk/atp/atp_rsel.c.orig Tue Mar 5 16:44:20 1996 --- ./libatalk/atp/atp_rsel.c Thu Oct 3 00:08:42 1996 *************** *** 28,33 **** --- 28,34 ---- #include #include + #include #include #include #include -- Paul DuBois dubois@primate.wisc.edu Home page: http://www.primate.wisc.edu/people/dubois Software: http://www.primate.wisc.edu/software