Hello. I hope this is the right mailing list for this.
I've tried to compile libpcap (from the stable and unstable trees) on
PowerPC OS X 10.4.11. It fails with a compiler error in the BPF code
about a constant that doesn't exist. When I looked at the code, it
turned to be a hack working around a bug in OS X 10.3. Well, I guess
10.4 fixed it. When I took out the code, the library compiled and has
been working perfectly for several weeks.
I offer a patch to take it out (by changing the #ifdef around it) for
10.4 users if anyone else has been having the problem. I suspect that if
10.3 is still officially supported by Fink, the build script should
still check the OS version.
Hope this helps.
--- pcap-bpf.c.orig 2008-11-21 22:39:34.000000000 -0600
+++ pcap-bpf.c 2008-11-21 22:40:04.000000000 -0600
@@ -323,7 +323,7 @@
int ret;
ret = write(p->fd, buf, size);
-#ifdef __APPLE__
+#ifdef __APPLE__ignored__
if (ret == -1 && errno == EAFNOSUPPORT) {
/*
* In Mac OS X, there's a bug wherein setting the
@@ -357,7 +357,7 @@
*/
ret = write(p->fd, buf, size);
}
-#endif /* __APPLE__ */
+#endif /* __APPLE__ignored__ */
if (ret == -1) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "send: %s",
pcap_strerror(errno));
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel