The opinion of the court was delivered by
This action was brought by the Baker-Ossmann Hardware Company, to obtain a subcontractor’s material lien upon a lot owned by Wylie R. Griffin. Other parties who claimed liens on the party, including the Concordia Lumber Company, were made deféndants. The other defendants, except Griffin, set up their claims for liens. Griffin did not appear or answer. In the answer and cross petition filed by the Concordia Lumber Company there
“There is no privity of contract between the subcontractor and the owner, and the former can only obtain a lien by compliance with the statutory provisions. It is not enough that he has furnished the material and filed his lien. The service of notice upon the owner is one of the necessary steps. Without such notice he obtains nothing. The right to claim and enforce his lien being statutory, the action can only be maintained upon a petition alleging a compliance with the statute.”
The foundation of the action of the company was the statement for a lien, and while the affidavit attached as an exhibit might have been used as evidence it cannot be regarded as a part of the statement or a substitute for an essential averment of the petition. The trial court ruled that it devolved on the party claiming the lien to definitely allege that notice to the owner had been given, and therefore sustained the demurrer to the cross petition. In view of the nature of the action, and that such liens can only be acquired and enforced upon the conditions prescribed by statute, we conclude that the petition was defective as against a demurrer.
The judgment is therefore affirmed.