Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669594 - app-arch/lbzip2-2.5 : /.../fseterr.c:77:3: error: #error Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib.
Summary: app-arch/lbzip2-2.5 : /.../fseterr.c:77:3: error: #error Please port gnulib f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: glibc-2.28
  Show dependency tree
 
Reported: 2018-10-25 17:11 UTC by Toralf Förster
Modified: 2018-12-15 07:08 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.25 KB, text/plain)
2018-10-25 17:11 UTC, Toralf Förster
Details
app-arch:lbzip2-2.5:20181024-220232.log (app-arch:lbzip2-2.5:20181024-220232.log,56.33 KB, text/plain)
2018-10-25 17:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,248.17 KB, text/plain)
2018-10-25 17:11 UTC, Toralf Förster
Details
environment (environment,89.67 KB, text/plain)
2018-10-25 17:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.28 KB, application/x-bzip)
2018-10-25 17:12 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,20.16 KB, application/x-bzip)
2018-10-25 17:12 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,28.70 KB, application/x-bzip)
2018-10-25 17:12 UTC, Toralf Förster
Details
Working patch (lbzip2-2.5-glibc-2.28.patch,2.09 KB, patch)
2018-12-07 12:15 UTC, Chris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-10-25 17:11:47 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/app-arch/lbzip2-2.5/work/lbzip2-2.5/lib     -O2 -pipe -march=native -c -o fseterr.o /var/tmp/portage/app-arch/lbzip2-2.5/work/lbzip2-2.5/lib/fseterr.c
/var/tmp/portage/app-arch/lbzip2-2.5/work/lbzip2-2.5/lib/fseterr.c: In function ‘fseterr’:
/var/tmp/portage/app-arch/lbzip2-2.5/work/lbzip2-2.5/lib/fseterr.c:77:3: error: #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
  #error "Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib."
   ^~~~~
make[3]: *** [Makefile:1474: fseterr.o] Error 1

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma-systemd_20181019-180112

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

  Please see the tracker bug for details.

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

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-8]
2)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8  system-vm
  [2]   icedtea-bin-8 

emerge -qpvO app-arch/lbzip2
[ebuild  N    ] app-arch/lbzip2-2.5  USE="-debug -symlink"
Comment 1 Toralf Förster gentoo-dev 2018-10-25 17:11:49 UTC
Created attachment 552888 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-10-25 17:11:52 UTC
Created attachment 552890 [details]
app-arch:lbzip2-2.5:20181024-220232.log
Comment 3 Toralf Förster gentoo-dev 2018-10-25 17:11:55 UTC
Created attachment 552892 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-10-25 17:11:57 UTC
Created attachment 552894 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-10-25 17:12:00 UTC
Created attachment 552896 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-10-25 17:12:03 UTC
Created attachment 552898 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-10-25 17:12:05 UTC
Created attachment 552900 [details]
temp.tbz2
Comment 8 Chris 2018-12-07 12:15:17 UTC
Created attachment 557258 [details, diff]
Working patch

Patch provided to enable building using Glibc-2.28. Patch changes fseterr.c into latest version provided by GNUlib
Comment 9 hanetzer 2018-12-15 05:54:11 UTC
(In reply to Chris from comment #8)
> Created attachment 557258 [details, diff] [details, diff]
> Working patch
> 
> Patch provided to enable building using Glibc-2.28. Patch changes fseterr.c
> into latest version provided by GNUlib

Yep, I came up with this exact patch independently. Works for me as well.
Comment 10 Larry the Git Cow gentoo-dev 2018-12-15 07:08:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3720154b98db15dd174d864966732148eed43116

commit 3720154b98db15dd174d864966732148eed43116
Author:     Marty E. Plummer <hanetzer@startmail.com>
AuthorDate: 2018-12-15 05:59:43 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-12-15 07:07:33 +0000

    app-arch/lbzip2: fix gnulib fseterr.c for glibc-2.28
    
    Bug: https://bugs.gentoo.org/669594
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
    (cherry picked from commit 1987ed072674ea371a94635626e095c490a35cf7)
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/10644
    Closes: https://bugs.gentoo.org/669594

 app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch | 50 +++++++++++++++++++++++
 app-arch/lbzip2/lbzip2-2.5-r1.ebuild              | 39 ++++++++++++++++++
 2 files changed, 89 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3720154b98db15dd174d864966732148eed43116

commit 3720154b98db15dd174d864966732148eed43116
Author:     Marty E. Plummer <hanetzer@startmail.com>
AuthorDate: 2018-12-15 05:59:43 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2018-12-15 07:07:33 +0000

    app-arch/lbzip2: fix gnulib fseterr.c for glibc-2.28
    
    Bug: https://bugs.gentoo.org/669594
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
    (cherry picked from commit 1987ed072674ea371a94635626e095c490a35cf7)
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/10644
    Closes: https://bugs.gentoo.org/669594

 app-arch/lbzip2/files/lbzip2-2.5-glibc-2.28.patch | 50 +++++++++++++++++++++++
 app-arch/lbzip2/lbzip2-2.5-r1.ebuild              | 39 ++++++++++++++++++
 2 files changed, 89 insertions(+)