Hi, I am trying to compile rsync 2.5.5 on a Tru64 box. I downloaded configure.in revision 1.148, which I believe is the correct fix for the getaddrinfo problem; however I still have errors compiling rsync. Also I had to change line 22 in options.c from #include "popt.h" to #include "popt/popt.h". Any suggestions or ideas? Tan Dang
On Fri, Jul 12, 2002 at 01:03:33PM -0500, Dang, Tan wrote:> Also I had to change line 22 in options.c from #include "popt.h" to #include > "popt/popt.h". Any suggestions or ideas?Doesn't CFLAGS in the generated Makefile contain ``-I./popt''? -- Jos Backus _/ _/_/_/ Santa Clara, CA _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ jos@catnook.com _/_/ _/_/_/ require 'std/disclaimer'
On Friday 12 Jul 02, Dang, Tan writes:> Hi, > > I am trying to compile rsync 2.5.5 on a Tru64 box. I downloaded > configure.in revision 1.148, which I believe is the correct fix for the > getaddrinfo problem; however I still have errors compiling rsync. Also I > had to change line 22 in options.c from #include "popt.h" to #include > "popt/popt.h". Any suggestions or ideas?I'm tempted not to respond just because you do such a poor job of problem reporting. What version of Tru64? What cc? What, exactly, were the errors? I guess you are using Digital cc, because rsync-2.5.5 builds OOTB for me with gcc on Tru64. I recall there being a number of Digital cc -specific changes posted to this mailing list in the past months, you should check the archives. (I didn't track them because I don't use Digital cc.) Regards, David
Sorry about being so vague. This is the error I get on make cc -I. -I. -g -DHAVE_CONFIG_H -c lib/getaddrinfo.c -o lib/getaddrinfo.o cc: Error: lib/getaddrinfo.c, line 180: In this statement, "EAI_MAX" is not declared. (undeclared) if (ecode < 0 || ecode > EAI_MAX) ---------------------------------^ cc: Error: lib/getaddrinfo.c, line 262: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /* xxx */ ------------------------^ cc: Error: lib/getaddrinfo.c, line 263: In this statement, "AI_MASK" is not declared. (undeclared) if (hints->ai_flags & ~AI_MASK) ---------------------------------------^ cc: Error: lib/getaddrinfo.c, line 297: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /*xxx*/ --------------------------------^ cc: Error: lib/getaddrinfo.c, line 303: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /*xxx*/ --------------------------------^ cc: Error: lib/getaddrinfo.c, line 353: In this statement, "EAI_PROTOCOL" is not declared. (undeclared) ERR(EAI_PROTOCOL); /*xxx*/ ----------------------------------------^ *** Exit 1 Stop. The version of cc is Compaq C V6.4-216 (dtk) on Compaq Tru64 UNIX V5.1 (Rev. 732) Compiler Driver V6.4-013 (dtk) cc Driver Tan -----Original Message----- From: David Starks-Browning To: Dang, Tan; 'rsync@lists.samba.org' Sent: 7/13/02 4:45 AM Subject: rsync 2.5.5 Tru64 5.1 On Saturday 13 Jul 02, David Starks-Browning writes:> I'm tempted not to respond just because you do such a poor job of > problem reporting. What version of Tru64?Oh, I see that's already in the Subject line. Sorry.> What, exactly, were the errors?(Still the most important missing detail.) David
On Sat, Jul 13, 2002 at 04:29:00PM -0500, Dang, Tan wrote:> Sorry about being so vague. This is the error I get on make > > > cc -I. -I. -g -DHAVE_CONFIG_H -c lib/getaddrinfo.c -o lib/getaddrinfo.o > cc: Error: lib/getaddrinfo.c, line 180: In this statement, "EAI_MAX" is not > declared. (undeclared)Check this in your source tree: rsync-2.5.5/patches/rsync_zoong_tru64.diff Hope it helps. -- Zoong Pham UNIX Systems Administrator PGP public key is available on request
>-----Original Message----- >From: Zoong Pham [mailto:zpham@mercy.com.au] >Sent: Sunday, July 14, 2002 8:27 PM >To: Dang, Tan >Cc: 'David Starks-Browning '; 'rsync@lists.samba.org' >Subject: Re: rsync 2.5.5 Tru64 5.1 > > >On Sat, Jul 13, 2002 at 04:29:00PM -0500, Dang, Tan wrote: >> Sorry about being so vague. This is the error I get on make >> >> >> cc -I. -I. -g -DHAVE_CONFIG_H -c lib/getaddrinfo.c -o >lib/getaddrinfo.o >> cc: Error: lib/getaddrinfo.c, line 180: In this statement, >"EAI_MAX" is not >> declared. (undeclared) > >Check this in your source tree: >rsync-2.5.5/patches/rsync_zoong_tru64.diff >Hope it helps.Using the diff works. Thanks for the help. I really appreciate it. Thanks, Tan