Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: no member named 'majorVersion' in 'NSOperatingSystemVersion' #254

Closed
ronaldoussoren opened this issue Nov 6, 2018 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@ronaldoussoren
Copy link
Owner

Original report by ryandesign (Bitbucket: ryandesign, GitHub: ryandesign).


Building pyobjc 5.1.1 for python 2.7 on OS X 10.8 fails with these errors:

building 'objc._objc' extension
creating build/temp.macosx-10.8-x86_64-2.7
creating build/temp.macosx-10.8-x86_64-2.7/Modules
creating build/temp.macosx-10.8-x86_64-2.7/Modules/objc
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/objc/module.m -o build/temp.macosx
-10.8-x86_64-2.7/Modules/objc/module.o -g -fexceptions -Wall -Wstrict-prototypes -Wmissing-prototypes -Wformat=2 -W -Wpointer-arith -Wmissing-declarations -Wnested-externs -W -Wno-import -Wno-unknown-pra
gmas -Wshorten-64-to-32 -I/opt/local/lib/libffi-3.2.1/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -DPyObjC_BUILD_RELEASE=1009
Modules/objc/module.m:84:24: error: no member named 'majorVersion' in 'NSOperatingSystemVersion'
        gSystemVersion.majorVersion = [[parts objectAtIndex:0] intValue];
        ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:85:24: error: no member named 'minorVersion' in 'NSOperatingSystemVersion'
        gSystemVersion.minorVersion = [[parts objectAtIndex:1] intValue];
        ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:88:28: error: no member named 'patchVersion' in 'NSOperatingSystemVersion'
            gSystemVersion.patchVersion = [[parts objectAtIndex:2] intValue];
            ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:94:24: error: no member named 'majorVersion' in 'NSOperatingSystemVersion'
    if (gSystemVersion.majorVersion >= 10 || gSystemVersion.minorVersion >= 10) {
        ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:94:61: error: no member named 'minorVersion' in 'NSOperatingSystemVersion'
    if (gSystemVersion.majorVersion >= 10 || gSystemVersion.minorVersion >= 10) {
                                             ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:95:31: error: no member named 'majorVersion' in 'NSOperatingSystemVersion'
        return gSystemVersion.majorVersion * 10000 + gSystemVersion.minorVersion * 100 + gSystemVersion.patchVersion;
               ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:95:69: error: no member named 'minorVersion' in 'NSOperatingSystemVersion'
        return gSystemVersion.majorVersion * 10000 + gSystemVersion.minorVersion * 100 + gSystemVersion.patchVersion;
                                                     ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:95:105: error: no member named 'patchVersion' in 'NSOperatingSystemVersion'
        return gSystemVersion.majorVersion * 10000 + gSystemVersion.minorVersion * 100 + gSystemVersion.patchVersion;
                                                                                         ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:97:31: error: no member named 'majorVersion' in 'NSOperatingSystemVersion'
        return gSystemVersion.majorVersion * 100 + gSystemVersion.minorVersion;
               ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:97:67: error: no member named 'minorVersion' in 'NSOperatingSystemVersion'
        return gSystemVersion.majorVersion * 100 + gSystemVersion.minorVersion;
                                                   ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:235:32: error: no member named 'majorVersion' in 'NSOperatingSystemVersion'
    if (major > gSystemVersion.majorVersion) {
                ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:237:40: error: no member named 'majorVersion' in 'NSOperatingSystemVersion'
    } else if (major == gSystemVersion.majorVersion) {
                        ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:238:36: error: no member named 'minorVersion' in 'NSOperatingSystemVersion'
        if (minor > gSystemVersion.minorVersion) {
                    ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:240:44: error: no member named 'minorVersion' in 'NSOperatingSystemVersion'
        } else if (minor == gSystemVersion.minorVersion) {
                            ~~~~~~~~~~~~~~ ^
Modules/objc/module.m:241:41: error: no member named 'patchVersion' in 'NSOperatingSystemVersion'
             if (patch > gSystemVersion.patchVersion) {
                         ~~~~~~~~~~~~~~ ^
15 errors generated.
@ronaldoussoren
Copy link
Owner Author

Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren).


Thanks for the report. This should be fixed in changeset 1b03b7b9f77d.

@ronaldoussoren
Copy link
Owner Author

Original comment by ryandesign (Bitbucket: ryandesign, GitHub: ryandesign).


Thanks, that works!

@ronaldoussoren ronaldoussoren added major bug Something isn't working labels Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant