Posting data to multiple web sites, conflicting libraries?

Hello all, I've been banging my head with this problem a few days now. I have 2 separate sketches that work great alone, but when I try to combine them, the sketch compiles but fails when running on the Arduino right away. It never gets an IP address to go on the internet. No error code is observed in the Serial Port Monitor.

Program 1: A garden watering program. It posts to twitter once it's done and also a nightly "I'm alive" tweet. Uses a twitter library.
Program 2: The skeleton of a future garden data gathering program. It posts to Xively.com (formerly COSM and parachube) and works fine alone with Xively library.

Now when I try to combine the two programs, it never proceeds beyond initialization and I suspect it's the libraries conflicting with the EthernetClient commands. I'm not very code or library savy at this point so I'm hoping you can help. I'm posting my combined program code here although again I think the root cause is in those two libraries of twitter.h and xively.h

Do I need to create some kind of blended library between these two? Thanks for your feedback!!

/* Requirements
*   * Arduino with Ethernet shield or Arduino Ethernet (board must use the
*     Wiznet Ethernet chipset)
*   * Arduino software with version >= 1.0
*   * Chronodot Real Time Clock (RTC) or similar
*   * Twitter API key
*   * xively API key
*
*  Hook ups
*   * An relay board connected to digital pin 7 (dripLineRelayPin)
*   * RTC is hooked to power, ground, and SCL + SDA hooked to Arduino inputs marked as such
*
*/

    #include "Timer.h"
    #include <SPI.h>  
    #include <Ethernet.h> 
    #include <Twitter.h>  
    #include <HttpClient.h> 
    #include "Wire.h" 
    #include <Xively.h>

    #define DS1307_ADDRESS 0x68

    // Your Xively key to let you upload data
    char xivelyKey[] = "Removed";

    // Analog pin which we're monitoring (0 and 1 are used by the Ethernet shield)
    int sensorPin = 2;

    // Define the strings for our datastream IDs
    char sensorId[] = "Soil_Moisture";
    char bufferId[] = "Soil_Temperature";
    String stringId("Water_Threshold");
    const int bufferSize = 140;
    char bufferValue[bufferSize]; // enough space to store the string we're going to send
      XivelyDatastream datastreams[] = {
      XivelyDatastream(sensorId, strlen(sensorId), DATASTREAM_FLOAT),
      XivelyDatastream(bufferId, strlen(bufferId), DATASTREAM_BUFFER, bufferValue, bufferSize),
      XivelyDatastream(stringId, DATASTREAM_STRING)
      };
    // Finally, wrap the datastreams into a feed
    XivelyFeed feed(123removed456, datastreams, 3 /* number of datastreams */);

    EthernetClient clientxive;
    XivelyClient xivelyclient(clientxive);

    // Declare Contant Program Variables
    byte zero = 0x00; //workaround for issue #527 with real time clock
    const int dripLineRelayPin = 7; // the drip line relay is connected to digital pin 7

    // Ethernet Shield Settings
    byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

    // If you don't specify the IP address, DHCP is used(only in Arduino 1.0 or later).
    byte ip[] = { 192, 168, 1, 150 };

    // Your Token to Tweet (get it from http://arduino-tweet.appspot.com/)
    Twitter twitter("Removed");

    // Initial Power-up Message to post (Tweet)
    char msg[] = "Device restarted"; 
     
    Timer t;
     
    void setup()
    {
  Wire.begin();
  
  pinMode(dripLineRelayPin, OUTPUT);  // Initialize drip line relay pin as an output
  digitalWrite(dripLineRelayPin, LOW);          // Initize drip line pump relay to LOW state (relay off)
    
  Serial.begin(9600);
//  setDateTime(); //MUST CONFIGURE IN FUNCTION - Only set this once and upload, then upload again and comment this command setDateTime line out!

  Serial.println("Initial delay starting to allow router to power up and connect to network");  
  delay(20000);

  // Now that the router is happy it's time for us to request an IP address and get on the web
  Ethernet.begin(mac, ip);
  // or you can use DHCP for autoomatic IP address configuration.
  // Ethernet.begin(mac);
  
/*  Below is Xively code I'm commenting out, I don't think I need it.

while (Ethernet.begin(mac) != 1)
  {
    Serial.println("Error getting IP address via DHCP, trying again...");
    delay(15000);
  }
*/

  Serial.println("Attempting to connect to internet...");
  if (twitter.post(msg)) {
    // Specify &Serial to output received response to Serial.
    // If no output is required, you can just omit the argument, e.g.
    // int status = twitter.wait();
    int statuscodeme = twitter.wait(&Serial);
    if (statuscodeme == 200) {
      Serial.println("OK.");
    } else {
      Serial.print("failed : code ");
      Serial.println(statuscodeme);
    }
  } else {
    Serial.println("connection failed.");
  }

  Serial.println(" ");
 
      t.every(600000, mainLoop); //600,000 = check soil temp and moisture every 10 minutes
      t.every(29000, waterEvent);  //29,000 = check time every 29 seconds to see if time to water
}
     
     
    void loop()
    {
      t.update();
    }
     
     
    void mainLoop()
    {
      int sensorValue = analogRead(sensorPin);
      datastreams[0].setFloat(sensorValue);

      Serial.print("Read sensor value ");
      Serial.println(datastreams[0].getFloat());

      datastreams[1].setBuffer("a message to upload");
      Serial.print("Setting buffer value to:\n    ");
      Serial.println(datastreams[1].getBuffer());

      // Pick a random number to send up in a string
      String stringValue(random(100));
      stringValue += " is a random number";
      datastreams[2].setString(stringValue);
      Serial.print("Setting string value to:\n    ");
      Serial.println(datastreams[2].getString());

      Serial.println("Uploading it to Xively");
      int ret = xivelyclient.put(feed, xivelyKey);
//      int ret = client.put(feed, xivelyKey);
      Serial.print("xivelyclient.put returned ");
      Serial.println(ret);

      Serial.println();
     }


