[MacPorts] #53781: disktype fails to build

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #53781: disktype fails to build

MacPorts
#53781: disktype fails to build
-----------------------+----------------------
 Reporter:  Polyergic  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.4.1
 Keywords:             |       Port:  disktype
-----------------------+----------------------
 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                                        ^
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53781>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53781: disktype fails to build

MacPorts
#53781: disktype fails to build
------------------------+-------------------
  Reporter:  Polyergic  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  disktype   |
------------------------+-------------------
Changes (by Polyergic):

 * Attachment "main.log" added.


--
Ticket URL: <https://trac.macports.org/ticket/53781>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53781: disktype fails to build

MacPorts
In reply to this post by MacPorts
#53781: disktype fails to build
------------------------+-------------------
  Reporter:  Polyergic  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  disktype   |
------------------------+-------------------

Comment (by kurthindenburg):

 In [changeset:"070fecfbdb6c77bba6641555c26cea1cb4eead7d/macports-ports"
 070fecfb/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="070fecfbdb6c77bba6641555c26cea1cb4eead7d"
 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 https://trac.macports.org/ticket/53781
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/53781#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53781: disktype fails to build

MacPorts
In reply to this post by MacPorts
#53781: disktype fails to build
------------------------+-------------------
  Reporter:  Polyergic  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  disktype   |
------------------------+-------------------
Changes (by kurthindenburg):

 * cc: kurthindenburg (added)


Comment:

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

--
Ticket URL: <https://trac.macports.org/ticket/53781#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53781: disktype fails to build

MacPorts
In reply to this post by MacPorts
#53781: disktype fails to build
------------------------+-------------------
  Reporter:  Polyergic  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  disktype   |
------------------------+-------------------

Comment (by Polyergic):

 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.

--
Ticket URL: <https://trac.macports.org/ticket/53781#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53781: disktype fails to build

MacPorts
In reply to this post by MacPorts
#53781: disktype fails to build
------------------------+-------------------
  Reporter:  Polyergic  |      Owner:
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:             |   Keywords:
      Port:  disktype   |
------------------------+-------------------

Comment (by Polyergic):

 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!

--
Ticket URL: <https://trac.macports.org/ticket/53781#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #53781: disktype fails to build

MacPorts
In reply to this post by MacPorts
#53781: disktype fails to build
------------------------+--------------------
  Reporter:  Polyergic  |      Owner:
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:  fixed      |   Keywords:
      Port:  disktype   |
------------------------+--------------------
Changes (by kurthindenburg):

 * status:  new => closed
 * resolution:   => fixed


--
Ticket URL: <https://trac.macports.org/ticket/53781#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS