On Fri, Dec 12, 2008 at 9:12 PM, Anil Gulecha <anil.ve...@gmail.com> wrote: > Hi, > > I was running into a wierd issue with the bind9 package.. which > previously built without issues. > > /usr/bin/cc -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1 > -I./unix/include -I. -I./include -I./include > -I/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/isc/include > -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include > -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include > -D_REENTRANT -D_XPG4_2 -D__EXTENSIONS__ -fno-strict-aliasing -O2 > -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual > -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c > getaddrinfo.c -fPIC -DPIC -o .libs/getaddrinfo.o > getaddrinfo.c: In function 'get_local': > getaddrinfo.c:712: error: expected identifier or '(' before numeric constant > getaddrinfo.c:717: error: invalid type argument of 'unary *' > getaddrinfo.c:721: error: lvalue required as left operand of assignment > getaddrinfo.c:722: error: invalid type argument of '->' > getaddrinfo.c:722: error: invalid type argument of '->' > make[3]: *** [getaddrinfo.lo] Error 1 > make[3]: Leaving directory > `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib/lwres' > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1/lib' > make[1]: *** [subdirs] Error 1 > make[1]: Leaving directory `/root/src/openssl/bind9/bind9-9.5.0.dfsg.P1' > make: *** [build-stamp] Error 2 > dpkg-buildpackage: failure: debian/rules build gave error exit status 2 > > Looking at the funciton.. it defined a variable as sun. > > #ifdef AF_LOCAL > static int > get_local(const char *name, int socktype, struct addrinfo **res) { > struct addrinfo *ai; > struct sockaddr_un *sunn; > > if (socktype == 0) > return (EAI_SOCKTYPE); > > ai = ai_alloc(AF_LOCAL, sizeof(*sunn)); > if (ai == NULL) > return (EAI_MEMORY); > > sunn = SUN(ai->ai_addr); > strncpy(sunn->sun_path, name, sizeof(sunn->sun_path)); > > ai->ai_socktype = socktype; > /* > * ai->ai_flags, ai->ai_protocol, ai->ai_canonname, > * and ai->ai_next were initialized to zero. > */ > > *res = ai; > return (0); > } > #endif >
A note that the above function is with sun changed to sunn. Anil _______________________________________________ gnusol-devel mailing list gnusol-devel@lists.sonic.net http://lists.sonic.net/mailman/listinfo/gnusol-devel