From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <18292f4f5a470718e6652e8f37d7c5b6.axp-list@archive.invalid> X-Archive-Original-Message-ID: <3.0b36.32.19961115134729.0070f3b4@ntscom.com> Date: Fri, 15 Nov 1996 13:49:14 -0600 From: Rob Allen Subject: Compiling xtacacs-4.0 on Linux/AXP 2.0.24 I have been tring to compile xtacacsd on this platform and I am getting an error message related to casting. These are the errors that I am getting: -------- [root@afterburn xtacacsd-4.0]# make This is xtacacsd revision 4.0 Making for OS Linux 2.0.24 OS_CFLAGS= -DLINUX -DHAVEGIDTYPE and OS_LIBS= make[1]: Entering directory `/home/ajindani/xtacacsd-4.0' cc -c -g -DDEBUG -DXTACUTMP -DUSE_NDBM -DLOG_FACILITY="LOG_LOCAL6" -DPIDFILE=\"/etc/xtacacsd.pid\" -DLINUX -DHAVEGIDTYPE -DCHAP_SUPPORT xtacacsd.c In file included from xtacacsd.c:235: common.h:169: conflicting types for `sys_errlist' /usr/include/stdio.h:201: previous declaration of `sys_errlist' xtacacsd.c: In function `main': xtacacsd.c:556: warning: passing arg 6 of `recvfrom' from incompatible pointer type xtacacsd.c:579: warning: cast to pointer from integer of different size xtacacsd.c:579: warning: passing arg 2 of `strncpy' from incompatible pointer type xtacacsd.c:584: warning: cast to pointer from integer of different size xtacacsd.c: In function `old_process': xtacacsd.c:656: warning: cast to pointer from integer of different size xtacacsd.c:658: warning: cast to pointer from integer of different size xtacacsd.c: In function `xauth': xtacacsd.c:865: warning: cast to pointer from integer of different size xtacacsd.c:867: warning: cast to pointer from integer of different size xtacacsd.c: In function `xconnect': xtacacsd.c:1064: warning: cast to pointer from integer of different size xtacacsd.c:1069: warning: cast to pointer from integer of different size xtacacsd.c: In function `xslipon': xtacacsd.c:1244: warning: cast to pointer from integer of different size xtacacsd.c: In function `xslipoff': xtacacsd.c:1304: warning: cast to pointer from integer of different size xtacacsd.c: In function `xdump_pkt': xtacacsd.c:1375: warning: cast to pointer from integer of different size make[1]: *** [xtacacsd.o] Error 1 make[1]: Leaving directory `/home/ajindani/xtacacsd-4.0' make: *** [os-targs] Error 2 [root@afterburn xtacacsd-4.0]# -------- According the the AXP FAQ (http://www.azstarnet.com/~axplinux/FAQ-1.html#ss1.3) the integer size in AXP is defined to be 32 bits long. Here is the quote from the FAQ "...you cannot cast a pointer to an integer without loosing bits. In fact, Alpha binaries by default are purposely arranged in such a way that if you try to do this, they'll dump core---it is much better to learn about such program errors via a core dump than through some subtle errors." Does anyone have any hints on what I can change to get xtacacsd compiled. (For the AXP group: If you are interested in looking at the source please let me know.) I'm not much of a C guy, so thanks for any help! -Rob +--------------------------------------------------------------------+ | _/ _/ _/_/_/_/_/ _/_/_/_/ Rob Allen | | _/_/ _/ _/ _/ Internet Administrator | | _/ _/ _/ _/ _/_/_/ NTS Communications, Inc. | | _/ _/_/ _/ _/ (806) 762-4565 ext. 4110 | | _/ _/ _/ _/_/_/_/ E-Mail: roba@ntscom.com | +--------------------------------------------------------------------+ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com