Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935832 - www-servers/lighttpd-1.4.76 fails to compile on sparc: error: static assertion failed: "EPOLLRDHUP == FDEVENT_RDHUP"
Summary: www-servers/lighttpd-1.4.76 fails to compile on sparc: error: static assertio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc64 Linux
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 934864
  Show dependency tree
 
Reported: 2024-07-10 17:24 UTC by matoro
Modified: 2024-07-12 10:29 UTC (History)
2 users (show)

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


Attachments
build.log and emerge --info (file_935832.txt,89.33 KB, text/plain)
2024-07-10 17:24 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-07-10 17:24:43 UTC
Created attachment 897414 [details]
build.log and emerge --info

FAILED: src/lighttpd.p/fdevent_impl.c.o 
sparc64-unknown-linux-gnu-gcc -Isrc/lighttpd.p -Isrc -I../lighttpd-1.4.76/src -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O2 -mcpu=ultrasparc -pipe -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -D_DEFAULT_SOURCE -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -g -Wshadow -W -pedantic -MD -MQ src/lighttpd.p/fdevent_impl.c.o -MF src/lighttpd.p/fdevent_impl.c.o.d -o src/lighttpd.p/fdevent_impl.c.o -c
 ../lighttpd-1.4.76/src/fdevent_impl.c
In file included from ../lighttpd-1.4.76/src/ck.h:121,
                 from ../lighttpd-1.4.76/src/buffer.h:407,
                 from ../lighttpd-1.4.76/src/fdevent_impl.c:5:
../lighttpd-1.4.76/src/fdevent_impl.c: In function ‘fdevent_linux_sysepoll_init’:
../lighttpd-1.4.76/src/ck.h:125:29: error: static assertion failed: "EPOLLRDHUP == FDEVENT_RDHUP"
  125 | #define ck_static_assert(x) static_assert((x),#x)
      |                             ^~~~~~~~~~~~~
../lighttpd-1.4.76/src/fdevent_impl.c:379:5: note: in expansion of macro ‘ck_static_assert’
  379 |     ck_static_assert(EPOLLRDHUP == FDEVENT_RDHUP);
      |     ^~~~~~~~~~~~~~~~
Comment 1 Larry the Git Cow gentoo-dev 2024-07-12 10:29:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74eff9db04a287c732e2ca62c79a8322df53092d

commit 74eff9db04a287c732e2ca62c79a8322df53092d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-07-12 10:27:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-07-12 10:28:31 +0000

    www-servers/lighttpd: fix build on sparc for 1.4.76
    
    I'd previously fixed 1.4.75 and assumed the fix was in 1.4.76.
    
    Closes: https://bugs.gentoo.org/935832
    Bug: https://bugs.gentoo.org/931305
    Signed-off-by: Sam James <sam@gentoo.org>

 .../lighttpd/files/lighttpd-1.4.76-sparc.patch     | 111 +++++++++++++++++++++
 www-servers/lighttpd/lighttpd-1.4.76-r1.ebuild     |   4 +
 www-servers/lighttpd/lighttpd-1.4.76.ebuild        |   4 +
 3 files changed, 119 insertions(+)