It started with Böhtlingk and Roth (1855) misleading by citing the Trikāṇḍaśeṣa and Medinī in giving the meaning of the word liṅga as
...
Monier Williams (1872) simply copied from Böhtlingk and Roth and gave a meaning of the meaning of “liṅga” as ...
In sharp contrast, the Sri Lankan Buddhist commentator C A Seeakkhanda Maha Thera carefully explained the two different meanings separately in his commentary on the Trikāṇḍaśeṣa.
The Apte entry seems to be influenced by Böhtlingk-Roth or Monier-Williams.