Opened 7 years ago

Closed 7 years ago

#54227 closed defect (fixed)

libzzip @0.13.66: error: implicit declaration of function ‘strndup’

Reported by: rlhamil Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: tiger leopard snowleopard Cc:
Port: libzzip

Description

Snow Leopard and earlier don't provide strnlen() and strndup(); and, perhaps depending on the compiler, whatever workarounds the code includes don't work there. (see log)

Attachments (2)

main.log-libzzip.txt (48.8 KB) - added by rlhamil 7 years ago.
build log for libzzip
patch-bins-unzzip.c.diff (652 bytes) - added by gnw3 7 years ago.
diff -C3 patchfile

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by rlhamil

Attachment: main.log-libzzip.txt added

build log for libzzip

comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)

In 9cf8dbd237d440b1faccd0d39ddc44816ed54ec6/macports-ports:

libzzip 0.13.66: fix for Snow Leopard and below

See: #54227

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

I've reported the issue to the developer: https://github.com/gdraheim/zziplib/issues/2

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tiger leopard snowleopard added

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: libzzip fails to build on Snow Leopardlibzzip @0.13.66: error: implicit declaration of function ‘strndup’

Changed 7 years ago by gnw3

Attachment: patch-bins-unzzip.c.diff added

diff -C3 patchfile

comment:5 Changed 7 years ago by gnw3

The original changes did not work for me: the Portfile used patchfiles_append which should have been patchfiles-append and the diff -u patch files/patch-bins-unzzip.c.diff was rejected. I created a new patch (attached) using diff -C 3 that worked.

comment:6 Changed 7 years ago by kencu (Ken)

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