Opened 8 years ago

Closed 8 years ago

#53781 closed defect (fixed)

disktype fails to build

Reported by: Polyergic (Shad Sterling) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: disktype

Description

On macOS Sierra 10.12.3, disktype @9_1 fails to build.

This appears to be the relevant part of the log:

:info:build gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN  -Wall  -c file.c
:info:build In file included from /usr/include/Availability.h:184:0,
:info:build                  from /usr/include/stdio.h:65,
:info:build                  from global.h:33,
:info:build                  from main.c:28:
:info:build /System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' undeclared here (not in a function)
:info:build      kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
:info:build                                   ^
:info:build /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:777:39: error: 'deprecated' undeclared here (not in a function)
:info:build  const CFStringRef kCFURLLabelColorKey API_DEPRECATED("Use NSURLLabelColorKey", macosx(10.6, 10.12), ios(4.0, 10.0), watchos(2.0, 3.0), tvos(9.0, 10.0));
:info:build                                        ^
:info:build /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:777:39: error: 'message' undeclared here (not in a function)
:info:build  const CFStringRef kCFURLLabelColorKey API_DEPRECATED("Use NSURLLabelColorKey", macosx(10.6, 10.12), ios(4.0, 10.0), watchos(2.0, 3.0), tvos(9.0, 10.0));
:info:build                                        ^

Attachments (1)

main.log (18.3 KB) - added by Polyergic (Shad Sterling) 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by Polyergic (Shad Sterling)

Attachment: main.log added

comment:1 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

In 070fecfb/macports-ports:

disktype: correct patch and build settings

This may or may not fix the issues in the bug report. It builds fine
for me using clang or gcc.

see #53781

comment:2 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

It build here w/ gcc and clang - can you update in a few minutes and sync your ports and try again?

comment:3 Changed 8 years ago by Polyergic (Shad Sterling)

Tried again, same result, but the errors appear to be in a different file - changed from file.c to cdaccess.c:

:info:build gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN  -Wall  -c cdaccess.c
:info:build In file included from /usr/include/Availability.h:184:0,
:info:build                  from /usr/include/stdio.h:65,
:info:build                  from global.h:33,
:info:build                  from main.c:28:
:info:build /System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h:53:34: error: 'introduced' undeclared here (not in a function)
:info:build      kCFISO8601DateFormatWithYear API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)) = (1UL << 0),
:info:build                                   ^
:info:build gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN  -Wall  -c cdimage.c
:info:build /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:777:39: error: 'deprecated' undeclared here (not in a function)
:info:build  const CFStringRef kCFURLLabelColorKey API_DEPRECATED("Use NSURLLabelColorKey", macosx(10.6, 10.12), ios(4.0, 10.0), watchos(2.0, 3.0), tvos(9.0, 10.0));
:info:build                                        ^
:info:build /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:777:39: error: 'message' undeclared here (not in a function)
:info:build  const CFStringRef kCFURLLabelColorKey API_DEPRECATED("Use NSURLLabelColorKey", macosx(10.6, 10.12), ios(4.0, 10.0), watchos(2.0, 3.0), tvos(9.0, 10.0));
:info:build                                        ^

Another error, which I did not notice before but was in the original log, also appears to have change files - from dos.c to cdrom.c:

:info:build gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_MACOS_TYPE -DUSE_IOCTL_DARWIN  -Wall  -c cdrom.c
:info:build In file included from /System/Library/Frameworks/Security.framework/Headers/Security.h:81:0,
:info:build                  from /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h:43,
:info:build                  from /System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h:27,
:info:build                  from /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h:23,
:info:build                  from /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:22,
:info:build                  from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:39,
:info:build                  from main.c:31:
:info:build /System/Library/Frameworks/Security.framework/Headers/Authorization.h:194:7: error: variably modified 'bytes' at file scope
:info:build   char bytes[kAuthorizationExternalFormLength];
:info:build        ^~~~~

Does it mean anything that both files seem to be CD related? I'm running this on a MacBook Pro (13-inch, Mid 2012), which does have an internal CD drive.

The commands I ran were port clean --all disktype and port upgrade outdated; there were no other outdated ports.

comment:4 Changed 8 years ago by Polyergic (Shad Sterling)

Derp, I forgot to run selfupdate again. (I tried maybe an hour after your post, but it didn't pick up the update; coming back to it now I forgot to include that step.)

After selfupdating and trying again, it works.

Thanks!

comment:5 Changed 8 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.