[haiku-development] only weak aliases are supported in this configuration error in src/system/libroot/os/driver_settings.cpp

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 29 Feb 2012 19:23:40 -0500

Hello,

I am getting an error on Mac OS X building Haiku. The error I am getting is

src/system/libroot/os/driver_settings.cpp L980 error: only weak aliases are
supported in this configuration

I changed Line 980 from

extern "C" __typeof(unload_driver_settings) delete_driver_settings
__attribute__((alias ("unload_driver_settings")));

to

extern "C" __typeof(unload_driver_settings) delete_driver_settings
__attribute__((*weak, *alias ("unload_driver_settings")));

and this fixes the build. But I have no idea what adding weak as a
parameter does here.

Does anybody (Ingo?) know what the consequences of this change are?

Thanks,
John Scipione

Other related posts: