Hi all, I'd like to share some experiences that I have with qpopper on tru64 and ask a couple of questions at the same time. qpopper comes bundled with tru64 as the default pop server but even the latest version of tru64 doesn't come with the latest qpopper. So I've been working on compiling the latest qpopper and I have a few details to report that may help others having the same problems and perhaps clear up some questions about the effect of the "fixes". I've tried compiling qpopper 4.0.4 on tru64 v5.1 and then on v5.1b, there is an error that occurs on v5.1 when it needs /usr/include/netdb.h which doesn't occur on v5.1b, so I assume there was some fix done about that, not on qpopper but on tru64. The error is on the definition of n_net which has some conflict on its type when it is attempted at being redefined. that error happens on line 127 of netdb.h on v5.1 from a prior definition a few lines before (line 122) where a type of unsigned long is given to n_net but that type is already defined somewhere else as unsigned int, but this doesn't happen on 5.1b because that line 122 isn't there at all, so there is no conflict there. In this case, my quick "fix" was simply to rem out that line 122 in netdb.h to prevent that error from happening and the compilation goes further then.
Now here's a question, is this ok to rem out that line (or just remove it)? Will it break something else? I made that change in the library and didn't touch the source of qpopper because that library is actually changed that way in the latest version of tru64, so I assumed it would be ok and it would sort of be like an "upgrade". Is that wrong? When that error is removed that way, an other happens in popauth.c with the definition of srandom: popauth.c, line 130: In this declaration, the type of "srandom" is not compatible with the type of a previous declaration of "srandom" at line number 319 in file /usr/include/stdlib.h. (notcompat) extern void srandom(); this happens on both tru64 v5.1 and v5.1b, and I changed the void into an int to make it compatible, but this time I made the change in the qpopper source of popauth.c That's my other big question, is this change from void to int of srandom in popauth.c ok to make? will it break anything? This is what I had to do to make this work on both tru64 v5.1 and v5.1b for qpopper to compile all the way. But I'm wondering if what I did caused a possible bug, fixed it or is something so benign that it won't matter... Now on an other note about that small change on the netdb.h header, this particular error on that n_net variable happens in many packages, including sendmail and since that change I mentioned above was actually made in tru64 v5.1b, I didn't think it would be a big risk and it may actually fix several compilation problems in several packages in the process. -- Didier Godefroy mailto:[EMAIL PROTECTED]
