multiple analog inputs using i2c

Hi!

I've got an Arduino Uno and need to connect a RTC (DS1307) and a compass (HMC5883L). The problem is that both use analog pin 4 (SCL) and 5 (SDA) on my Uno. If I connect them to any other pin, they don't communicate anything. probably since pin 4 an 5 is the only SCL/SDA pins on the Uno. Is there any way to get around this?

What problem? Do both devices have the same I2C address?

No, I think they have different adresses. My problem is that i don't know how to connect both of them to my Uno, since Uno only has one SDA and one SCL pin. Do I need to use a multiplexer? Or shift register? Or something else? And will that still work with the analog input?

As you might understand, I'm a noob.. :wink: