Re: [Fink-devel] net-snmp on Tiger

2005-06-23 Thread Jeremy Higgs

Thanks, Cian!

I was looking around the other day, and I got the impression that the  
patches for 5.2 were available with the Darwin source. Assuming not  
much has changed between 5.2 and 5.2.1, they'll probably be quite  
useful.


I guess it also depends on when 10.4.2 is out!

Jeremy.

On 23/06/2005, at 18:00, Cian Hughes wrote:

Yes, I'll take care of maintaining net-snmp, as soon as apple  
release their patches for 5.2.1 (which they should do at the same  
time as 10.4.2) I'll work on adapting it to compile without the  
private headers.

Regards,
Cian Hughes
[EMAIL PROTECTED]


On 23 Meith 2005, at 01:03, Jeremy Higgs wrote:



OK, I guess we keep the package, then!

Would anyone be prepared to take over the maintainership (?) for  
net-snmp, in that case? As evidenced by my lack of activity in  
Fink, I haven't (and still don't have) a great deal of spare time.  
If there's someone who could maintain net-snmp a better better  
than I have, then I'm sure Fink and the users of the package will  
benefit.


Otherwise, I'll have a go at getting 5.2.1 to work in the near  
future.


Thanks,

Jeremy.

On 22/06/2005, at 22:46, TheSin wrote:




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I gotta be honest I don't like the idea of depending on apple for  
this either.

- ---
TS
http://southofheaven.org/
Chaos is the beginning and end, try dealing with the rest.

On 22-Jun-05, at 4:21 AM, Cian Hughes wrote:




Just thought I'd point out that the system version is broken, it  
crashes on some queries, apple have acknowledged this and it  
will apparently be fixed with 10.4.2, there is potential here  
that we may end up moving people from a working net-snmp (but  
old) to a half broken new version.

Regards,
   Cian Hughes


On 21 Jun 2005, at 16:20, TheSin wrote:





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

php4 and php5 both depend on it, let me rework to link against  
the system version and provide a good upgrade path.

- ---
TS
http://southofheaven.org/
Chaos is the beginning and end, try dealing with the rest.

On 21-Jun-05, at 1:07 AM, Jeremy Higgs wrote:







On 20/06/2005, at 3:04, Martin Costabel wrote:






Jeremy Higgs wrote:






Hi everyone,
I've been trying to get a lot of my packages working on  
Tiger, and  have finally gotten around to net-snmp. I  
noticed (from discussions  on the list, and a bit of playing  
around) that net-snmp 5.2 is  actually included in the base  
system. Given this, is there really a  need for a net-snmp  
package? Perhaps if someone wants an OpenSSL- enabled  
version...
On that note, there are some patches in the Darwin source.  
(http:// darwinsource.opendarwin.org/10.4.1/net_snmp-16/ 
patches/) Does anyone  know what the license is for these? I  
was hoping to use these for the  Fink package...








According to the license file on the server http:// 
www.opensource.apple.com/darwinsource/10.4.1/net_snmp-16/ 
net_snmp.txt, the package has a BSD license. I would assume  
that this covers the patches, too.


OTOH, it is perhaps a good idea to get rid of the package  
altogether. On Panther already fink's version was older than  
the system one.







Would anyone have any objections to this? I would tend to  
agree with Martin, since it's included with the system now,  
and isn't a terribly important package.


If there are no dependencies and no objections, I'll remove it  
from the 10.4-transitional and 10.3 trees in the near future...


Thanks,

Jeremy.






-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCuDBI6wPs8J05MxMRApENAJ4g4dxjFJoo6GArVafbE/lJLJu8PgCdH+3o
icA1ERYOre7SiUY/ZXwyQuc=
=lCHz
-END PGP SIGNATURE-


---
SF.Net email is sponsored by: Discover Easy Linux Migration  
Strategies
from IBM. Find simple to follow Roadmaps, straightforward  
articles,
informative Webcasts and more! Get everything you need to get  
up to
speed, fast. http://ads.osdn.com/? 
ad_id=7477alloc_id=16492op=click

___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel











-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCuV2a6wPs8J05MxMRAqpVAJ9064NEmeSAJn8ev47BuNGUAFnpLgCdFw7P
7rco/kFCd5N7iGvb4KDHJVg=
=4RJz
-END PGP SIGNATURE-


---
SF.Net email is sponsored by: Discover Easy Linux Migration  
Strategies

from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel












---
SF.Net email is sponsored by: Discover 

Re: [Fink-devel] net-snmp on Tiger

2005-06-23 Thread Cian Hughes
I tried pretty hard with 5.2 patches, but ultimately I got the same  
broken net-snmp that shiped with tiger, since 10.4.2 has been seeded  
to developers they are actually obliged to release the patches, I've  
emailed [EMAIL PROTECTED] so hopefully they will reply shortly.

Regards,
Cian Hughes
[EMAIL PROTECTED]


