Warning: This is 3.0 Edition material. It is possible that there is more recent 3.5 Edition version.
Inaccurate?

Incarnate Construct

(Savage Species)

Transmutation
Level: Cleric 9, Sorcerer 9, Wizard 9,
Components: V, S, M, XP,
Casting Time: 8 hours
Range: Touch
Target: One construct
Duration: Instantaneous
Saving Throw: Will negates (harmless)
Spell Resistance: Yes (harmless)

This spell turns a humanoid-shaped construct into a living creature.
The spell does not work on constructs that are only constructs temporarily (such as objects affected by an animate objects spell).
The construct gains the incarnate construct template (see Chapter 10).
The incarnated creature is independent of both you and the being who originally made it, though it is initially friendly toward both you and its maker.
Material Component: The heart of a humanoid that has been dead less than 8 hours.
XP Cost: 5,000 XP.