Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664288 - dev-libs/libwapcaplet-0.4.0 : src/libwapcaplet.c:148:16: error: cast between incompatible function types from void * (*)(void * restrict, const void * restrict, size_t) {aka void * (*)(void * restrict, const void * restrict, long
Summary: dev-libs/libwapcaplet-0.4.0 : src/libwapcaplet.c:148:16: error: cast between ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
: 669328 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-08-22 16:47 UTC by Toralf Förster
Modified: 2018-10-26 00:29 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,14.84 KB, text/plain)
2018-08-22 16:47 UTC, Toralf Förster
Details
dev-libs:libwapcaplet-0.4.0:20180822-120444.log (dev-libs:libwapcaplet-0.4.0:20180822-120444.log,3.74 KB, text/plain)
2018-08-22 16:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,69.53 KB, text/plain)
2018-08-22 16:47 UTC, Toralf Förster
Details
environment (environment,91.45 KB, text/plain)
2018-08-22 16:47 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.98 KB, application/x-bzip)
2018-08-22 16:47 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.05 KB, application/x-bzip)
2018-08-22 16:47 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-08-22 16:47:23 UTC
src/libwapcaplet.c: In function ‘lwc_intern_string’:
src/libwapcaplet.c:148:16: error: cast between incompatible function types from ‘void * (*)(void * restrict,  const void * restrict,  size_t)’ {aka ‘void * (*)(void * restrict,  const void * restrict,  long unsigned int)’} to ‘void (*)(char *, const char *, size_t)’ {aka ‘void (*)(char *, const char *, long unsigned int)’} [-Werror=cast-function-type]
       strncmp, (lwc_memcpy)memcpy);
                ^
cc1: all warnings being treated as errors

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_20180820-193102

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv dev-libs/libwapcaplet
[ebuild  N    ] dev-libs/libwapcaplet-0.4.0  USE="-debug -static-libs -test"
Comment 1 Toralf Förster gentoo-dev 2018-08-22 16:47:25 UTC
Created attachment 544516 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-22 16:47:28 UTC
Created attachment 544518 [details]
dev-libs:libwapcaplet-0.4.0:20180822-120444.log
Comment 3 Toralf Förster gentoo-dev 2018-08-22 16:47:30 UTC
Created attachment 544520 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-08-22 16:47:33 UTC
Created attachment 544522 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-08-22 16:47:36 UTC
Created attachment 544524 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-22 16:47:39 UTC
Created attachment 544526 [details]
temp.tbz2
Comment 7 Philipp Ammann 2018-10-24 11:41:01 UTC
This is caused by gcc 8. Compiling with gcc 7 works fine. I tested the following:

  sys-devel/gcc-8.2.0-r3[hardened] -> broken
  sys-devel/gcc-7.3.0-r5[hardened] -> works

Isn't this a duplicate of bug 669328?
Comment 8 Toralf Förster gentoo-dev 2018-10-24 17:24:06 UTC
*** Bug 669328 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2018-10-26 00:29:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41f212cc11c2cbe97edccd200c21a345dc88c6be

commit 41f212cc11c2cbe97edccd200c21a345dc88c6be
Author:     Virgil Dupras <vdupras@gentoo.org>
AuthorDate: 2018-10-26 00:28:09 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-10-26 00:29:20 +0000

    dev-libs/libwapcaplet: fix compilation error with gcc 8
    
    Closes: https://bugs.gentoo.org/664288
    Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../libwapcaplet/files/libwapcaplet-0.4.1-makefile.patch     | 12 ++++++++++++
 dev-libs/libwapcaplet/libwapcaplet-0.4.1.ebuild              |  5 +++++
 2 files changed, 17 insertions(+)