On 23 Meith 2005, at 09:12, Jeremy Higgs wrote:


Thanks, Cian!

I was looking around the other day, and I got the impression that  
the patches for 5.2 were available with the Darwin source. Assuming  
not much has changed between 5.2 and 5.2.1, they'll probably be  
quite useful.


I guess it also depends on when 10.4.2 is out!

Jeremy.

On 23/06/2005, at 18:00, Cian Hughes wrote:


Yes, I'll take care of maintaining net-snmp, as soon as apple  
release their patches for 5.2.1 (which they should do at the same  
time as 10.4.2) I'll work on adapting it to compile without the  
private headers.

Regards,
Cian Hughes
[EMAIL PROTECTED]


On 23 Meith 2005, at 01:03, Jeremy Higgs wrote:




OK, I guess we keep the package, then!

Would anyone be prepared to take over the maintainership (?) for  
net-snmp, in that case? As evidenced by my lack of activity in  
Fink, I haven't (and still don't have) a great deal of spare  
time. If there's someone who could maintain net-snmp a better  
better than I have, then I'm sure Fink and the users of the  
package will benefit.


Otherwise, I'll have a go at getting 5.2.1 to work in the near  
future.


Thanks,

Jeremy.

On 22/06/2005, at 22:46, TheSin wrote:





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I gotta be honest I don't like the idea of depending on apple  
for this either.

- ---
TS
http://southofheaven.org/
Chaos is the beginning and end, try dealing with the rest.

On 22-Jun-05, at 4:21 AM, Cian Hughes wrote:





Just thought I'd point out that the system version is broken,  
it crashes on some queries, apple have acknowledged this and it  
will apparently be fixed with 10.4.2, there is potential here  
that we may end up moving people from a working net-snmp (but  
old) to a half broken new version.

Regards,
   Cian Hughes


On 21 Jun 2005, at 16:20, TheSin wrote:






-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

php4 and php5 both depend on it, let me rework to link against  
the system version and provide a good upgrade path.

- ---
TS
http://southofheaven.org/
Chaos is the beginning and end, try dealing with the rest.

On 21-Jun-05, at 1:07 AM, Jeremy Higgs wrote:








On 20/06/2005, at 3:04, Martin Costabel wrote:







Jeremy Higgs wrote:







Hi everyone,
I've been trying to get a lot of my packages working on  
Tiger, and  have finally gotten around to net-snmp. I  
noticed (from discussions  on the list, and a bit of  
playing around) that net-snmp 5.2 is  actually included in  
the base system. Given this, is there really a  need for a  
net-snmp package? Perhaps if someone wants an OpenSSL-  
enabled version...
On that note, there are some patches in the Darwin source.  
(http:// darwinsource.opendarwin.org/10.4.1/net_snmp-16/ 
patches/) Does anyone  know what the license is for these?  
I was hoping to use these for the  Fink package...









According to the license file on the server http:// 
www.opensource.apple.com/darwinsource/10.4.1/net_snmp-16/ 
net_snmp.txt, the package has a BSD license. I would assume  
that this covers the patches, too.


OTOH, it is perhaps a good idea to get rid of the package  
altogether. On Panther already fink's version was older than  
the system one.








Would anyone have any objections to this? I would tend to  
agree with Martin, since it's included with the system now,  
and isn't a terribly important package.


If there are no dependencies and no objections, I'll remove  
it from the 10.4-transitional and 10.3 trees in the near  
future...


Thanks,

Jeremy.







-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCuDBI6wPs8J05MxMRApENAJ4g4dxjFJoo6GArVafbE/lJLJu8PgCdH+3o
icA1ERYOre7SiUY/ZXwyQuc=
=lCHz
-END PGP SIGNATURE-


---
SF.Net email is sponsored by: Discover Easy Linux Migration  
Strategies
from IBM. Find simple to follow Roadmaps, straightforward  
articles,
informative Webcasts and more! Get everything you need to get  
up to
speed, fast. http://ads.osdn.com/? 
ad_id=7477alloc_id=16492op=click

___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel













-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iD8DBQFCuV2a6wPs8J05MxMRAqpVAJ9064NEmeSAJn8ev47BuNGUAFnpLgCdFw7P
7rco/kFCd5N7iGvb4KDHJVg=
=4RJz
-END PGP SIGNATURE-


---
SF.Net email is sponsored by: Discover Easy Linux Migration  
Strategies

from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts 

[Fink-devel] Re: socklen_t (was: pwlib-1.5.2-12 conflicting Types)

2005-06-23 Thread Andreas Dittrich

Am 22.06.2005 um 19:08 schrieb Matthew Sachs:


On Jun 22, 2005, at 05:05, Andreas Dittrich wrote:


I have a problem compiling pwlib. There is a duplicate typedef  
which is different in

/usr/include/sys/socket.h
than in
./pwlib/include/ptlib/unix/ptlib/pmachdep.h
of the package. The one in the package defines int as the type of  
the socketlen