void setDateTime(){

  byte second =      0; //0-59
  byte minute =      40; //0-59
  byte hour =        19; //0-23
  byte weekDay =     3; //1-7
  byte monthDay =    5; //1-31
  byte month =       6; //1-12
  byte year  =       13; //0-99

  Wire.beginTransmission(DS1307_ADDRESS);
  Wire.write(zero); //stop Oscillator

  Wire.write(decToBcd(second));
  Wire.write(decToBcd(minute));
  Wire.write(decToBcd(hour));
  Wire.write(decToBcd(weekDay));
  Wire.write(decToBcd(monthDay));
  Wire.write(decToBcd(month));
  Wire.write(decToBcd(year));

  Wire.write(zero); //start 

  Wire.endTransmission();

}

byte decToBcd(byte val){
// Convert normal decimal numbers to binary coded decimal
  return ( (val/10*16) + (val%10) );
}

byte bcdToDec(byte val)  {
// Convert binary coded decimal to normal decimal numbers
  return ( (val/16*10) + (val%16) );
}

void waterEvent(){

  // Reset the register pointer
  Wire.beginTransmission(DS1307_ADDRESS);
  Wire.write(zero);
  Wire.endTransmission();

  Wire.requestFrom(DS1307_ADDRESS, 7);

  int second = bcdToDec(Wire.read());
  int minute = bcdToDec(Wire.read());
  int hour = bcdToDec(Wire.read() & 0b111111); //24 hour time
  int weekDay = bcdToDec(Wire.read()); //0-6 -> sunday - Saturday
  int monthDay = bcdToDec(Wire.read());
  int month = bcdToDec(Wire.read());
  int year = bcdToDec(Wire.read());

  //print the date EG   3/1/11 23:59:59
  Serial.print("Current Date and Time is ");
  Serial.print(month);
  Serial.print("/");
  Serial.print(monthDay);
  Serial.print("/");
  Serial.print(year);
  Serial.print(" ");
  Serial.print(hour);
  Serial.print(":");
  Serial.print(minute);
  Serial.print(":");
  Serial.print(second);
  Serial.print("   It is ");

  if (hour == 7 && minute == 15) {
    Serial.println("OK to water");
    digitalWrite(dripLineRelayPin, HIGH);   // Turn on the relay to pump water
    Serial.println("Drip relay has been turned ON");      
    holdon(600000);
    digitalWrite(dripLineRelayPin, LOW);     // Turn off the relay, done watering
    delay(3000);
    twitter.post("DripDuino finished watering the garden");     
    int status = twitter.wait();
    Serial.println("Drip relay has been turned OFF");          
  }
  else if (hour == 21 && minute == 5) {
    twitter.post("DripDuino is alive at 9:05 pm");     
    int status = twitter.wait();    
  }
  else {
    Serial.println("NOT OK to water, I only water at 7:15 AM");
  }

}

void holdon(unsigned long ms){
  unsigned long start = millis ();
  while (millis () - start < ms)
       {  }
}

SPI library SPI - Arduino Reference

SS (Slave Select) - the pin on each device that the master can use to enable and disable specific devices.

To be a little clearer, that SS line should be multiple lines from the master, not joined together like that. You assert SS (bring it low) for one device at a time. Then you can parallel together the MOSI and MISO lines.

Yes, MOSI and MISO should be connected in parallel to all devices, not daisy-chained you currently have them.