Can't compile sbcl O_LARGEFILE error openSUSE Tumbleweed

Bug #2000919 reported by Yves Pagani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
New
Undecided
Unassigned

Bug Description

Hello,

System's parameters:
OS: openSUSE Tumbleweed
Linux version: 6.1.1-1 x86_64
gcc version: 12.2.1
glibc: 2.36-9.1
compile launcher: ./make.sh --fancy

When trying to compile sbcl (git version), I get the following error:

make: Entering directory '/home/yp/git/sbcl/tools-for-build'
cc -I../src/runtime grovel-headers.c -o grovel-headers
grovel-headers.c: In function 'main':
grovel-headers.c:228:32: error: 'O_LARGEFILE' undeclared (first use in this function)
  228 | defconstant("o_largefile", O_LARGEFILE);

In a slackware forum (https://www.linuxquestions.org/questions/slackware-14/error-in-compilation-of-sbcl-2-3-0-a-4175720336/) , the solution given was to add -D_GNU_SOURCE to the CPPFLAGS

I tried it and sbcl compiled (and tests too).

Maybe it is worth to add this option to sbcl's Makefile ?

Thanks to all sbcl's developers for this great peace of software!

Sincerely,
Yves Pagani

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.