Your message dated Mon, 26 Mar 2007 06:17:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#414313: fixed in chillispot 1.0-5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: chillispot
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> if i486-kfreebsd-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..    -D_GNU_SOURCE 
> -fno-builtin -ansi -DSBINDIR='"/usr/sbin"'  -g -O2 -MT tun.o -MD -MP -MF 
> ".deps/tun.Tpo" -c -o tun.o tun.c; \
>       then mv -f ".deps/tun.Tpo" ".deps/tun.Po"; else rm -f ".deps/tun.Tpo"; 
> exit 1; fi
> tun.c:64:2: error: #error "Unknown platform!"
> In file included from tun.c:68:
> tun.h:48: error: 'IFNAMSIZ' undeclared here (not in a function)
> tun.c: In function 'tun_sifflags':
> tun.c:115: error: storage size of 'ifr' isn't known
> tun.c:126: error: invalid application of 'sizeof' to incomplete type 'struct 
> ifreq' 
> tun.c:395:2: error: #error "Unknown platform!"
> tun.c: In function 'tun_setaddr':
> tun.c:406: error: storage size of 'ifr' isn't known
> tun.c:436: error: invalid application of 'sizeof' to incomplete type 'struct 
> ifreq' 
> tun.c:454: error: invalid application of 'sizeof' to incomplete type 'struct 
> ifreq' 
> tun.c:476:2: error: #error "Unknown platform!"
> tun.c:479: error: invalid application of 'sizeof' to incomplete type 'struct 
> ifreq' 
> tun.c:495: error: 'IFF_UP' undeclared (first use in this function)
> tun.c:495: error: (Each undeclared identifier is reported only once
> tun.c:495: error: for each function it appears in.)
> tun.c:495: error: 'IFF_RUNNING' undeclared (first use in this function)
> tun.c:617:2: error: #error "Unknown platform!"
> tun.c:658:2: error: #error "Unknown platform!"
> tun.c:792:2: error: #error "Unknown platform!"
> make[3]: *** [tun.o] Error 1

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=chillispot>.

Please find attached a patch which allows your package to build OK on
GNU/kFreeBSD.

Cheers,

-- 
Cyril Brulebois
--- chillispot-1.0/src/dhcp.c	2007-03-10 22:24:20.817881000 +0100
+++ chillispot-1.0/src/dhcp.c	2007-03-10 22:25:16.000000000 +0100
@@ -46,7 +46,7 @@
 #include <linux/if_packet.h>
 #include <linux/if_ether.h>
 
-#elif defined (__FreeBSD__)  || defined (__APPLE__)
+#elif defined (__FreeBSD__)  || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 #include <net/if.h>
 #include <net/bpf.h>
 #include <net/if_dl.h>
@@ -254,7 +254,7 @@
 #if defined(__linux__)
   ifr.ifr_netmask.sa_family = AF_INET;
 
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   ((struct sockaddr_in *) &ifr.ifr_addr)->sin_len = 
     sizeof (struct sockaddr_in);
   ((struct sockaddr_in *) &ifr.ifr_dstaddr)->sin_len = 
@@ -303,7 +303,7 @@
     ((struct sockaddr_in *) &ifr.ifr_netmask)->sin_addr.s_addr = 
       netmask->s_addr;
 
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
     ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr.s_addr = 
       netmask->s_addr;
 
@@ -329,7 +329,7 @@
 
   /* TODO: How does it work on Solaris? */
 
-#if defined(__FreeBSD__) || defined (__APPLE__)
+#if defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   (void)dhcp_sifflags(devname, IFF_UP | IFF_RUNNING);  /* TODO */
   /*return tun_addroute(this, addr, addr, netmask);*/
 #else
@@ -447,7 +447,7 @@
   return fd;
 }
 
-#elif defined (__FreeBSD__) || defined (__APPLE__)
+#elif defined (__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 
 
 int dhcp_getmac(const char *ifname, char *macaddr) {
@@ -630,7 +630,7 @@
 	    fd, length);
     return -1;
   }
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   if (write(fd, packet, length) < 0) {
     sys_err(LOG_ERR, __FILE__, __LINE__, errno, "write() failed");
     return -1;
@@ -1061,7 +1061,7 @@
       return -1; /* Error reporting done in dhcp_open_eth */
     }
 