Prior to Tiger, our system headers did not define socklen_t.   
Packages that needed socklen_t defined it themselves as int.  Now  
on Tiger, we have socklen_t.  However, some packages which had  
socklen_t definitions inserted are still using those definitions on  
Tiger, either because they're coming in from a patchscript/ 
SetCFLAGS or because the upstream developers assumed if it's  
Darwin, we need to define socklen_t.


The solution is to remove the socklen_t definitions from the  
package or conditionalize them on the MacOS version.  In the case  
of pwlib, there's no mention of socklen_t in the info or patch  
file.  Grepping the source for socklen_t, the most likely candidate  
for where the define is coming from is include/ptlib/unix/ptlib/ 
pmachdep.h.  There are several defines of socklen_t in that file,  
conditionalized on various macros.  To fix the package, figure out  
which one is applying on Darwin, and wrap it with the following:


#ifdef __APPLE__
#include AvailabilityMacros.h
#if MAC_OS_X_VERSION_MAX_ALLOWED = MAC_OS_X_VERSION_10_3
typedef int socklen_t;
#endif
#endif


I guess its the one in Line 448. Changed and adjusted the .info - it  
begins to compile now but stops like this:


g++3 -DP_MACOSX=810 -DNO_LONG_DOUBLE -D_REENTRANT -Wall  - 
DPHAS_TEMPLATES -I/sw/src/fink.build/pwlib-1.5.2-12/pwlib/include/ 
ptlib/unix -I/usr/include/pwlib -I/sw/src/fink.build/pwlib-1.5.2-12/ 
pwlib/include -O2 -DNDEBUG -I/sw/include -fno-common -dynamic -fno- 
common -dynamic -DPTRACING=1 -x c++ -c udll.cxx -o /sw/src/fink.build/ 
pwlib-1.5.2-12/pwlib/lib/obj_Darwin_ppc_r/udll.o

udll.cxx: In function `void* dlopen(const char*, int)':
udll.cxx:199: cannot convert `long unsigned int*' to `void**' for  
argument `2'

   to `int _dyld_func_lookup(const char*, void**)'
udll.cxx:201: warning: invalid conversion from `void*' to `__NSModule*'
udll.cxx: In function `void* dlsymIntern(void*, const char*)':
udll.cxx:236: cannot convert `__NSSymbol*' to `__NSSymbol**' in  
assignment
udll.cxx:253: cannot convert `__NSSymbol*' to `__NSSymbol**' in  
assignment

udll.cxx:259: warning: invalid conversion from `void*' to `__NSModule*'
udll.cxx:259: cannot convert `__NSSymbol*' to `__NSSymbol**' in  
assignment
udll.cxx:267: cannot convert `__NSSymbol**' to `__NSSymbol*' for  
argument `1'

   to `void* NSAddressOfSymbol(__NSSymbol*)'
udll.cxx: In function `int dlclose(void*)':
udll.cxx:283: warning: invalid conversion from `void*' to `__NSModule*'
udll.cxx:285: warning: invalid conversion from `void*' to `__NSModule*'
udll.cxx: In function `void* dlsym(void*, const char*)':
udll.cxx:307: warning: invalid conversion from `void*' to `char*'
/sw/lib/gcc3.1/include/g++-v3/streambuf: At top level:
udll.cxx:271: warning: `const char* dlerror()' defined but not used
make[1]: *** [/sw/src/fink.build/pwlib-1.5.2-12/pwlib/lib/ 
obj_Darwin_ppc_r/udll.o] Error 1

make: *** [opt] Error 2
### execution of make failed, exit code 2

Sounds like some more Tiger-worries?

Andreas



PGP.sig
Description: Signierter Teil der Nachricht


[Fink-devel] Re: socklen_t (was: pwlib-1.5.2-12 conflicting Types)

2005-06-23 Thread Daniel E. Macks
Matthew Sachs [EMAIL PROTECTED] said:
 On Jun 22, 2005, at 05:05, Andreas Dittrich wrote:

 I have a problem compiling pwlib. There is a duplicate typedef  
 which is different in
 /usr/include/sys/socket.h
 than in
 ./pwlib/include/ptlib/unix/ptlib/pmachdep.h
 of the package. The one in the package defines int as the type of  
 the socketlen

 Prior to Tiger, our system headers did not define socklen_t.   

socklen_t does exist (it's type int) in 10.3. So technically...

 define is coming from is include/ptlib/unix/ptlib/pmachdep.h.  There  
 are several defines of socklen_t in that file, conditionalized on  
 various macros.  To fix the package, figure out which one is applying  
 on Darwin, and wrap it with the following:

  #ifdef __APPLE__
  #include AvailabilityMacros.h
  #if MAC_OS_X_VERSION_MAX_ALLOWED = MAC_OS_X_VERSION_10_3
  typedef int socklen_t;
  #endif
  #endif

That should be MAC_OS_X_VERSION_10_ probably.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel