1. What assignments' of error, if any, we shall here consider and decide, depends upon onr determination of the question of jurisdiction.
“When a court'has determined that it has no jurisdiction of the subject matter of an action, it cannot properly consider any other question raised in the case”: 17 Stand. Proc. 657.
This court, speaking through Justice Bonham, in the early case of Evans v. Christian, 4 Or. 375, 377, said:
“When a question of jurisdiction presents itself in any stage of a proceeding, and it is discovered that the court has no jurisdiction, either over the parties or the subject matter of the cause, it is the duty of the court, on its own motion, to refuse to proceed further. Any attempt to exercise judicial functions otherwise than as authorized by law would be a nullity, and an idle waste of time.”
To the same effect are Evarts v. Steger, 5 Or. 147; State v. McKinnon, 8 Or. 487; White v. Ladd, 41 Or. 324 (68 Pac. 739, 93 Am. St. Rep. 732); Kalyton v. Kalyton, 45 Or. 116, 127 (74 Pac. 491, 78 Pac. 332); Bynearson v. Union Co., 54 Or. 181 (102 Pac. 785); Kesler v. Nice, 54 Or. 585, 587 (104 Pac. 2); State v. Goodall, 82 Or. 329 (160 Pac. 595).
It has been said that—
“Jurisdiction is the power conferred on a court, by Constitution or statute, to take cognizance of the subject matter of a litigation and the parties brought before it, and to legally hear, try, and determine the issues, and render judgment according to the general rules of law, upon the issues joined, be they either of law or of fact, or both”: Brown on Jurisdiction, §2.
Speaking through Chief Justice Fuller, the Supreme Court of the United States has said that —
*189“The fundamental question of jurisdiction, first of the appellate court, and then of the court from which the record comes, presents itself on every writ of error and appeal, and must be answered by the court, whether propounded by counsel or not: Defiance Water Co. v. Defiance, 190 U. S. 184 (48 L. Ed. 140, 24 Sup. Ct. Rep. 63). Jurisdiction is given by law: Clyde & R. Plank Road Co. v. Parker, 22 Barb. (N. Y.) 323.”
2, 3. The organic and statutory laws of the commonwealth of Oregon created her courts and define their jurisdiction. In fact, no other power could establish the courts of the state, nor could jurisdiction flow from any other source. The law must confer upon the courts the power to act on the subject matter upon which it gives judgment. The power or jurisdiction of the Circuit Court of the State of Oregon in and for Multnomah County to hear and determine the question as to whether or not the appellant, through negligence with fire, caused the shingle-mill described in the complaint to be injured, depends upon, the existence of the fact as to whether that mill was real or personal property, and that fact must appear from the pleadings. As was said by Justice Moore, speaking for this court in the case of Eagle Cliff Fishing Co. v. McGowan, 70 Or. 1, 7 (137 Pac. 766, 768):
“The authority of a court to hear and determine a cause depends upon the allegations of the initiatory pleading, and not upon the facts.”
It is stated in 17 Standard Proc., page 660:
“The jurisdiction of the subject matter of any controversy in any court must be determined in the first instance by the allegations in the complaint or petition as the case may be, made in good faith, and does *190not depend upon the existence of a sustainable cause of action or by the evidence subsequently adduced. ”
Citing Manier v. Trumbo, 30 Fed. Cas. No. 18,309; Turner v. Cotton, 123 Ark. 40 (184 S. W. 415); Ransome-Crummey Co. v. Martenstein, 167 Cal. 406 (139 Pac. 1060); Lake Shore etc. R. Co. v. Clough, 182 Ind. 178, 184 (104 N. E. 975, 105 N. E. 905); Boone v. Poindexter, 12 Smedes & M. (Miss.) 640; Jersey City v. Gardner, 33 N. J. Eq. 622; Piekelko v. Lake View Brewing Co., 65 Misc. Rep. 365 (119 N. Y. Supp. 847); Gaw v. Glassboro Novelty G. Co., 20 Ohio C. C. 416 (11 Ohio Cir. Dec. 32); Eagle Cliff Fishing Co. v. McGowan, 70 Or. 1 (137 Pac. 766); Ridgely v. Bennett, 13 Lea (Tenn.), 210; Young v. Young, 12 Lea (Tenn.), 335; Kindell v. Titus, 9 Heisk. (Tenn.) 727, and note 38; 17 Standard Proc., p. 675; Geneva Furniture Mfg. Co. v. Karpen & Bros., 238 U. S. 254 (59 L. Ed. 1295, 35 Sup. Ct. Rep. 788; The Fair v. Kohler Die & S. Co., 228 U. S. 22 (57 L. Ed. 716, 33 Sup. Ct. Rep. 410, see, also, Rose’s U. S. Notes); In re James’ Estate, 99 Cal. 374 (33 Pac. 1122, 37 Am. St. Rep. 60); Shankle v. Ingram, 133 N. C. 254 (45 S. E. 578).
It has been held by the Supreme Court of the State of Georgia that—
“The jurisdiction of a court to entertain a cause, and the right of the plaintiff in such cause to finally prevail, present essentially different questions; the former is determined from an inspection of the record, the other results from a consideration of the facts as established by the proof”: Young v. Hamilton, 135 Ga. 339 (69 S. E. 593, Ann. Cas. 1912A, 144, 31 L. R. A. (N. S.) 1057).
The appellant asserts that the court in which this cause was tried was without jurisdiction, for the rea*191son that this was an action prosecuted for the recovery of damages for injuries to real property; that therefore the action was barred by the provisions of Section 42, Or. L., which reads as follows:
“Actions for the following causes shall be commenced and tried in the county in which the subject of the action, or some part thereof, is situated:
“1. For the recovery of real property, or an estate or interest therein, or for injuries to real property”: Montesano Lumber Co. v. Portland Iron Works, 78 Or. 53, 70 (152 Pac. 244), and the many authorities therein cited.
4. The question of jurisdiction was not raised by demurrer, motion, answer or by objection to the introduction of evidence during the trial in the court below. The objection is made by appellant for the first time in this court, but under the law of Oregon he is within his legal right as declared by statute:
“If no objection be taken, either by demurrer, or answer, the defendant shall be deemed to have waived the same, excepting only the objection to the jurisdiction of the court and the objection that the complaint does not state facts sufficient to constitute a cause of action”: Section 72, Or. L., and the authorities therein cited.
5, 6. We recognize the rule that when a complaint reaches this court without having been demurred to or moved against in any way, every reasonable inference or intendment should be invoked to support it: Weishaar v. Pendleton, 73 Or. 190, 200 (144 Pac. 401) — citing Baker City v. Murphy, 30 Or. 405 (42 Pac. 133, 35 L. R. A. 88); McCall v. Porter, 42 Or. 49 (70 Pac. 820, 71 Pac. 976); Drake v. Sworts, 24 Or. 198 (33 Pac. 563); Davis v. Wait, 12 Or. 425 (8 Pac. 356); Bade v. Hibberd, 50 Or. 501 (93 Pac. 364). While it is true that a verdict aids an informal state*192ment of facts in a pleading, it will never supply a material averment that goes to the gist of the action: Philomath v. Ingle, 41 Or. 289 (68 Pac. 803). To like effect, see Booth v. Moody, 30 Or. 222 (46 Pac. 884); Savage v. Savage, 36 Or. 268 (59 Pac. 461); Chan Sing v. Portland, 37 Or. 68 (60 Pac. 718).
7-9. The jurisdiction and power of the Circuit Court is invoked hy a pleading alleging, with reference to the property damaged, that the plaintiffs, on the sixteenth day of April, 1917, entered into a contract with Bertha E. Martin for the purchase of the cedar timber and lands described therein, situate in the State of Washington; that in May, 1917, the plaintiffs commenced the construction of a- shingle-mill on a part of said lands situate in the county of Wahkiakum, State of Washington, at a point near the center of the line between Sections 6 and 7 in township 8 north of range 4 west of the Willamette Meridian, and that they completed said mill at a cost of $4,500. From these allegations it appears that the shingle-mill w'as real property. It is a rule of law that, where a building is erected on the land of another, it is prima facie a part of the realty: Devlin on Beal Estate, § 1220A. To like effect see Smith v. Benson, 1 Hill (N. Y.), 176; Leland v. Gassett, 17 Vt. 403; Dolliver v. Ela, 128 Mass. 557; Brown v. Fox, 12 Misc. Rep. 147 (33 N. Y. Supp. 57); Godard v. Gould, 14 Barb. (N. Y.), 662; Richtmyer v. Morss, 4 Abb. Dec. (N. Y.) 55. It is equally well settled that if a building is erected upon the lands of another, with the understanding, express or implied, that it may be removed when desired, it is then not a part of the real estate, but personal property: Devlin on' Real Estate, § 1220A; R. C. L., §§ 25, 26, “Fixtures.” In Roseburg Na*193tional Bank v. Camp, 89 Or. 67 (173 Pac. 313), Justice Harris cites a valuable list of authorities bearing upon the subject of “Fixtures.” From the allegations of the complaint, the shingle-mill constructed upon the lands of Bertha E. Martin by the plaintiffs and burned by fire on July 1st was prima facie real property, and an action for damages therefor in the courts of this state is barred by the provisions of said Section 72, Or. L., as the law of this state has not jurisdiction of the subject matter. Jurisdiction of the subject matter, as we have seen, is the power to adjudge concerning the general question involved, and is not dependent on the ultimate existence of a good cause of action in the plaintiff in a pending cause before the court. The power must depend upon the facts averred in the pleading, and the complaint has averred injury to real property situate, not within, but without, this state; hence this court is without jurisdiction.
The plaintiffs’ demand for relief sought to recover $3,000 for damages to the shingle-mill, outbuildings, and donkey engine, and for the further sum of $6,000 for damages by reason of the destruction of cedar timber that had been cut and thrown down. The court instructed the jury, regarding damages by reason of the burning of the said timber, that—
“Speculative profits are not ordinarily a proper element of damages, and it appears from the contract between the plaintiffs and Mrs. Martin (Plaintiffs’ Exhibit D) that the plaintiffs were obligated to pay only for such logs of Mrs. Martin as were actually made into shingles, and the plaintiffs, therefore, cannot recover in this case the profits which they would have made if such logs had not been destroyed.”
We do not mean to intimate whether the court should or should not have given this instruction, but *194we do assume that the jury followed it, and found no damages on account of the destruction of the timber.
A verdict in favor of plaintiffs and against defendant in the sum of $2,000 was returned by the jury. What proportion of the verdict represents damages to the donkey engine, or injury to the outbuildings, or loss by reason of the burning of the shingle-mill, we cannot tell. However, according to the record, some part of this verdict represents damages to real property situate in the State of Washington, which it is beyond the jurisdiction of the court to award, and is invalid to that extent. Under the facts as disclosed by the record, the court cannot correct the judgment. Wherefore the judgment is ordered reversed and the case remanded, with leave to the plaintiff to apply to the lower court for permission to file an amended complaint, and for further proceedings not inconsistent with this opinion.
10. In this court, in an action at law, it is a rule that the prevailing party is entitled to recover costs and disbursements; but the rule has its exceptions, as the following precedents bear witness: Stabler v. Melvin, 89 Or. 226 (173 Pac. 896); Olson v. Heisen, 90 Or. 176 (175 Pac. 859); Miller Lum. Co. v. Davis, 94 Or. 507 (185 Pac. 462, 464, 1107); Levine v. Levine, 95 Or. 94 (187 Pac. 609). The court is of the opinion that, under the circumstances as they exist in this cause, it is not fair, right or just to exact costs and disbursements from respondents. Therefore it is adjudged that neither party have judgment for costs and disbursements in this court.
Reversed and Remanded.
McBride, 0, J., and Bean and Johns, JJ., concur.