Skip to content

Compile error on Fedora 39 #23

@velocithrills21

Description

@velocithrills21

So I know that nowhere in the doc is it indicated this is meant to work on Fedora, but I figured I'd give it a shot. I was thrilled to find this and figured it was a longshot it would work, so if it's a relatively easy fix due to a new version of glibc or something (found similar errors posted online where others indicated this might be the case) I'd greatly appreciate any help you're willing to provide.

Thanks in advance

I worked my way through most of the steps in the quickstart guide, successfully compiled and installed libcip-devel version 0.1.1.6, but the n5500-0.6 rpmbuild fails on compilation of freecusd. Specifically it fails with an error when trying to manually fire the compile commands from the spec file:

Running rpmbuild command:

# rpmbuild -tb n5550-0.6.tar.gz `
setting SOURCE_DATE_EPOCH=1558137600
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GZTOD5
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf n5550-0.6
+ /usr/lib/rpm/rpmuncompress -x /home/rpmbuild/rpmbuild/SOURCES/n5550-0.6.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd n5550-0.6
+ rm -rf /root/rpmbuild/BUILD/n5550-0.6-SPECPARTS
+ /usr/bin/mkdir -p /root/rpmbuild/BUILD/n5550-0.6-SPECPARTS
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KntIJv
+ umask 022
+ cd /root/rpmbuild/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd n5550-0.6
+ cd freecusd
+ gcc -std=gnu99 -Os -Wall -Wextra -pthread -o freecusd alert.c conf.c cputemp.c disk.c err.c lib.c loadavg.c main.c pic.c proc.c raid.c smart.c sysfan.c tty.c -lcip
err.c: In function ‘fcd_err_txt’:
err.c:194:35: error: ‘sys_nerr’ undeclared (first use in this function)
  194 |         if (errno >= 0 && errno < sys_nerr)
      |                                   ^~~~~~~~
err.c:194:35: note: each undeclared identifier is reported only once for each function it appears in
err.c:195:36: error: ‘sys_errlist’ undeclared (first use in this function)
  195 |                 return fcd_err_str(sys_errlist[errno]);
      |                                    ^~~~~~~~~~~
error: Bad exit status from /var/tmp/rpm-tmp.KntIJv (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.KntIJv (%build)



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions