[MacPorts] #53712: libarchive 3.3.1 fails to build

classic Classic list List threaded Threaded
104 messages Options
1234 ... 6
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #53712: libarchive 3.3.1 fails to build

MacPorts
#53712: libarchive 3.3.1 fails to build
----------------------------------+------------------------
 Reporter:  Gord-Butler           |      Owner:
     Type:  defect                |     Status:  new
 Priority:  Normal                |  Milestone:
Component:  ports                 |    Version:  2.4.1
 Keywords:  libarchive mavericks  |       Port:  libarchive
----------------------------------+------------------------
 Upgraded Macports to 2.4.1 and attempted to upgrade ports. libarchive
 failed at the build stage. I'm including logs from the first two attempts
 to upgrade plus terminal output after cleaning the port and attempting the
 second time. Running Macports on a MacBook Pro with OSX 10.9.

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

Re: [MacPorts] #53712: libarchive 3.3.1 fails to build

MacPorts
#53712: libarchive 3.3.1 fails to build
--------------------------+----------------------------------
  Reporter:  Gord-Butler  |      Owner:
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  libarchive mavericks
      Port:  libarchive   |
--------------------------+----------------------------------
Changes (by Gord-Butler):

 * Attachment "main.log" added.

 First build attempt

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

Re: [MacPorts] #53712: libarchive 3.3.1 fails to build

MacPorts
In reply to this post by MacPorts
#53712: libarchive 3.3.1 fails to build
--------------------------+----------------------------------
  Reporter:  Gord-Butler  |      Owner:
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  libarchive mavericks
      Port:  libarchive   |
--------------------------+----------------------------------
Changes (by Gord-Butler):

 * Attachment "main2.log" added.

 second build attempt

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

Re: [MacPorts] #53712: libarchive 3.3.1 fails to build

MacPorts
In reply to this post by MacPorts
#53712: libarchive 3.3.1 fails to build
--------------------------+----------------------------------
  Reporter:  Gord-Butler  |      Owner:
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  libarchive mavericks
      Port:  libarchive   |
--------------------------+----------------------------------
Changes (by Gord-Butler):

 * Attachment "Attempt 2 Terminal Saved Output .txt" added.

 terminal output from second attempt

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE' (was: libarchive 3.3.1 fails to build)

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
--------------------------+--------------------------
  Reporter:  Gord-Butler  |      Owner:  tobypeterson
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  mavericks
      Port:  libarchive   |
--------------------------+--------------------------
Changes (by ryandesign):

 * owner:   => tobypeterson
 * cc: tobypeterson (removed)
 * status:  new => assigned
 * keywords:  libarchive mavericks => mavericks


Comment:

 The error seems to be:

 {{{
 :info:build libarchive/archive_read_disk_entry_from_file.c:677:34: error:
 use of undeclared identifier 'ACL_SYNCHRONIZE'
 :info:build         {ARCHIVE_ENTRY_ACL_SYNCHRONIZE, ACL_SYNCHRONIZE}
 :info:build                                         ^
 :info:build libarchive/archive_read_disk_entry_from_file.c:1371:31: error:
 invalid application of 'sizeof' to an incomplete type 'const struct
 <anonymous struct at
 libarchive/archive_read_disk_entry_from_file.c:638:14> []'
 :info:build                 for (i = 0; i < (int)(sizeof(acl_perm_map) /
 sizeof(acl_perm_map[0])); ++i) {
 :info:build                                             ^~~~~~~~~~~~~~
 :info:build 2 errors generated.
 }}}

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
--------------------------+--------------------------
  Reporter:  Gord-Butler  |      Owner:  tobypeterson
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  mavericks
      Port:  libarchive   |
--------------------------+--------------------------

Comment (by keybounce):

 CC me, I'm having this same issue.

 It's worse -- this is needed to build cmake. So guess what this did to my
 "sudo port upgrade outdated" :-)

 ... Actually, didn't there used to be a "CC me" button in the bug report
 section here?

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
--------------------------+--------------------------
  Reporter:  Gord-Butler  |      Owner:  tobypeterson
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  mavericks
      Port:  libarchive   |
--------------------------+--------------------------

