You can make square tube driveshafts, but they're only for dedicated offroad-only slow moving rigs. You can also use them for spare driveshafts. The one I saw the guy had welded U-joint mounts to each end and had actually made it a two peice shaft so the thing collapsed in on itself to about 60% of it's max width. It was just a spare but that way it took up less space.
You wouldn't want to use it for anything high speed, especially road use. It'd vibrate like a mofo. Square tube's gotta be about impossible to balance.