Opened 16 months ago

Last modified 15 months ago

#67870 closed defect

libarchive @3.7.0: build fails on Tiger for several reasons — at Version 1

Reported by: kencu (Ken) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Tiger Cc:
Port: libarchive

Description (last modified by kencu (Ken))

there are at least two issues on Tiger

:info:build unzip/bsdunzip.c: In function 'match_pattern':
:info:build unzip/bsdunzip.c:325: warning: implicit declaration of function 'STAILQ_FOREACH'
:info:build unzip/bsdunzip.c:325: error: expected ';' before '{' token
:info:build unzip/bsdunzip.c:334: warning: no return statement in function returning non-void
:info:build unzip/bsdunzip.c: In function 'extract_file':
:info:build unzip/bsdunzip.c:800: warning: implicit declaration of function 'lchmod'
:info:build make[1]: *** [unzip/bsdunzip-bsdunzip.o] Error 1

both of these are in legacysupport, however legacysupport has traditionally not worked well with libarchive #61746.

The new fixes in legacy support devel work better with libarchive, or the functions could be patched in directly as has been done recently. I did the STAILQ_FOREACH one, and I'll attach that, but I didn't do lchmod and just used legacy-support-devel instead.

This port does not behave too well when running the tests on Tiger -- it leaves behind deep directories in the .tmp/ testing directory that are hard to remove later.

In the end, I wound up pegging libarchive at the previous version for the time being while this is sorted out.

Change History (3)

Changed 16 months ago by kencu (Ken)

Attachment: libarchive-fail-tiger.log added

Changed 16 months ago by kencu (Ken)

Attachment: stailq.patch added

comment:1 Changed 16 months ago by kencu (Ken)

Description: modified (diff)
Note: See TracTickets for help on using tickets.