found 342391 0.7-10 retitle 342391 atftp: FTBFS on GNU/kFreeBSD tags 342391 patch thanks
> The 0.6.3 version is not supported anymore. Please try with 0.7.0-7 at least. I tried to recompile 0.7-10, on GNU/kFreeBSD is not defined SOL_IP/IP_PKTINFO. With patch bellow atftp can be build on GNU/kFreeBSD. Please look at diff of tftp_io.c - the "break" is probably misplaced. Thanks Petr diff -u atftp-0.7/tftpd.c atftp-0.7/tftpd.c --- atftp-0.7/tftpd.c +++ atftp-0.7/tftpd.c @@ -301,11 +301,13 @@ open_logger("atftpd", log_file, logging_level); } +#ifdef SOL_IP /* We need to retieve some information from incomming packets */ if (setsockopt(0, SOL_IP, IP_PKTINFO, &one, sizeof(one)) != 0) { logger(LOG_WARNING, "Failed to set socket option: %s", strerror(errno)); } +#endif /* save main thread ID for proper signal handling */ main_thread_id = pthread_self(); unchanged: --- atftp-0.7.orig/tftp_io.c +++ atftp-0.7/tftp_io.c @@ -284,12 +284,14 @@ cmsg != NULL && cmsg->cmsg_len >= sizeof(*cmsg); cmsg = CMSG_NXTHDR(&msg, cmsg)) { +#ifdef SOL_IP if (cmsg->cmsg_level == SOL_IP && cmsg->cmsg_type == IP_PKTINFO) { pktinfo = (struct in_pktinfo *)CMSG_DATA(cmsg); sa_to->sin_addr = pktinfo->ipi_addr; } +#endif break; } } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]