with mkgmap I get an error that a "road contains zero lenght arc"

how can I solve this?

I already tried just to erase the road with the error in the *.osm-file but then the img-file does not work with my other software - so I guess there is a mistake in the osm-file then.

I would suggest you try using mkgmap’s --remove-short-arcs option and try again.

Cheers.