Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693202 - app-arch/libarchive-3.4.0 fails to build with USE=-zlib
Summary: app-arch/libarchive-3.4.0 fails to build with USE=-zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-31 15:32 UTC by Albert W. Hopkins
Modified: 2019-09-02 07:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,59.53 KB, text/plain)
2019-08-31 15:32 UTC, Albert W. Hopkins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert W. Hopkins 2019-08-31 15:32:21 UTC
Created attachment 588580 [details]
build.log

Specifically it fails at:

```
/var/tmp/portage/app-arch/libarchive-3.4.0/work/libarchive-3.4.0/libarchive/archive_read_support_filter_gzip.c:134:16: warning: 'struct private_data' declared inside parameter list will not be visible outside of this definition or declaration
  134 |         struct private_data *state)
      |                ^~~~~~~~~~~~
/var/tmp/portage/app-arch/libarchive-3.4.0/work/libarchive-3.4.0/libarchive/archive_read_support_filter_gzip.c: In function 'peek_at_header':
/var/tmp/portage/app-arch/libarchive-3.4.0/work/libarchive-3.4.0/libarchive/archive_read_support_filter_gzip.c:157:8: error: dereferencing pointer to incomplete type 'struct private_data'
  157 |   state->mtime = archive_le32dec(p + 4);
      |        ^~
/var/tmp/portage/app-arch/libarchive-3.4.0/work/libarchive-3.4.0/libarchive/archive_read_support_filter_gzip.c: In function 'gzip_read_header':
/var/tmp/portage/app-arch/libarchive-3.4.0/work/libarchive-3.4.0/libarchive/archive_read_support_filter_gzip.c:247:11: error: dereferencing pointer to incomplete type 'struct private_data'
  247 |  if (state->mtime != 0)
      |           ^~
At top level:
/var/tmp/portage/app-arch/libarchive-3.4.0/work/libarchive-3.4.0/libarchive/archive_read_support_filter_gzip.c:240:1: warning: 'gzip_read_header' defined but not used [-Wunused-function]
  240 | gzip_read_header(struct archive_read_filter *self, struct archive_entry *entry)
      | ^~~~~~~~~~~~~~~~
```

After having added USE=zlib the build succeeds.
Comment 1 Jonas Stein gentoo-dev 2019-08-31 16:00:27 UTC
Thank you for the report. Please recompile and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 3 Larry the Git Cow gentoo-dev 2019-09-02 07:07:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2724e477dbeef81ed5f8ad995e738c776379485c

commit 2724e477dbeef81ed5f8ad995e738c776379485c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2019-09-02 07:07:21 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2019-09-02 07:07:21 +0000

    app-arch/libarchive: Fixed build with USE="-zlib"
    
    Thanks-to: Albert W. Hopkins <marduk@letterboxes.org>
    Thanks-to: Stephan Hartmann <stha09@googlemail.com>
    Closes: https://bugs.gentoo.org/693202
    Package-Manager: Portage-2.3.75, Repoman-2.3.17
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../libarchive-3.4.0-without_zlib_build_fix.patch  | 160 +++++++++++++++++++++
 app-arch/libarchive/libarchive-3.4.0.ebuild        |   1 +
 2 files changed, 161 insertions(+)