Obsessive-compulsive personality disorder is not the same as obsessive-compulsive disorder, which is an anxiety disorder. Many people with one type of personality disorder also have symptoms of at least one other type.
Compulsive behaviors are actions a person feels driven or compelled to do repeatedly, even if those actions appear to be irrational or pointless. A compulsion is different from an addiction, which is a physical or chemical dependence on a substance or behavior.