A process for the preparation of compounds of the formulae I and II ##STR6## where R.sup.1 is hydrogen or an aliphatic, cylcoaliphatic, araliphatic, aromatic or heterocyclic radical or an acyl radical, it being possible for these radicals to carry further substituents which do not react with acetylenes or allenes, and radicals R, independently of one another, are hydrogen or aliphatic, cycloaliphatic, araliphatic, aromatic or heterocyclic radicals which may be bonded to one another with formation of a ring, and m is 0 or 1, by addition reaction of a compound of the formula III
- R.sup.1 OH III
- with an acetylene or allene of the formula IV or V ##STR7## where R.sup.1 and R have the abovementioned meanings, in the gas phase at elevated temperatures in the presence of a heterogeneous, silicate-containing catalyst, wherein the catalyst used contains, as an active component, an X-ray amorphous zinc silicate or cadmium silicate containing from 1 to 40% by weight, calculated as oxide, of zinc or cadmium, said catalyst being prepared by applying a zinc salt or cadmium salt of an organic acidic compound which is decomposable at below 400.degree. C., to amorphous silica and forming the catalyst at from 50 to 500.degree. C., in the presence of a hydroxyl-containing compound selected from the group consisting of water, alkanols of up to 10 carbon atoms, diols and polyols having 2 to 6 carbon atoms and 2 or 3 OH groups and carboxylic acids of 1 to 6 carbon atoms.