The PIC18F4550 has Vusb on pin 18 - where SCL is located for most (if not all non USB) PIC18's. To get the RTC2 to work with the 4550, you will need to use PORTB with RB1 (SCL) and RB0 (SDA).
Probably easiest to use PORTC of something like a PIC18F4620. Or better yet, look into a PIC18F4xJ11 with a built-in RTCC.
See here http://www.picbasic.co.uk/forum/showthread.php?t=12553
Bookmarks