Raspbian has Netatalk 3.0 AFAIK, you don't need to compile your own. For sure you don't need to compile Avahi.
TimeMachine does work on the Pi. Except, it is extremely slow. Writes over the network on Pi will top at something like 4 MB/s (40mbps).
I know this because I did setup and test TM on a Pi3 running Raspbian Jessie. Since it is slow and I have better alternatives I don't use it regularly.
I don't know what "my.ip.address.0." really means but are you sure your configuration is correct?
Are you aware that contrary to Netatalk 2, Netatalk 3 has a "TimeMachine" share option and dynamically does its own mDNS advertisement, meaning you don't need any kind of static Avahi service file?
Since backup is slow, it is impractical to use TM and make a full backup over the network. A full backup contains 150k files at least (the Mac OS) at transferring that over the network takes days. If you want to reinstall a Mac from a TM image across the network, the install would also take days.
TM on Pi is ok for incremental backups (which happen every 15 min.), unless you're editing video files or something like that on the Mac.
- Format your USB drive as HFS+, a format the Mac will natively support for the 1st backup and in case of bare metal recovery. Don't use a linux FS, the Mac doesn't know what an ext FS is.
- Connect the drive to the Mac and do a full backup
- Connect the drive to the Pi and restart Netatalk and check an incremental backup works
- Connect the drive to the Mac, reboot it to recovery mode and check you have the option to reinstall from the backup present on the drive.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel