I don't see how the requirement to ingest $SPECIFIC_CHEMICAL_A is any different than the need to ingest any other chemical i.e. food.
I can't make energy (ie. food) from no input, but with some energy expenditure, my body could carry out the set of reactions to convert glucose (which is readily available in the diet) to Vitamin C.
It is made internally by almost all organisms although notable mammalian group exceptions are most or all of the order chiroptera (bats), guinea pigs, capybaras, and one of the two major primate suborders, the Anthropoidea (Haplorrhini) (tarsiers, monkeys and apes, including human beings).
So not all primates.
Do you know <i>why</i> you can't internally produce Vit C?