Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672048

Summary: app-arch/sharutils-4.15.2 - fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: bjh-gentoobt, gentoo, gmt, leonchik1976, mgorny, orodruinlair, sam, zeekec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info '=app-arch/sharutils-4.15.2::gentoo'
gnulib_vs_recent_glibc_workaround.patch

Description Juergen Rose 2018-11-27 10:15:10 UTC
Created attachment 556444 [details]
build.log

'MAKEOPTS=-j1 emerge -v1 sharutils' fails with:
...
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -march=broadwell -O2 -pipe -Wno-error=format-security -Wno-format-contains-nul -c -o fseeko.o fseeko.c
fseeko.c: In function ‘rpl_fseeko’:
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
   #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
    ^~~~~




root@lynx:/root(21)# emerge -pqv '=app-arch/sharutils-4.15.2::gentoo'
[ebuild   R   ] app-arch/sharutils-4.15.2  USE="nls"
Comment 1 Juergen Rose 2018-11-27 10:17:24 UTC
Created attachment 556446 [details]
emerge --info '=app-arch/sharutils-4.15.2::gentoo'
Comment 2 Greg Turner 2018-12-25 04:20:57 UTC
Created attachment 558462 [details, diff]
gnulib_vs_recent_glibc_workaround.patch

Not sure exactly what criteria will trigger the need for this patch so I am not sure how correct it is to apply this to, i.e., stable.  But for my few-days-behind ~amd64 at least, this patch did the trick (which simply repackages debian's solution for layout compatibility https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915151 (

  nb: no epatchuser in there so impatient work-around-ers
  get to overlay until the cavalry arrives...

  .. speaking of which: OT here (I think?), but if you
  (as in "reader") /are/ the cavalry: maybe also check that
  gentoo is on top of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915151

)
Comment 3 ron widler 2019-01-17 07:07:37 UTC
i ran into the same problem, and the attached patch fixed it for me, too.
Comment 4 Larry the Git Cow gentoo-dev 2019-03-13 11:45:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fb4282568824709c8509d4d22270ecab9801100

commit 8fb4282568824709c8509d4d22270ecab9801100
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2019-03-13 11:40:48 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2019-03-13 11:45:28 +0000

    app-arch/sharutils: Add glibc-2.28 build fix
    
    Bug: https://bugs.gentoo.org/672048
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../files/sharutils-4.15.2-glibc228.patch          | 95 ++++++++++++++++++++++
 app-arch/sharutils/sharutils-4.15.2.ebuild         |  4 +-
 2 files changed, 98 insertions(+), 1 deletion(-)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-01 22:28:42 UTC
It's fixed in tree and I don't see a reason to keep this open given it's seemingly an upstream patch.