Hello. I tried to send this a while ago, but the MIME type got messed 
up, and it was scrubbed.

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 
worked perfectly.

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 suggest that if 
10.3 is still officially supported by Fink, the build script should 
check the OS version, and possibly apply it.

Please reply to me directly with any comments, as I am not subscribed to 
the list.

I hope it helps someone.

--
Dan Harrison


--- 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));

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to