Comment (by ballapete):

 On Mac OS X 10.6.8, Snow Leopard, it is:

 {{{

 libtool: compile:  /usr/bin/llvm-gcc-4.2 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I/opt/local/include/libxml2 -pipe -Os -arch x86_64
 -Wall -Wformat -Wformat-security -MT libarchive/archive_read.lo -MD -MP
 -MF libarchive/.deps/archive_read.Tpo -c libarchive/archive_read.c -o
 libarchive/archive_read.o >/dev/null 2>&1
 libarchive/archive_read_disk_entry_from_file.c:677: error:
 ‘ACL_SYNCHRONIZE’ undeclared here (not in a function)
 libarchive/archive_read_disk_entry_from_file.c: In function
 ‘translate_guid’:
 libarchive/archive_read_disk_entry_from_file.c:757: warning: implicit
 declaration of function ‘getpwuuid’
 libarchive/archive_read_disk_entry_from_file.c:757: warning: assignment
 makes pointer from integer without a cast
 libarchive/archive_read_disk_entry_from_file.c:767: warning: implicit
 declaration of function ‘getgruuid’
 libarchive/archive_read_disk_entry_from_file.c:767: warning: assignment
 makes pointer from integer without a cast
 make[1]: *** [libarchive/archive_read_disk_entry_from_file.lo] Error 1
 }}}

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
--------------------------+--------------------------
  Reporter:  Gord-Butler  |      Owner:  tobypeterson
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  mavericks
      Port:  libarchive   |
--------------------------+--------------------------

Comment (by maxkalashnikov-macports):

 Same problem on Mountain Lion (10.8)

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
--------------------------+--------------------------
  Reporter:  Gord-Butler  |      Owner:  tobypeterson
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.4.1
Resolution:               |   Keywords:  mavericks
      Port:  libarchive   |
--------------------------+--------------------------

Comment (by maxkalashnikov-macports):

 Looks like this is a problem fixed in upstream with
 [https://github.com/libarchive/libarchive/commit/d9036ca49e414c6b5560c48126b6963204a6eda9]
 and
 [https://github.com/libarchive/libarchive/commit/60f0931d3b97e00616d7122321e34116d926bcc5],
 but there doesn't appear to be a release incorporating them yet.

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------
Changes (by ryandesign):

 * keywords:  mavericks => leopard snowleopard lion mountainlion mavericks


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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by Hasan-Tata):

 Is there any way to patch manually last commit of GitHub sources and
 install it?

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by tobypeterson):

 Of course it could be patched, but I don't have a convenient way to test
 on ancient OS releases. Hopefully upstream will release an update soon.

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 Has duplicate #53724.

 Toby, if it's alright with you, I can try to apply those two upstream
 commits and test on older OSes, and commit to the port if successful.

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by devernay):

 note that even with the fixes above, it doesn't compile on SL, because of
 missing getpwuuid and getgruuid functions (referenced by function
 translate_guid()
 https://github.com/libarchive/libarchive/blob/master/libarchive/archive_read_disk_entry_from_file.c#L872
 )

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by MrB74):

 https://github.com/libarchive/libarchive/issues/882 is open but does that
 cover this issue?
 Can we just go back to 3.3.0 or whatever was before this until this is
 reverted? Or for 10.8/9 use that version and for 10.10/10.11 use 3.3.1?
 Thanks

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by maxkalashnikov-macports):

 3.2.2_1 seems to work fine at least on ML, with all installable versions
 of clang/llvm.

 I could also give it a try on a PPC Leopard box, if that would be helpful,
 though that would be quite slow.

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 We know that 3.2.2_1 built fine on PowerPC Leopard as well by looking at
 the [https://packages.macports.org/libarchive/ available packages].

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by Hasan-Tata):

 I have edited libarchive port file by changing its version to 3.2.2 like
 following.


 {{{
 sudo port edit libarchive
 }}}

 Then it works fine on OSX Lion 10.7 now.

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by maxkalashnikov-macports):

 Sorry, I know libarchive itself is fine on ppc Leop. I meant I could see
 if modern clangs (or other dependents) compile ok against it.

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

Re: [MacPorts] #53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'

MacPorts
In reply to this post by MacPorts
#53712: libarchive @3.3.1: error: use of undeclared identifier 'ACL_SYNCHRONIZE'
-------------------------+-------------------------------------------------
  Reporter:  Gord-       |      Owner:  tobypeterson
  Butler                 |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.4.1
Resolution:              |   Keywords:  leopard snowleopard lion
      Port:  libarchive  |  mountainlion mavericks
-------------------------+-------------------------------------------------

Comment (by ryandesign):

 Replying to [comment:26 maxkalashnikov-macports]:
 > Sorry, I know libarchive itself is fine on ppc Leop. I meant I could see
 if modern clangs (or other dependents) compile ok against it.

 Why do we care about that? What would that show?

 The goal is to have a working libarchive for 10.9 and earlier. Going back
 to 3.2.2_1 for 10.9 and earlier would solve that for now.

--
Ticket URL: <https://trac.macports.org/ticket/53712#comment:27>
MacPorts <https://www.macports.org/>
Ports system for macOS
1234 ... 6