Darwin stuff is getting deprecated

Started by Tom Laneover 19 years ago3 messages
#1Tom Lane
tgl@sss.pgh.pa.us

With the latest Apple developers' tools, I get some warnings that
weren't there before:

dynloader.c: In function 'pg_dlsym':
dynloader.c:44: warning: 'NSIsSymbolNameDefined' is deprecated (declared at /usr/include/mach-o/dyld.h:150)
dynloader.c:46: warning: 'NSLookupAndBindSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:158)
postmaster.c: In function 'PostmasterMain':
postmaster.c:779: warning: 'DNSServiceRegistrationCreate' is deprecated (declared at /usr/include/DNSServiceDiscovery/DNSServiceDiscovery.h:114)

Anyone want to look into this and see what we're supposed to do instead?

The postmaster.c message is in the USE_BONJOUR code. There was already
some discussion about how we were using an obsolete Bonjour API and we
ought to rewrite to support using Bonjour on non-Darwin platforms.
Perhaps Apple is now using a compatible API?

regards, tom lane

#2AgentM
agentm@themactionfaction.com
In reply to: Tom Lane (#1)
Re: Darwin stuff is getting deprecated

The regular dlfcn family of functions are now properly implemented on
Darwin (10.4+).

Re: Zeroconf- Avahi is API+ABI compatible with the Apple API, so its
use would be preferable on Linux (for cross-platform considerations).
http://avahi.org/browser/trunk/avahi-compat-libdns_sd

[Warning: Avahi->GPL]

-M

On Sep 28, 2006, at 17:02 , Tom Lane wrote:

Show quoted text

With the latest Apple developers' tools, I get some warnings that
weren't there before:

dynloader.c: In function 'pg_dlsym':
dynloader.c:44: warning: 'NSIsSymbolNameDefined' is deprecated
(declared at /usr/include/mach-o/dyld.h:150)
dynloader.c:46: warning: 'NSLookupAndBindSymbol' is deprecated
(declared at /usr/include/mach-o/dyld.h:158)
postmaster.c: In function 'PostmasterMain':
postmaster.c:779: warning: 'DNSServiceRegistrationCreate' is
deprecated (declared at /usr/include/DNSServiceDiscovery/
DNSServiceDiscovery.h:114)

Anyone want to look into this and see what we're supposed to do
instead?

The postmaster.c message is in the USE_BONJOUR code. There was
already
some discussion about how we were using an obsolete Bonjour API and we
ought to rewrite to support using Bonjour on non-Darwin platforms.
Perhaps Apple is now using a compatible API?

#3Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#1)
Re: Darwin stuff is getting deprecated

My guess is that we are going to have to live with the warnings for 8.2
and save this issue for 8.3.

---------------------------------------------------------------------------

Tom Lane wrote:

With the latest Apple developers' tools, I get some warnings that
weren't there before:

dynloader.c: In function 'pg_dlsym':
dynloader.c:44: warning: 'NSIsSymbolNameDefined' is deprecated (declared at /usr/include/mach-o/dyld.h:150)
dynloader.c:46: warning: 'NSLookupAndBindSymbol' is deprecated (declared at /usr/include/mach-o/dyld.h:158)
postmaster.c: In function 'PostmasterMain':
postmaster.c:779: warning: 'DNSServiceRegistrationCreate' is deprecated (declared at /usr/include/DNSServiceDiscovery/DNSServiceDiscovery.h:114)

Anyone want to look into this and see what we're supposed to do instead?

The postmaster.c message is in the USE_BONJOUR code. There was already
some discussion about how we were using an obsolete Bonjour API and we
ought to rewrite to support using Bonjour on non-Darwin platforms.
Perhaps Apple is now using a compatible API?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +