[SOLVED]Not getting square wave output from SQW pin of DS1307

I have connected a pullup resistor of 10KOhm from pin7 to VCC.
I am using the library written by alvarojustenhttp://forum.arduino.cc/index.php/topic,59256.0.html.
The catch is that I have seen the square output from the pin7 before without modifying the example programs.
So oi is probable that problem might be in hardware,can anyone suggest the possible faults that may lead to this problem?