[Port-solaris] AFS on Solaris: '_depends_on[]' is deprecated

Frank Batschulat frank.batschulat@oracle.com
Thu, 14 Mar 2019 18:12:34 +0100


Hello AFS World, long time, no see, still let's give these emails  
addresses a try.
I just saw this in a customer case today running Solaris 11.4:

/kernel/drv/amd64/afs: use of symbol '_depends_on[]' is deprecated:  
"drv/ip drv/udp strmod/rpcmod fs/ufs"

and wanted to check whether or not you have removed that already
 from the source base or are planning to do so.

_depends_on[] was deprecated in the 90's / Solaris 2.6 in favor of actual  
ELF dependencies.
In Solaris 11, IPS can detect ELF dependencies, but not _depends_on[].

Anyone still using _depends_on[] should replace it with -N flags to ld  
instead.
To mark those modules as needed use: '-N drv/ip -N drv/udp' ... etc,
ie. drivers should be built with 'LDFLAGS -dy -N[module]'.

The reason why you see this warning now in 11.4 is:

17248098 krtld should issue warning when processing deprecated _depends_on  
directives.

just a headsup,

cheers
-- 
frankB

Solaris Core OS Development, Zones Team