-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arngrimur Bjarnason wrote:
| I'm at the moment looking for a videoconference program that is
| compatible with both mac and windows and wanted to have a look at
| gnomemeeting. To my suprise I couldn't install gnomemeeting with FInk
| (which in normal cases are excellent ) . I got errors in pwlib. After
| searching a while I found that this has been a problem for a while and
| the maintainer apparently is doing something else I decided to fix the
| code. Since I'm new to writing code for Open-Source project I'm
| wondering a few things.
|
|
| Is there any kind of documenttation?
| For example: I have an error in udll.cxx in the function d.open ().
| Why is the method provided by mach-o/dyld.h overridden by a local method.
|
| If I manange to get it working. To whom can I post the code for testing
| and so that the package could be upgraded?
This is because Apple changed the dyld.h header rather drastically for 10.4.
Functions that used to return usigned long now return void* and so on. Also
gcc4 is better at catching silly code :)
Since Mac OS X 10.3 and later have dlopen() and some functions in dyld.h are
deprecated in 10.4 (with more to follow later), I'd suggest changing to use
dlopen.
Fink's version of pwlib builds for me on 10.4.2 with gcc4 and the attached
patch.
Hope this helps,
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBQ0pqsLiDAg3OZTLPAQIKmgP+Ke6ZU7nD+Mw6GyxRkNzX4Lu0kSpXBcdF
yzP2kudX4FurUYuQ8Kx7tZPwMCTBHQLc/ePq2dDMp8osfvMx9P72bAxny6Cl9Y5A
KHJ0Tt8jC87duJAIvu5TsvVKl3S3VMT9Zx1xjrv23v4ExGEAxNPRYoyDPfWb/h9v
76+ddJBW25Q=
=7AW6
-----END PGP SIGNATURE-----
diff -ur pwlib.orig/include/ptlib/unix/ptlib/pmachdep.h
pwlib/include/ptlib/unix/ptlib/pmachdep.h
--- pwlib.orig/include/ptlib/unix/ptlib/pmachdep.h 2003-05-06
15:59:12.000000000 +0900
+++ pwlib/include/ptlib/unix/ptlib/pmachdep.h 2005-10-10 22:16:32.000000000
+0900
@@ -179,7 +179,7 @@
typedef int socklen_t;
#endif
-#ifdef PPC
+#if 0
typedef size_t socklen_t;
#endif
@@ -444,8 +444,9 @@
#include <net/if.h>
#include <netinet/tcp.h>
#include <sys/ioctl.h>
-
-typedef int socklen_t;
+#include <dlfcn.h>
+
+/* typedef int socklen_t; */
#define HAS_IFREQ
diff -ur pwlib.orig/src/ptclib/pdns.cxx pwlib/src/ptclib/pdns.cxx
--- pwlib.orig/src/ptclib/pdns.cxx 2003-04-29 08:57:40.000000000 +0900
+++ pwlib/src/ptclib/pdns.cxx 2005-10-10 22:16:32.000000000 +0900
@@ -72,6 +72,7 @@
#if P_HAS_RESOLVER
#include <arpa/nameser.h>
#include <resolv.h>
+#include <arpa/nameser_compat.h>
#endif
#endif
diff -ur pwlib.orig/src/ptlib/unix/maccoreaudio.cxx
pwlib/src/ptlib/unix/maccoreaudio.cxx
--- pwlib.orig/src/ptlib/unix/maccoreaudio.cxx 2003-05-17 02:49:19.000000000
+0900
+++ pwlib/src/ptlib/unix/maccoreaudio.cxx 2005-10-10 22:16:32.000000000
+0900
@@ -730,12 +730,12 @@
if (direction == Player) {
theStatus = AudioConverterNew(&pwlibDescription,
&theDescription,
- &(AudioConverterRef)caConverterRef);
+ &caConverterRef);
}
else {
theStatus = AudioConverterNew(&theDescription,
&pwlibDescription,
- &(AudioConverterRef)caConverterRef);
+ &caConverterRef);
}
if (theStatus != 0) {
PTRACE(1, "can not create audio converter for streams " << theStatus);
diff -ur pwlib.orig/src/ptlib/unix/udll.cxx pwlib/src/ptlib/unix/udll.cxx
--- pwlib.orig/src/ptlib/unix/udll.cxx 2003-07-09 20:37:13.000000000 +0900
+++ pwlib/src/ptlib/unix/udll.cxx 2005-10-10 22:16:32.000000000 +0900
@@ -80,7 +80,7 @@
#include <ptlib.h>
-#ifdef P_MACOSX
+#if 0
/*
Copyright (c) 2002 Peter O'Gorman <[EMAIL PROTECTED]>