Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#8571 closed defect (fixed)

OSX 10.5, PPC: Cannot compile frontend

Reported by: geierb@… Owned by: Isaac Richards
Priority: critical Milestone: 0.24
Component: MythTV - General Version: 0.23-fixes
Severity: high Keywords: osx ppc frontend compilation
Cc: Ticket locked: no

Description

mythcoreutil.cpp: In function ‘long long int getDiskSpace(const QString&, long long int&, long long int&)’:
mythcoreutil.cpp:34: error: aggregate ‘statfs statbuf’ has incomplete type and cannot be defined
mythcoreutil.cpp:45: error: invalid use of undefined type ‘struct statfs’
mythcoreutil.cpp:34: error: forward declaration of ‘struct statfs’
make[2]: *** [mythcoreutil.o] Error 1
make[1]: *** [sub-libmythdb-make_default] Error 2
make: *** [sub-libs-make_default-ordered] Error 2
[osx-pkg] Failed system call: " /usr/bin/make  " with error code 2
Died at ./osx-packager.pl line 1016.

Change History (2)

comment:1 Changed 14 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [25126]) #include compat.h which is included in libmyth/util.cpp.

This causes sys/param.h to be included which gets us the statfs struct on OSX. I include compat.h rather than sys/param.h directly because other code from util.cpp will be moving to mythcoreutil.cpp in time as part of a bigger feature patch I'm working on.

Fixes #8571.

comment:2 Changed 14 years ago by stuartm

Milestone: unknown0.24
Note: See TracTickets for help on using tickets.