Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 646318 - app-emulation/bochs-2.6.9: cksum.cc:83:12: error: uintptr_t was not declared in this scope
Summary: app-emulation/bochs-2.6.9: cksum.cc:83:12: error: uintptr_t was not declared ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2018-02-01 17:00 UTC by Anton Kochkov
Modified: 2019-11-29 16:51 UTC (History)
4 users (show)

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


Attachments
full build log (bochs-build.log,133.89 KB, text/x-log)
2018-02-01 17:00 UTC, Anton Kochkov
Details
emerge --info output (emerge_info.log,6.17 KB, text/x-log)
2018-02-01 17:01 UTC, Anton Kochkov
Details
Updated bochs ebuild with patch for slirpinc build error (bochs-2.6.9.ebuild.xz,968 bytes, application/x-xz)
2019-04-27 09:44 UTC, Andreas Thalhammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2018-02-01 17:00:09 UTC
Created attachment 517380 [details]
full build log

x86_64-pc-linux-gnu-g++ -c -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs -I./../../instrument/stubs -O2 -march=corei7-avx -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pthread slirp/dnssearch.cc  -fPIC -DPIC -o slirp/.libs/dnssearch.o
[01m[Kslirp/cksum.cc:[m[K In function '[01m[Kint cksum(mbuf*, int)[m[K':
[01m[Kslirp/cksum.cc:83:12:[m[K [01;31m[Kerror: [m[K'[01m[Kuintptr_t[m[K' was not declared in this scope
  if ((1 & ([01;31m[Kuintptr_t[m[K)w) && (mlen > 0)) {
            [01;31m[K^~~~~~~~~[m[K
[01m[Kslirp/cksum.cc:83:22:[m[K [01;31m[Kerror: [m[Kexpected '[01m[K)[m[K' before '[01m[Kw[m[K'
  if ((1 & (uintptr_t)[01;31m[Kw[m[K) && (mlen > 0)) {
                      [01;31m[K^[m[K
[01m[Kslirp/cksum.cc:144:1:[m[K [01;31m[Kerror: [m[Kexpected '[01m[K)[m[K' at end of input
 [01;31m[K}[m[K
 [01;31m[K^[m[K
[01m[Kslirp/cksum.cc:144:1:[m[K [01;31m[Kerror: [m[Kexpected statement at end of input
[01m[Kslirp/cksum.cc:144:1:[m[K [01;31m[Kerror: [m[Kexpected '[01m[K}[m[K' at end of input
[01m[Kslirp/cksum.cc:70:10:[m[K [01;31m[Kerror: [m[Klabel '[01m[Kcont[m[K' used but not defined
     goto [01;31m[Kcont[m[K;
          [01;31m[K^~~~[m[K
make[1]: *** [Makefile:116: slirp/cksum.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -c -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs -I./../../instrument/stubs -O2 -march=corei7-avx -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pthread slirp/if.cc  -fPIC -DPIC -o slirp/.libs/if.o
make[1]: Leaving directory '/var/tmp/portage/app-emulation/bochs-2.6.9/work/bochs-2.6.9/iodev/network'
make: *** [Makefile:238: bochs_plugins] Error 2
 [31;01m*[0m ERROR: app-emulation/bochs-2.6.9::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m
Comment 1 Anton Kochkov 2018-02-01 17:01:18 UTC
Created attachment 517382 [details]
emerge --info output
Comment 2 Kay Lin 2018-07-25 10:23:35 UTC
I found the solution here: https://sourceforge.net/p/bochs/bugs/1392/#a6e9
Comment 3 Andreas Thalhammer 2019-04-27 09:44:53 UTC
Created attachment 574404 [details]
Updated bochs ebuild with patch for slirpinc build error

Yes, the patch from sourceforge worked for me. My machine is amd64 with gcc-8.3.0-r1. My personal solution was to copy app-emulation/bochs from /usr/portage to /usr/local/portage (or where ever your portage an local portage overlay is) and add directory files with the patch from sourceforge:

mkdir -p /usr/local/portage/app-emulation/bochs/files
cp /usr/portage/app-emulation/bochs/* /usr/local/portage/app-emulation/bochs/
wget -O /usr/local/portage/app-emulation/bochs/files/slirpinc.patch https://sourceforge.net/p/bochs/bugs/_discuss/thread/5c779668/a6e9/attachment/slirpinc.patch

Replace /usr/local/portage/app-emulation/bochs/bochs-2.6.9.ebuild with the attachment, or alternatively, apply this patch to the ebuild:

--- /usr/portage/app-emulation/bochs/bochs-2.6.9.ebuild 2018-04-27 03:38:58.000000000 +0200
+++ /usr/local/portage/app-emulation/bochs/bochs-2.6.9.ebuild   2019-04-27 11:30:57.396628141 +0200
@@ -3,6 +3,8 @@
 
 EAPI=6
 
+inherit eutils
+
 DESCRIPTION="LGPL-ed pc emulator"
 HOMEPAGE="http://bochs.sourceforge.net/"
 SRC_URI="mirror://sourceforge/bochs/${P}.tar.gz"
@@ -39,6 +41,7 @@
        default
        sed -i "s:^docdir.*:docdir = ${EPREFIX}/usr/share/doc/${PF}:" \
                Makefile.in || die
+       epatch "${FILESDIR}"/slirpinc.patch
 }
 
 src_configure() {
Comment 4 Anton Kochkov 2019-11-29 16:51:35 UTC
Maintainers - ping? Please review the pull request/patch.