Make failed with message:
<quote>
sonar-icmp.c: In function ‘subnet_hosts’:
sonar-icmp.c:594:55: error: ‘AF_LINK’ undeclared (first use in this function)
sonar-icmp.c:594:55: note: each undeclared identifier is reported only once for
each function it appears in
make[1]: ** [sonar-icmp.o] Erro 1
make[1]: Saindo do diretório
`/media/dados/home/fernando/tmp/paco-build-2012.07.08/xscreensaver-5.18/hacks/glx'
make: ** [default] Erro 5
</quote>
Using a very simple patch from Fedora (attached), build succeeds.
[]s,
Fernando
--- xscreensaver-5.18/hacks/glx/sonar-icmp.c.compile 2012-07-03 04:18:53.000000000 +0900
+++ xscreensaver-5.18/hacks/glx/sonar-icmp.c 2012-07-04 09:17:12.580996448 +0900
@@ -591,7 +591,9 @@
fprintf (stderr, "%s: if: %4s: %s\n", progname,
ifa->ifa_name,
(ifa->ifa_addr->sa_family == AF_UNIX ? "local" :
+#ifdef AF_LINK
ifa->ifa_addr->sa_family == AF_LINK ? "link" :
+#endif
ifa->ifa_addr->sa_family == AF_INET6 ? "ipv6" :
"other"));
continue;
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page