-#if defined(__FreeBSD__) || defined (__APPLE__)
+#if defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   if (ioctl((*dhcp)->fd, BIOCGBLEN, &blen) < 0) {
     sys_err(LOG_ERR, __FILE__, __LINE__, errno,"ioctl() failed!");
   }
@@ -2541,7 +2541,7 @@
 
 
 
-#if defined(__FreeBSD__) || defined (__APPLE__)
+#if defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 
 int dhcp_receive(struct dhcp_t *this) {
   /*
--- chillispot-1.0/src/tun.c	2007-03-10 22:22:20.646192000 +0100
+++ chillispot-1.0/src/tun.c	2007-03-10 22:23:58.000000000 +0100
@@ -46,7 +46,7 @@
 #include <linux/netlink.h>
 #include <linux/rtnetlink.h>
 
-#elif defined (__FreeBSD__)
+#elif defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <net/if.h>
 #include <net/if_tun.h>
 
@@ -334,7 +334,7 @@
   this->addrs++;
   return 0;
 
-#elif defined (__FreeBSD__) || defined (__APPLE__)
+#elif defined (__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 
   int fd;
   struct ifaliasreq      areq;
@@ -413,7 +413,7 @@
 #if defined(__linux__)
   ifr.ifr_netmask.sa_family = AF_INET;
 
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   ((struct sockaddr_in *) &ifr.ifr_addr)->sin_len = 
     sizeof (struct sockaddr_in);
   ((struct sockaddr_in *) &ifr.ifr_dstaddr)->sin_len = 
@@ -465,7 +465,7 @@
     ((struct sockaddr_in *) &ifr.ifr_netmask)->sin_addr.s_addr = 
       netmask->s_addr;
 
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
     ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr.s_addr = 
       netmask->s_addr;
 
@@ -494,7 +494,7 @@
 
   tun_sifflags(this, IFF_UP | IFF_RUNNING);
 
-#if defined(__FreeBSD__) || defined (__APPLE__)
+#if defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   tun_addroute(this, dstaddr, addr, netmask);
   this->routes = 1;
 #endif
@@ -553,7 +553,7 @@
   close(fd);
   return 0;
   
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 
 struct {
   struct rt_msghdr rt;
@@ -642,7 +642,7 @@
 #if defined(__linux__)
   struct ifreq ifr;
 
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   char devname[IFNAMSIZ+5]; /* "/dev/" + ifname */
   int devnum;
   struct ifaliasreq areq;
@@ -690,7 +690,7 @@
   ioctl((*tun)->fd, TUNSETNOCSUM, 1); /* Disable checksums */
   return 0;
   
-#elif defined(__FreeBSD__) || defined (__APPLE__)
+#elif defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 
   /* Find suitable device */
   for (devnum = 0; devnum < 255; devnum++) { /* TODO 255 */ 
@@ -822,7 +822,7 @@
 int tun_decaps(struct tun_t *this)
 {
 
-#if defined(__linux__) || defined (__FreeBSD__) || defined (__APPLE__)
+#if defined(__linux__) || defined (__FreeBSD__) || defined (__APPLE__) || defined (__FreeBSD_kernel__)
 
   unsigned char buffer[PACKET_MAX];
   int status;
@@ -863,7 +863,7 @@
 int tun_encaps(struct tun_t *tun, void *pack, unsigned len)
 {
 
-#if defined(__linux__) || defined (__FreeBSD__) || defined (__APPLE__)
+#if defined(__linux__) || defined (__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 
   return write(tun->fd, pack, len);
 
--- chillispot-1.0/src/chilli.c	2007-03-10 22:26:59.387319000 +0100
+++ chillispot-1.0/src/chilli.c	2007-03-10 22:27:27.000000000 +0100
@@ -27,7 +27,7 @@
 #include <linux/netlink.h> 
 #include <linux/if_ether.h>
 
-#elif defined (__FreeBSD__)  || defined (__APPLE__)
+#elif defined (__FreeBSD__)  || defined (__APPLE__) || defined(__FreeBSD_kernel__)
 #include <netinet/in.h>
 #endif
 
@@ -3625,7 +3625,7 @@
     if (dhcp) FD_SET(dhcp->fd, &fds);
     if ((dhcp) && (dhcp->arp_fd)) FD_SET(dhcp->arp_fd, &fds);
     if ((dhcp) && (dhcp->eapol_fd)) FD_SET(dhcp->eapol_fd, &fds);
-#elif defined (__FreeBSD__)  || defined (__APPLE__)
+#elif defined (__FreeBSD__)  || defined (__APPLE__) || defined(__FreeBSD_kernel__)
     if (dhcp) FD_SET(dhcp->fd, &fds);
 #endif
     if (radius->fd != -1) FD_SET(radius->fd, &fds);
@@ -3683,7 +3683,7 @@
 	sys_err(LOG_ERR, __FILE__, __LINE__, 0,
 		"dhcp_eapol_ind() failed!");
       }
-#elif defined (__FreeBSD__)  || defined (__APPLE__)
+#elif defined (__FreeBSD__)  || defined (__APPLE__) || defined(__FreeBSD_kernel__)
       if ((dhcp) && FD_ISSET(dhcp->fd, &fds) && 
 	  dhcp_receive(dhcp) < 0) {
 	sys_err(LOG_ERR, __FILE__, __LINE__, 0,
--- chillispot-1.0/src/dhcp.h	2007-03-10 22:26:02.960305000 +0100
+++ chillispot-1.0/src/dhcp.h	2007-03-10 22:26:09.000000000 +0100
@@ -342,7 +342,7 @@
   int devflags;         /* Original flags of network interface */
   unsigned char hwaddr[DHCP_ETH_ALEN]; /* Hardware address of interface */
   int ifindex;  /* Hardware address of interface */
-#if defined(__FreeBSD__) || defined (__APPLE__)
+#if defined(__FreeBSD__) || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   char *rbuf;
   int rbuf_max;
   int rbuf_offset;
--- chillispot-1.0/src/redir.c	2007-03-10 22:26:59.917808000 +0100
+++ chillispot-1.0/src/redir.c	2007-03-10 22:27:51.000000000 +0100
@@ -485,7 +485,7 @@
   address.sin_family = AF_INET;
   address.sin_addr.s_addr = addr->s_addr;
   address.sin_port = htons(port);
-#if defined(__FreeBSD__)  || defined (__APPLE__)
+#if defined(__FreeBSD__)  || defined (__APPLE__) || defined(__FreeBSD_kernel__)
   address.sin_len = sizeof (struct sockaddr_in);
 #endif
 

--- End Message ---
--- Begin Message ---
Source: chillispot
Source-Version: 1.0-5

We believe that the bug you reported is fixed in the latest version of
chillispot, which is due to be installed in the Debian FTP archive:

chillispot_1.0-5.diff.gz
  to pool/main/c/chillispot/chillispot_1.0-5.diff.gz
chillispot_1.0-5.dsc
  to pool/main/c/chillispot/chillispot_1.0-5.dsc
chillispot_1.0-5_i386.deb
  to pool/main/c/chillispot/chillispot_1.0-5_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Rudy Godoy <[EMAIL PROTECTED]> (supplier of updated chillispot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 26 Mar 2007 00:36:42 -0500
Source: chillispot
Binary: chillispot
Architecture: source i386
Version: 1.0-5
Distribution: unstable
Urgency: low
Maintainer: Rudy Godoy <[EMAIL PROTECTED]>
Changed-By: Rudy Godoy <[EMAIL PROTECTED]>
Description: 
 chillispot - Wireless LAN Access Point Controller
Closes: 414313
Changes: 
 chillispot (1.0-5) unstable; urgency=low
 .
   * Applied patch to fix FTBS on GNU/kFreeBSD, thanks Cyril Brulebois (Closes: 
#414313)
Files: 
 3d38bd606144f6b3e271d2060975e67a 573 net optional chillispot_1.0-5.dsc
 be09f8317f6920f2faa15fb99fcd4964 26831 net optional chillispot_1.0-5.diff.gz
 5f9b7f43d69d0a77bcca3f6c335d7cf7 91162 net optional chillispot_1.0-5_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGB1yDVQ8aADQzvSERAhueAJsEuCOGpVMJJgB9JFniKfkTvfi1GQCgo8w1
uf14YlV6cTuAo1CpLlXm7Qw=
=eOOE
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to