Hi, Folks
Probably some of you have noticed these errors during Parrot compilation:
config/gen/platform/darwin/dl.c: In function ‘Parrot_dlopen’:
config/gen/platform/darwin/dl.c:129: warning:
‘NSCreateObjectFileImageFromFile’ is deprecated (declared at
/usr/include/mach-o/dyld.h:145)
config/gen/platform/darwin/dl.c:133: warning: ‘NSLinkModule’ is
deprecated (declared at /usr/include/mach-o/dyld.h:161)
[...]
Although I am not sure, I think we used these functions becaude dlopen
and such didn't work pretty as expected on older Mac OS X versions.
Accordingly with some web pages, now the correct way to do this is using
dlopen, as in a normal Unix system.
Given that we want parrot to work both on recent and older Mac OS X
versions, I think we should not simply get rid of this code, but
instead, add a configure step to detect the operating system and its
version.
Although at the moment this is just important for Mac OS X it might be
useful to detect later kernel versions on Linux, and Windows versions
and SPs.
So, the question is: I am thinking correctly on this? Is this the way to
go? If so, I can try to prepare some patches during the week.
Cheers
ambs
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal