Unhappiness-
1. The Pāpakarma (inauspicious Kartna-pudgala (material cluster qua Karma)) committed in the past, present and future.
pave kamme je ya kaḍe je ya kajjai je ya kajjissai savve se dukkhe.
(Bhaga 7.160)
2. The feeling of gloominess (or mental agony) generated on account of separation from the covetable person (or object) or meeting up with the uncovetable one.
iṣṭasaṃyogā'niṣṭanivṛtterāhlādaḥ sukham. tadvipanjayo duḥkham.
tasyālhādasya viparyayo glāttirduḥkhamābhidhīyate.
(Jaisidī 9.22,23 Vṛ)