Creates a new compound attribute definition with the name name, if name is NULL, then the attribute will be nameless. Returns the allocated compound attribute definition upon success or NULL upon failure.