Date: Tue, 20 Nov 2001 10:20:08 -0800 From: Patrick Mahan <mahan@cisco.com> To: "Howard Leadmon" <howardl@abs.net> Cc: <Freebsd-alpha@FreeBSD.ORG> Subject: Re: Tac_plus4 (tacacs) and DEC Alpha, anyone have it working?? Message-ID: <5.0.0.25.0.20011120101655.03a1c4a0@pita.cisco.com> In-Reply-To: <007101c1719a$b2da2e70$f60aa8c0@leadmon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
It has been a while since I have compiled anything on the Alpha and I have never used gcc on it. However, the thing that jumps up for me (that caught me when we ported tons of code from the DEC VAX to the Alpha) is that pointers are now 64-bit. A lot of code sometimes assumes that point size == 4 bytes (32 bits). If you are casting a pointer to an int, it might just be incorrect. Is there a gcc switch to force pointer types to 32 bit? Patrick At 03:09 AM 11/20/01 -0500, Howard Leadmon spoke: > I am curious to see if anyone has the tacacs port working with the >Alpha?? I can get it to compile and link, but with a few errors. Where >things fall apart is when you try and use encryption with tac and set >keys on the routers/switches. If you do this on an Intel FBSD box all >is great, but if you do it on an Alpha, then it just fails. If I run >without keys, then the alpha port runs OK, but not really the smart way >to run your auth daemons. > >I get the following errors/warnings when I build on an Alpha, that don't >show up if I build on an Intel: > >cc -O -pipe -mcpu=ev56 -DTAC_IOS_VERSION=11 -mcpu=ev56 -DSKEY >-DFREEBSD -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\" -DMAXSESS -c >md5.c >md5.c: In function `MD5Update': >md5.c:173: warning: type mismatch in implicit declaration for built-in >function `memcpy' >md5.c: In function `MD5Final': >md5.c:215: warning: type mismatch in implicit declaration for built-in >function `memset' > >cc -O -pipe -mcpu=ev56 -DTAC_IOS_VERSION=11 -mcpu=ev56 -DSKEY >-DFREEBSD -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\" -DMAXSESS -c >tac_plus.c >tac_plus.c: In function `main': >tac_plus.c:318: warning: cast to pointer from integer of different size >tac_plus.c:477: warning: cast to pointer from integer of different size > >cc -O -pipe -mcpu=ev56 -DTAC_IOS_VERSION=11 -mcpu=ev56 -DSKEY >-DFREEBSD -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\" -DMAXSESS -c >regexp.c >regexp.c: In function `regcomp': >regexp.c:276: warning: type mismatch in implicit declaration for >built-in function `strlen' > >cc -O -pipe -mcpu=ev56 -DTAC_IOS_VERSION=11 -mcpu=ev56 -DSKEY >-DFREEBSD -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\" -DMAXSESS -o >generate_passwd generate_passwd.c -lcrypt >generate_passwd.c: In function `main': >generate_passwd.c:44: warning: type mismatch in implicit declaration for >built-in function `strlen' > > > >Any ideas on how I can get this working, would be most appreicated... > >-Howard Leadmon > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-alpha" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.0.0.25.0.20011120101655.03a1c4a0>