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)
Change History (8)
Changed 7 years ago by rlhamil
Attachment: | main.log-libzzip.txt added |
---|
comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)
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 Leopard → libzzip @0.13.66: error: implicit declaration of function ‘strndup’ |
---|
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: | new → closed |
This was closed by [b101c1902d9c4e9da434938488bba506a16bba53/macports-ports]
Note: See
TracTickets for help on using
tickets.
build log for libzzip